[php-phpunit-File-Iterator/epel7] cleanup pear registry

Remi Collet remi at fedoraproject.org
Wed Apr 30 10:16:09 UTC 2014


commit 2a9420c5ef57dcac5dd9cfbc4feb75fdc3c8e546
Author: Remi Collet <remi at fedoraproject.org>
Date:   Wed Apr 30 12:12:55 2014 +0200

    cleanup pear registry
    
    (cherry picked from commit a81f21c7ee5a101abea86dde0b0cb04cb33b0b00)

 php-phpunit-File-Iterator.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/php-phpunit-File-Iterator.spec b/php-phpunit-File-Iterator.spec
index 362e175..085065e 100644
--- a/php-phpunit-File-Iterator.spec
+++ b/php-phpunit-File-Iterator.spec
@@ -10,7 +10,7 @@
 
 Name:           php-phpunit-File-Iterator
 Version:        1.3.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        FilterIterator implementation that filters files based on a list of suffixes
 
 Group:          Development/Libraries
@@ -56,12 +56,22 @@ mkdir -p    %{buildroot}%{php_home}
 cp -pr File %{buildroot}%{php_home}
 
 
+%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 README.markdown LICENSE composer.json
 %{php_home}/*
 
 
 %changelog
+* Wed Apr 30 2014 Remi Collet <remi at fedoraproject.org> - 1.3.4-3
+- cleanup pear registry
+
 * Wed Apr 23 2014 Remi Collet <remi at fedoraproject.org> - 1.3.4-2
 - get sources from github
 


More information about the scm-commits mailing list