]>
Commit | Line | Data |
---|---|---|
1409a9df ZU |
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} | |
6 | Version: 1 | |
7 | Release: 0.1 | |
8 | License: GPL | |
9 | Group: Development/Languages/PHP | |
10 | Source0: Smarty_tpl.php | |
11 | Requires: CodeIgniter >= 2.0.0 | |
12 | Requires: php-Smarty >= 3.0 | |
13 | BuildArch: noarch | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %define _appdir %{_datadir}/CodeIgniter | |
17 | ||
18 | %description | |
19 | Use smarty template engine in CodeIgniter. | |
20 | ||
21 | %prep | |
22 | ||
23 | %install | |
24 | rm -rf $RPM_BUILD_ROOT | |
25 | install -d $RPM_BUILD_ROOT%{_appdir}/system/libraries | |
26 | install %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries | |
27 | ||
28 | %clean | |
29 | rm -rf $RPM_BUILD_ROOT | |
30 | ||
31 | %files | |
32 | %defattr(644,root,root,755) | |
33 | %{_appdir}/system/libraries/Smarty_tpl.php |