- _noautoreq (ever heard of template-specs/? in pld cvs)
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 12 May 2011 15:33:59 +0000 (15:33 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- make php_min_version macro of use

Changed files:
    CodeIgniter-lib-smarty.spec -> 1.2

CodeIgniter-lib-smarty.spec

index 09b6db5..c391750 100644 (file)
@@ -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
This page took 0.058722 seconds and 4 git commands to generate.