From 6d5a6fec62af17f9ccb0cb21b9b481d80086f028 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 25 Jul 2014 07:59:57 +0200 Subject: php-bartlett-PHP-CompatInfo: cleanup pear registration --- php-bartlett-PHP-CompatInfo.spec | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'php-bartlett-PHP-CompatInfo.spec') diff --git a/php-bartlett-PHP-CompatInfo.spec b/php-bartlett-PHP-CompatInfo.spec index 78af702..05e6d39 100644 --- a/php-bartlett-PHP-CompatInfo.spec +++ b/php-bartlett-PHP-CompatInfo.spec @@ -13,7 +13,7 @@ Name: php-bartlett-PHP-CompatInfo Version: 3.2.0 -%global specrel 2 +%global specrel 3 Release: %{?gh_short:0.%{specrel}.git%{gh_short}}%{!?gh_short:%{specrel}}%{?dist} Summary: Find out version and the extensions required for a piece of code to run @@ -113,13 +113,9 @@ install -D -p -m 644 bin/phpcompatinfo.1 %{buildroot}%{_mandir}/man1/php %post -%{__pear} install --nodeps --soft --force --register-only \ - %{pear_xmldir}/%{name}.xml >/dev/null || : - -%postun -if [ $1 -eq 0 ] ; then - %{__pear} uninstall --nodeps --ignore-errors --register-only \ - %{channel}/%{pear_name} >/dev/null || : +if [ -x %{_bindir}/pear ]; then + %{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \ + bartlett.laurent-laville.org/PHP_CompatInfo >/dev/null || : fi @@ -136,6 +132,9 @@ fi %changelog +* Fri Jul 25 2014 Remi Collet - 3.2.0-3 +- cleanup pear registration + * Thu Jul 24 2014 Remi Collet - 3.2.0-2 - add upstream patch for SNMP extension -- cgit