[php-pecl-amqp] clean EL-5 stuff as requires php 5.2.0, https://bugs.php.net/61351

Remi Collet remi at fedoraproject.org
Mon Mar 19 14:41:14 UTC 2012


commit 5d3c9fafb3e0fdd47c3b3af261324e2d8f02d167
Author: remi <fedora at famillecollet.com>
Date:   Mon Mar 19 15:39:45 2012 +0100

    clean EL-5 stuff as requires php 5.2.0, https://bugs.php.net/61351

 php-pecl-amqp.spec |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/php-pecl-amqp.spec b/php-pecl-amqp.spec
index 45d339c..f846474 100644
--- a/php-pecl-amqp.spec
+++ b/php-pecl-amqp.spec
@@ -1,13 +1,11 @@
 %{!?__pecl:   %{expand: %%global __pecl   %{_bindir}/pecl}}
-%global php_apiver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
-%global php_extver  %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP Extension => //p') | tail -1)
 %global pecl_name   amqp
 
 
 Summary:       Communicate with any AMQP compliant server
 Name:          php-pecl-amqp
 Version:       1.0.1
-Release:       2%{?dist}
+Release:       3%{?dist}
 # https://bugs.php.net/61337 - missing LICENSE file
 License:       PHP
 Group:         Development/Languages
@@ -18,19 +16,13 @@ Source0:       http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
 Patch0:        %{pecl_name}-php54.patch
 
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
-BuildRequires: php-devel
+# https://bugs.php.net/61351 - Should requires PHP > 5.2.0
+BuildRequires: php-devel > 5.2.0
 BuildRequires: php-pear
 BuildRequires: librabbitmq-devel
 
-%if 0%{?php_zend_api:1}
-# For Fedora and EL >= 6
 Requires:         php(zend-abi) = %{php_zend_api}
 Requires:         php(api) = %{php_core_api}
-%else
-# For EL = 5
-Requires:         php-zend-abi = %{php_extver}
-Requires:         php-api = %{php_apiver}
-%endif
 Requires(post):   %{__pecl}
 Requires(postun): %{__pecl}
 Provides:         php-pecl(%{pecl_name}) = %{version}-%{release}
@@ -120,18 +112,14 @@ php --no-php-ini \
 rm -rf %{buildroot}
 
 
-%if 0%{?pecl_install:1}
 %post
 %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-%endif
 
 
-%if 0%{?pecl_uninstall:1}
 %postun
 if [ $1 -eq 0 ] ; then
     %{pecl_uninstall} %{pecl_name} >/dev/null || :
 fi
-%endif
 
 
 %files
@@ -143,6 +131,9 @@ fi
 
 
 %changelog
+* Mon Mar 19 2012 Remi Collet <remi at fedoraproject.org> - 1.0.1-3
+- clean EL-5 stuff as requires php 5.2.0, https://bugs.php.net/61351
+
 * Sat Mar 10 2012 Remi Collet <remi at fedoraproject.org> - 1.0.1-2
 - rebuild for PHP 5.4
 


More information about the scm-commits mailing list