From 1409a9dfc0363aa36c0f33faf1f5672ec88366fd Mon Sep 17 00:00:00 2001 From: Zsolt Udvari Date: Thu, 12 May 2011 14:28:38 +0000 Subject: [PATCH] - initial - error: req pear(/usr/share/php/Smarty.class.php) not found Changed files: CodeIgniter-lib-smarty.spec -> 1.1 --- CodeIgniter-lib-smarty.spec | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CodeIgniter-lib-smarty.spec diff --git a/CodeIgniter-lib-smarty.spec b/CodeIgniter-lib-smarty.spec new file mode 100644 index 0000000..09b6db5 --- /dev/null +++ b/CodeIgniter-lib-smarty.spec @@ -0,0 +1,33 @@ +%define php_min_version 5.2.4 +%include /usr/lib/rpm/macros.php +%define shortname smarty +Summary: Use smarty template engine in CodeIgniter +Name: CodeIgniter-lib-%{shortname} +Version: 1 +Release: 0.1 +License: GPL +Group: Development/Languages/PHP +Source0: Smarty_tpl.php +Requires: CodeIgniter >= 2.0.0 +Requires: php-Smarty >= 3.0 +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _appdir %{_datadir}/CodeIgniter + +%description +Use smarty template engine in CodeIgniter. + +%prep + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_appdir}/system/libraries +install %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%{_appdir}/system/libraries/Smarty_tpl.php -- 2.43.0