1 # %define _doc_version 2.4.0
2 %include /usr/lib/rpm/macros.php
3 Summary: Template engine for PHP
4 Summary(pl): System szablonów dla PHP
9 Group: Development/Languages/PHP
10 Source0: http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
11 # Source0-md5: 9acb557dc4e344fadc2ab2270c74dfa2
12 Source1: http://smarty.php.net/distributions/manual/en/%{name}-%{version}-docs.tar.gz
13 # Source1-md5: 22bd33a9b9cf497e80eb21659b4c2163
14 BuildRequires: rpm-php-pearprov >= 4.3
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 Smarty is a template engine for PHP. Smarty provides your basic
22 variable substitution and dynamic block functionality, and also takes
23 a step further to be a "smart" template engine, adding features such
24 as configuration files, template functions, variable modifiers, and
25 making all of this functionality as easy as possible to use for both
26 programmers and template designers.
29 Smarty jest systemem szablonów dla PHP. Pozwala na podstawowe
30 podstawianie warto¶ci zmiennych oraz dynamiczne operacje na blokach;
31 idzie o krok dalej, aby byæ "m±drym" silnikiem szablonów, dodaj±c
32 takie mo¿liwo¶ci jak pliki konfiguracyjne, funkcje, zmienne
33 modyfikatory oraz czyni±c ca³± funkcjonalno¶æ jak naj³atwiejsz± w
34 u¿yciu jednocze¶nie dla programistów i projektantów szablonów.
37 Summary: Template engine for PHP - documentation
38 Summary(pl): System szablonów dla PHP - dokumentacja
39 Version: %{_doc_version}
40 Group: Development/Languages/PHP
43 Documentation for Smarty template engine.
45 %description doc -l pl
46 Dokumentacja do systemu szablonów Smarty.
52 rm -rf $RPM_BUILD_ROOT
53 install -d $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins
55 install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
56 install libs/debug.tpl $RPM_BUILD_ROOT%{php_pear_dir}/%{name}
57 install libs/plugins/*.php $RPM_BUILD_ROOT%{php_pear_dir}/%{name}/plugins
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
65 %dir %{php_pear_dir}/%{name}
66 %dir %{php_pear_dir}/%{name}/plugins
67 %{php_pear_dir}/%{name}/*.class.php
68 %{php_pear_dir}/%{name}/debug.tpl
69 %{php_pear_dir}/%{name}/plugins/*.php
72 %defattr(644,root,root,755)