rpms/php-suhosin/EL-5 php-suhosin.spec,1.7,1.8

Bart Vanbrabant zoeloelip at fedoraproject.org
Thu Jan 14 09:39:32 UTC 2010


Author: zoeloelip

Update of /cvs/pkgs/rpms/php-suhosin/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24390

Modified Files:
	php-suhosin.spec 
Log Message:
Update spec to work on EPEL



Index: php-suhosin.spec
===================================================================
RCS file: /cvs/pkgs/rpms/php-suhosin/EL-5/php-suhosin.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -p -r1.7 -r1.8
--- php-suhosin.spec	31 Oct 2009 15:59:13 -0000	1.7
+++ php-suhosin.spec	14 Jan 2010 09:39:32 -0000	1.8
@@ -1,10 +1,11 @@
 %global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
 %global php_extdir  %(php-config --extension-dir 2>/dev/null || echo "undefined")
 %global php_version %(php-config --version 2>/dev/null || echo 0)
+%global php_zendabiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1)
 
 Name:           php-suhosin
 Version:        0.9.29
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Suhosin is an advanced protection system for PHP installations
 
 Group:          Development/Languages
@@ -14,8 +15,11 @@ Source0:        http://download.suhosin.
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildRequires:  php-devel
-Requires:       php(zend-abi) = %{php_zend_api}
-Requires:       php(api) = %{php_apiver}
+%if "%{rhel}" == "5"
+Requires:       php-zend-abi = %{php_zendabiver}
+%else
+Requires:       php = %{php_version}
+%endif
 
 %description
 Suhosin is an advanced protection system for PHP installations. It was designed 
@@ -49,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT
 %{php_extdir}/suhosin.so
 
 %changelog
+* Thu Jan 14 2010 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> - 0.9.29-2
+- Fix abi requires for EPEL
+
 * Sat Oct 31 2009 Bart Vanbrabant <bart.vanbrabant at zoeloelip.be> - 0.9.29-1
 Update to version 0.9.29
 - Fixing crash bugs with PHP 5.3.0 caused by unexpected NULL in 



More information about the scm-commits mailing list