steffen: server/php-smarty Makefile, NONE, 1.1 php-smarty.spec, NONE, 1.1

cvs at intevation.de cvs at intevation.de
Mon May 17 14:14:08 CEST 2004


Author: steffen

Update of /kolabrepository/server/php-smarty
In directory doto:/tmp/cvs-serv18627/php-smarty

Added Files:
	Makefile php-smarty.spec 
Log Message:
better name for Smarty rpm

--- NEW FILE: Makefile ---
RPM = /kolab/bin/openpkg rpm
NAME = Smarty
RPMNAME = php-smarty
VERSION = 2.6.2

ifeq "x$(KOLABRPMSRC)" "x"
  KOLABRPMSRC = /kolab/RPM/SRC
endif

all:
	test -d $(KOLABRPMSRC)/$(RPMNAME) || mkdir $(KOLABRPMSRC)/$(RPMNAME)
	cd $(KOLABRPMSRC)/$(RPMNAME) && wget -c "http://smarty.php.net/distributions/$(NAME)-$(VERSION).tar.gz" \
		"http://smarty.php.net/distributions/manual/en/$(NAME)-$(VERSION)-docs.tar.gz"

	cp $(RPMNAME).spec $(KOLABRPMSRC)/$(RPMNAME)
	cd $(KOLABRPMSRC)/$(RPMNAME) && $(RPM) -ba $(RPMNAME).spec
binary:
	$(RPM) -bB $(RPMNAME).spec

--- NEW FILE: php-smarty.spec ---
# Versions
%define		V_php		4.0.6
%define		V_Smarty	2.6.2

# Package Information
Name:		php-smarty
Summary:	Template engine for PHP
URL:		http://smarty.php.net/
Packager:	Steffen Hansen <steffen at klaralvdalens-datakonsult.se> (Klaraelvdalens Datakonsult AB)
Version:	2.6.2
Release:	20040517
License:	LGPL
Group:		Languages
Distribution:	OpenPKG

# List of Sources
Source0:	http://smarty.php.net/distributions/Smarty-%{version}.tar.gz
Source1:	http://smarty.php.net/distributions/manual/en/Smarty-%{version}-docs.tar.gz

# Build Info
Prefix:		%{l_prefix}
BuildRoot:	%{l_buildroot}
BuildPreReq:	apache >= 1.2.29, apache::with_mod_php_pear = yes
PreReq:		apache >= 1.2.29, apache::with_mod_php_pear = yes
BuildArch:	noarch
AutoReq:      no
AutoReqProv:  no

%description
Smarty is a template engine for PHP. Smarty provides your basic
variable substitution and dynamic block functionality, and also takes
a step further to be a "smart" template engine, adding features such
as configuration files, template functions, variable modifiers, and
making all of this functionality as easy as possible to use for both
programmers and template designers.

%prep
	%setup -q -n Smarty-%{version} -a 1

%build

%install
	rm -rf $RPM_BUILD_ROOT
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/lib/php/Smarty/core
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/lib/php/Smarty/plugins
	%{l_shtool} install -d $RPM_BUILD_ROOT%{l_prefix}/share/php-smarty/manual/stylesheet-images
	%{l_shtool} install -m 644 libs/{Config_File,Smarty{,_Compiler}}.class.php \
		$RPM_BUILD_ROOT%{l_prefix}/lib/php/Smarty
	%{l_shtool} install -m 644 libs/debug.tpl $RPM_BUILD_ROOT%{l_prefix}/lib/php/Smarty
	%{l_shtool} install -m 644 libs/core/*.php $RPM_BUILD_ROOT%{l_prefix}/lib/php/Smarty/core
	%{l_shtool} install -m 644 libs/plugins/*.php $RPM_BUILD_ROOT%{l_prefix}/lib/php/Smarty/plugins
	%{l_shtool} install -m 644 BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO \
		$RPM_BUILD_ROOT%{l_prefix}/share/php-smarty
	%{l_shtool} install -m 644 manual/*\
		$RPM_BUILD_ROOT%{l_prefix}/share/php-smarty/manual
	%{l_shtool} install -m 644 manual/stylesheet-images/* \
		$RPM_BUILD_ROOT%{l_prefix}/share/php-smarty/manual/stylesheet-images
	%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} \
		%doc %{l_prefix}/share/php-smarty/BUGS %{l_prefix}/share/php-smarty/ChangeLog \
		%{l_prefix}/share/php-smarty/FAQ %{l_prefix}/share/php-smarty/INSTALL \
		%{l_prefix}/share/php-smarty/NEWS %{l_prefix}/share/php-smarty/README  \
		%{l_prefix}/share/php-smarty/RELEASE_NOTES %{l_prefix}/share/php-smarty/TODO \
		%{l_prefix}/share/php-smarty/manual/* \
		%{l_prefix}/share/php-smarty/manual/stylesheet-images/*

%clean
	rm -rf $RPM_BUILD_ROOT

%files -f files





More information about the commits mailing list