[php-phpunit-PHPUnit-Story] cleanup pear registry

Remi Collet remi at fedoraproject.org
Wed Apr 30 11:12:02 UTC 2014


commit ef30e87bf74be0ca18f14afa6978183c81be0193
Author: Remi Collet <remi at fedoraproject.org>
Date:   Wed Apr 30 13:12:15 2014 +0200

    cleanup pear registry

 php-phpunit-PHPUnit-Story.spec |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/php-phpunit-PHPUnit-Story.spec b/php-phpunit-PHPUnit-Story.spec
index 891b3e9..a0f0b9a 100644
--- a/php-phpunit-PHPUnit-Story.spec
+++ b/php-phpunit-PHPUnit-Story.spec
@@ -18,7 +18,7 @@
 
 Name:           php-phpunit-PHPUnit-Story
 Version:        1.0.2
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Story extension for PHPUnit to facilitate Behaviour-Driven Development
 
 Group:          Development/Libraries
@@ -70,12 +70,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 ChangeLog.markdown LICENSE composer.json
 %{php_home}/PHPUnit/Extensions/Story
 
 
 %changelog
+* Wed Apr 30 2014 Remi Collet <remi at fedoraproject.org> - 1.0.2-4
+- cleanup pear registry
+
 * Tue Apr 29 2014 Remi Collet <remi at fedoraproject.org> - 1.0.2-3
 - sources from github
 - run test suite when build --with tests
@@ -87,4 +97,4 @@ phpunit \
 - Update to 1.0.2 (no change)
 
 * Thu Mar 28 2013 Remi Collet <remi at fedoraproject.org> - 1.0.1-1
-- initial package
\ No newline at end of file
+- initial package


More information about the scm-commits mailing list