%define _doc_version 2.6.2 %include /usr/lib/rpm/macros.php Summary: Template engine for PHP Summary(pl): System szablonów dla PHP Name: Smarty Version: 2.6.2 Release: 1 License: LGPL Group: Development/Languages/PHP Source0: http://smarty.php.net/distributions/%{name}-%{version}.tar.gz # Source0-md5: 876313391dcf6452e3867169230ec4d9 Source1: http://smarty.php.net/distributions/manual/en/%{name}-%{_doc_version}-docs.tar.gz # Source1-md5: fd5e90f19a002777f3fed6fc51106ce4 BuildRequires: rpm-php-pearprov >= 4.3 Requires: php Requires: php-pear BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl Smarty jest systemem szablonów dla PHP. Pozwala na podstawowe podstawianie wartości zmiennych oraz dynamiczne operacje na blokach; idzie o krok dalej, aby być "mądrym" silnikiem szablonów, dodając takie możliwości jak pliki konfiguracyjne, funkcje, zmienne modyfikatory oraz czyniąc całą funkcjonalność jak najłatwiejszą w użyciu jednocześnie dla programistów i projektantów szablonów. %package doc Summary: Template engine for PHP - documentation Summary(pl): System szablonów dla PHP - dokumentacja Version: %{_doc_version} Group: Development/Languages/PHP %description doc Documentation for Smarty template engine. %description doc -l pl Dokumentacja do systemu szablonów Smarty. %prep %setup -q -a 1 %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/{core,plugins} install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name} install libs/debug.tpl $RPM_BUILD_ROOT%{php_pear_dir}/%{name} install libs/core/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/core install libs/plugins/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO %dir %{php_pear_dir}/%{name} %dir %{php_pear_dir}/%{name}/core %dir %{php_pear_dir}/%{name}/plugins %{php_pear_dir}/%{name}/*.class.php %{php_pear_dir}/%{name}/debug.tpl %{php_pear_dir}/%{name}/core/*.php %{php_pear_dir}/%{name}/plugins/*.php %files doc %defattr(644,root,root,755) %doc manual/*