]>
Commit | Line | Data |
---|---|---|
1409a9df | 1 | %define php_min_version 5.2.4 |
1409a9df ZU |
2 | %define shortname smarty |
3 | Summary: Use smarty template engine in CodeIgniter | |
4 | Name: CodeIgniter-lib-%{shortname} | |
fb4b60c2 | 5 | Version: 2 |
1409a9df ZU |
6 | Release: 0.1 |
7 | License: GPL | |
8 | Group: Development/Languages/PHP | |
9 | Source0: Smarty_tpl.php | |
10 | Requires: CodeIgniter >= 2.0.0 | |
fb4b60c2 | 11 | Requires: php-Smarty >= 3.1 |
f467e1b5 | 12 | Requires: php-common >= 4:%{php_min_version} |
1409a9df ZU |
13 | BuildArch: noarch |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _appdir %{_datadir}/CodeIgniter | |
f467e1b5 | 17 | %define _noautoreq pear(Smarty/Smarty.class.php) |
1409a9df ZU |
18 | |
19 | %description | |
20 | Use smarty template engine in CodeIgniter. | |
21 | ||
22 | %prep | |
23 | ||
24 | %install | |
25 | rm -rf $RPM_BUILD_ROOT | |
26 | install -d $RPM_BUILD_ROOT%{_appdir}/system/libraries | |
f467e1b5 | 27 | cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries |
1409a9df ZU |
28 | |
29 | %clean | |
30 | rm -rf $RPM_BUILD_ROOT | |
31 | ||
32 | %files | |
33 | %defattr(644,root,root,755) | |
34 | %{_appdir}/system/libraries/Smarty_tpl.php |