From: Elan Ruusamäe Date: Thu, 12 May 2011 15:33:59 +0000 (+0000) Subject: - _noautoreq (ever heard of template-specs/? in pld cvs) X-Git-Url: http://git.pld-linux.org/?p=packages%2FCodeIgniter-lib-smarty.git;a=commitdiff_plain;h=f467e1b564718ba1ffface49416db41bb845d7fb - _noautoreq (ever heard of template-specs/? in pld cvs) - make php_min_version macro of use Changed files: CodeIgniter-lib-smarty.spec -> 1.2 --- diff --git a/CodeIgniter-lib-smarty.spec b/CodeIgniter-lib-smarty.spec index 09b6db5..c391750 100644 --- a/CodeIgniter-lib-smarty.spec +++ b/CodeIgniter-lib-smarty.spec @@ -1,6 +1,6 @@ %define php_min_version 5.2.4 -%include /usr/lib/rpm/macros.php %define shortname smarty +%include /usr/lib/rpm/macros.php Summary: Use smarty template engine in CodeIgniter Name: CodeIgniter-lib-%{shortname} Version: 1 @@ -10,10 +10,12 @@ Group: Development/Languages/PHP Source0: Smarty_tpl.php Requires: CodeIgniter >= 2.0.0 Requires: php-Smarty >= 3.0 +Requires: php-common >= 4:%{php_min_version} BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _appdir %{_datadir}/CodeIgniter +%define _noautoreq pear(Smarty/Smarty.class.php) %description Use smarty template engine in CodeIgniter. @@ -23,7 +25,7 @@ Use smarty template engine in CodeIgniter. %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_appdir}/system/libraries -install %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries +cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/system/libraries %clean rm -rf $RPM_BUILD_ROOT