From 30e943ee6d08c68434300709fb01e3f27c4728c3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 30 Apr 2014 10:49:03 +0200 Subject: php-phpunit-*: clean pear registry --- php-phpunit-PHP-CodeCoverage.spec | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'php-phpunit-PHP-CodeCoverage.spec') diff --git a/php-phpunit-PHP-CodeCoverage.spec b/php-phpunit-PHP-CodeCoverage.spec index 86b09f2..fa9b147 100644 --- a/php-phpunit-PHP-CodeCoverage.spec +++ b/php-phpunit-PHP-CodeCoverage.spec @@ -14,11 +14,11 @@ %global pear_name PHP_CodeCoverage %global pear_channel pear.phpunit.de # disable because of circular dep with phpunit -%global with_tests %{?_witht_tests:1}%{!?_with_tests:0} +%global with_tests %{?_with_tests:1}%{!?_with_tests:0} Name: php-phpunit-PHP-CodeCoverage Version: 2.0.7 -Release: 1%{?dist} +Release: 2%{?dist} Summary: PHP code coverage information Group: Development/Libraries @@ -83,7 +83,7 @@ cp -pr src %{buildroot}%{php_home}/PHP %check phpunit \ -d date.timezone=UTC \ - --bootstrap src/Autoload.php + --bootstrap src/CodeCoverage/Autoload.php %endif @@ -91,6 +91,13 @@ phpunit \ rm -rf %{buildroot} +%post +if [ -x %{_bindir}/pear ]; then + %{_bindir}/pear uninstall --nodeps --ignore-errors --register-only \ + %{pear_channel}/%{pear_name} >/dev/null +fi + + %files %defattr(-,root,root,-) %doc CONTRIBUTING.md README.md LICENSE composer.json @@ -99,7 +106,10 @@ rm -rf %{buildroot} %changelog -* Tue Apr 29 2014 Remi Collet - 2.0.7-2 +* Wed Apr 30 2014 Remi Collet - 2.0.7-2 +- cleanup pear registry + +* Tue Apr 29 2014 Remi Collet - 2.0.7-1 - update to 2.0.7 - sources from github -- cgit