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

Remi Collet remi at fedoraproject.org
Wed Apr 30 11:34:24 UTC 2014


commit 51f6dd111d82284d237ec91798b114d996beb012
Author: Remi Collet <remi at fedoraproject.org>
Date:   Wed Apr 30 13:34:35 2014 +0200

    cleanup pear registry

 php-phpunit-PHP-Timer.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/php-phpunit-PHP-Timer.spec b/php-phpunit-PHP-Timer.spec
index 7689b5b..d3185fc 100644
--- a/php-phpunit-PHP-Timer.spec
+++ b/php-phpunit-PHP-Timer.spec
@@ -10,7 +10,7 @@
 
 Name:           php-phpunit-PHP-Timer
 Version:        1.0.5
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        PHP Utility class for timing
 
 Group:          Development/Libraries
@@ -66,12 +66,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.md composer.json
 %{php_home}
 
 
 %changelog
+* Wed Apr 30 2014 Remi Collet <remi at fedoraproject.org> - 1.0.5-3
+- cleanup pear registry
+
 * Wed Apr 23 2014 Remi Collet <remi at fedoraproject.org> - 1.0.5-2
 - get sources from github
 - run test suite when build --with tests


More information about the scm-commits mailing list