[php-phpunit-PHP-Invoker] cleanup pear registry

Remi Collet remi at fedoraproject.org
Wed Apr 30 11:20:36 UTC 2014


commit 969e2f968565329de2c0d27a592bca7f9aa73a91
Author: Remi Collet <remi at fedoraproject.org>
Date:   Wed Apr 30 13:20:50 2014 +0200

    cleanup pear registry

 php-phpunit-PHP-Invoker.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/php-phpunit-PHP-Invoker.spec b/php-phpunit-PHP-Invoker.spec
index daa3394..ad41f40 100644
--- a/php-phpunit-PHP-Invoker.spec
+++ b/php-phpunit-PHP-Invoker.spec
@@ -18,7 +18,7 @@
 
 Name:           php-phpunit-PHP-Invoker
 Version:        1.1.3
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Utility class for invoking callables with a timeout
 
 Group:          Development/Libraries
@@ -75,12 +75,22 @@ phpunit \
 %endif
 
 
+%post
+if [ -x %{_bindir}/pear ]; then
+   %{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \
+      %{pear_channel}/%{pear_name} >/dev/null || :
+fi
+
+
 %files
 %doc LICENSE README.markdown ChangeLog.markdown composer.json
 %{php_home}/*
 
 
 %changelog
+* Wed Apr 30 2014 Remi Collet <remi at fedoraproject.org> - 1.1.3-4
+- cleanup pear registry
+
 * Wed Apr 23 2014 Remi Collet <remi at fedoraproject.org> - 1.1.3-3
 - get sources from github
 - run test suite when build --with tests


More information about the scm-commits mailing list