1 # %define _doc_version 2.4.0
2 Summary: Template engine for PHP
3 Summary(pl): System szablonów dla PHP
8 Group: Development/Languages/PHP
9 Source0: http://smarty.php.net/distributions/%{name}-%{version}.tar.gz
10 Source1: http://smarty.php.net/distributions/manual/en/%{name}-%{version}-docs.tar.gz
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Smarty is a template engine for PHP. Smarty provides your basic
18 variable substitution and dynamic block functionality, and also takes
19 a step further to be a "smart" template engine, adding features such
20 as configuration files, template functions, variable modifiers, and
21 making all of this functionality as easy as possible to use for both
22 programmers and template designers.
25 Smarty jest systemem szablonów dla PHP. Pozwala na podstawowe
26 podstawianie warto¶ci zmiennych oraz dynamiczne operacje na blokach;
27 idzie o krok dalej, aby byæ "m±drym" silnikiem szablonów, dodaj±c
28 takie mo¿liwo¶ci jak pliki konfiguracyjne, funkcje, zmienne
29 modyfikatory oraz czyni±c ca³± funkcjonalno¶æ jak naj³atwiejsz± w
30 u¿yciu jednocze¶nie dla programistów i projektantów szablonów.
33 Summary: Template engine for PHP - documentation
34 Summary(pl): System szablonów dla PHP - dokumentacja
35 Version: %{_doc_version}
36 Group: Development/Languages/PHP
39 Documentation for Smarty template engine.
41 %description doc -l pl
42 Dokumentacja do systemu szablonów Smarty.
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT%{_datadir}/pear/%{name}/plugins
51 install libs/{Config_File,Smarty{,_Compiler}}.class.php $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
52 install libs/debug.tpl $RPM_BUILD_ROOT%{_datadir}/pear/%{name}
53 install libs/plugins/*.php $RPM_BUILD_ROOT%{_datadir}/pear/%{name}/plugins
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc BUGS ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
61 %dir %{_datadir}/pear/%{name}
62 %dir %{_datadir}/pear/%{name}/plugins
63 %{_datadir}/pear/%{name}/*.class.php
64 %{_datadir}/pear/%{name}/debug.tpl
65 %{_datadir}/pear/%{name}/plugins/*.php
68 %defattr(644,root,root,755)