1 %define php_min_version 5.2.4
2 %include /usr/lib/rpm/macros.php
3 %define shortname smarty
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
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 %define _appdir %{_datadir}/CodeIgniter
19 Use smarty template engine in CodeIgniter.
24 rm -rf $RPM_BUILD_ROOT
25 install -d $RPM_BUILD_ROOT%{_appdir}/system/libraries
26 install %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries
29 rm -rf $RPM_BUILD_ROOT
32 %defattr(644,root,root,755)
33 %{_appdir}/system/libraries/Smarty_tpl.php