[php-pecl-lzf] * fix #715791

topdog topdog at fedoraproject.org
Fri Jul 15 09:15:33 UTC 2011


commit 98f940aeca5333308bc3b1d23ba49b3216dcc1ad
Author: Andrew Colin Kissa <andrew at topdog.za.net>
Date:   Fri Jul 15 11:14:52 2011 +0200

     * fix #715791

 php-pecl-lzf.spec |   24 ++++++++++--------------
 1 files changed, 10 insertions(+), 14 deletions(-)
---
diff --git a/php-pecl-lzf.spec b/php-pecl-lzf.spec
index f82b04b..9cf8d45 100644
--- a/php-pecl-lzf.spec
+++ b/php-pecl-lzf.spec
@@ -6,7 +6,7 @@
 
 Name:		php-pecl-lzf
 Version:	1.5.2
-Release:	6%{?dist}
+Release:	7%{?dist}
 Summary:	Extension to handle LZF de/compression
 Group:		Development/Languages
 License:	PHP
@@ -14,17 +14,14 @@ URL:		http://pecl.php.net/package/%{pecl_name}
 Source0:	http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires:	php-devel php-pear >= 1:1.4.0
+BuildRequires:	php-devel
+BuildRequires:  php-pear >= 1:1.4.0
+Requires:       php(zend-abi) = %{php_zend_api}
+Requires:       php(api) = %{php_core_api}
 Requires(post):	%{__pecl}
 Requires(postun):	%{__pecl}
-Provides:	php-pecl(lzf) = %{version}
+Provides:	php-pecl(%{pecl_name}) = %{version}
 
-%if %{?php_zend_api}0
-Requires:	php(zend-abi) = %{php_zend_api}
-Requires:	php(api) = %{php_core_api}
-%else
-Requires:	php-api = %{php_apiver}
-%endif
 
 %description
 This extension provides LZF compression and decompression using the liblzf
@@ -62,18 +59,14 @@ EOF
 %clean
 %{__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
+if [ $1 -eq 0 ]  ; then
 %{pecl_uninstall} %{pecl_name} >/dev/null || :
 fi
-%endif
 
 %files
 %defattr(-,root,root,-)
@@ -83,6 +76,9 @@ fi
 %{pecl_xmldir}/%{name}.xml
 
 %changelog
+* Fri Jul 15 2011 Andrew Colin Kissa <andrew at topdog.za.net> - 1.5.2-7
+- Fix bugzilla #715791
+
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.5.2-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 


More information about the scm-commits mailing list