summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-12-24 10:59:55 +0100
committerRemi Collet <fedora@famillecollet.com>2014-12-24 10:59:55 +0100
commit2eabf35267cb51b981b7407deb9a270dce5b2f33 (patch)
tree38bfd0ee521ce8b2a9c426528bd4cd61b14cb250
parentbf800001332fce0ad4cc056f287d11929ba10c55 (diff)
php-pear: cleanup registry on removal
-rw-r--r--php-pear.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/php-pear.spec b/php-pear.spec
index f2cb060..d0327b8 100644
--- a/php-pear.spec
+++ b/php-pear.spec
@@ -23,7 +23,7 @@
Summary: PHP Extension and Application Repository framework
Name: %{?scl_prefix}php-pear
Version: 1.9.5
-Release: 4%{?dist}
+Release: 4%{?dist}.1
Epoch: 1
# PEAR, Archive_Tar, XML_Util are BSD
# Console_Getopt is PHP
@@ -319,6 +319,11 @@ if [ "$current" != "%{_datadir}/tests/pecl" ]; then
system >/dev/null || :
fi
+%postun
+if [ $1 -eq 0 -a -d %{metadir}/.registry ] ; then
+ rm -rf %{metadir}/.registry
+fi
+
%files
%defattr(-,root,root,-)
@@ -360,6 +365,10 @@ fi
%changelog
+* Wed Dec 24 2014 Remi Collet <remi@fedoraproject.org> 1:1.9.5-4.1
+- Fedora 21 SCL mass rebuild
+- cleanup registry after removal
+
* Mon Sep 8 2014 Remi Collet <remi@fedoraproject.org> 1:1.9.5-4
- rebuild for SCL