1 %define php_min_version 5.2.4
2 %define shortname smarty
3 %include /usr/lib/rpm/macros.php
4 Summary: Use smarty template engine in CodeIgniter
5 Name: CodeIgniter-lib-%{shortname}
9 Group: Development/Languages/PHP
10 Source0: Smarty_tpl.php
11 Requires: CodeIgniter >= 2.0.0
12 Requires: php-Smarty >= 3.0
13 Requires: php-common >= 4:%{php_min_version}
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 %define _appdir %{_datadir}/CodeIgniter
18 %define _noautoreq pear(Smarty/Smarty.class.php)
21 Use smarty template engine in CodeIgniter.
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT%{_appdir}/system/libraries
28 cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries
31 rm -rf $RPM_BUILD_ROOT
34 %defattr(644,root,root,755)
35 %{_appdir}/system/libraries/Smarty_tpl.php