%define upstream_name PHPUnit %define _requires_exceptions pear(TestConfiguration.php) Name: php-pear-%{upstream_name} Version: 3.3.17 Release: %mkrel 2 Summary: Regression testing framework for unit tests License: PHP License Group: Development/PHP URL: http://www.phpunit.de/ Source0: http://pear.phpunit.de/get/PHPUnit-%{version}.tgz Requires(post): php-pear Requires(preun): php-pear Requires: php-cli >= 3:5.2.1 Requires: php-pear Requires: php-channel-phpunit BuildArch: noarch BuildRequires: php-pear BuildRequires: php-channel-phpunit BuildRoot: %{_tmppath}/%{name}-%{version} %description PHPUnit is a regression testing framework used by the developer who implements unit tests in PHP. This is the version to be used with PHP 5. %prep %setup -q -c mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml %build %install rm -rf %{buildroot} cd %{upstream_name}-%{version} pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml rm -rf %{buildroot}%{_datadir}/pear/.??* rm -rf %{buildroot}%{_datadir}/pear/docs rm -rf %{buildroot}%{_datadir}/pear/tests install -d %{buildroot}%{_datadir}/pear/packages install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages %clean rm -rf %{buildroot} %post %if %mdkversion < 201000 pear install --nodeps --soft --force --register-only \ %{_datadir}/pear/packages/%{upstream_name}.xml >/dev/null || : %endif %preun %if %mdkversion < 201000 if [ "$1" -eq "0" ]; then pear uninstall --nodeps --ignore-errors --register-only \ %{pear_name} >/dev/null || : fi %endif %files %defattr(-,root,root) %{_bindir}/phpunit %{_datadir}/pear/PHPUnit %{_datadir}/pear/packages/PHPUnit.xml %changelog * Sat Nov 21 2009 Guillaume Rousse <guillomovitch@mandriva.org> 3.3.17-2mdv2010.1 + Revision: 468060 - spec cleanup - use pear installer - don't ship tests, even in documentation - own all directories - use rpm filetriggers starting from mandriva 2010.1 * Mon Sep 21 2009 Guillaume Rousse <guillomovitch@mandriva.org> 3.3.17-1mdv2010.0 + Revision: 446478 - update to new version 3.3.17 * Fri Jul 10 2009 Guillaume Rousse <guillomovitch@mandriva.org> 3.3.16-1mdv2010.0 + Revision: 394097 - update to new version 3.3.16 * Tue Feb 17 2009 Oden Eriksson <oeriksson@mandriva.com> 3.3.9-1mdv2009.1 + Revision: 341719 - 3.3.9 * Thu Jan 01 2009 Oden Eriksson <oeriksson@mandriva.com> 3.3.8-2mdv2009.1 + Revision: 322630 - rebuild * Mon Dec 29 2008 Guillaume Rousse <guillomovitch@mandriva.org> 3.3.8-1mdv2009.1 + Revision: 320935 - new version - don't duplicate spec-helper job - cleanup file list * Thu Jul 17 2008 Oden Eriksson <oeriksson@mandriva.com> 3.1.9-2mdv2009.0 + Revision: 237047 - rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Tue Nov 06 2007 Oden Eriksson <oeriksson@mandriva.com> 3.1.9-1mdv2008.1 + Revision: 106412 - require the php-channel-phpunit package that registers the pear.phpunit.de channel - another attempt to build the package - fix build (take #2) - fix build - 3.1.9 - simplify the install and fix #33148 * Fri Jun 01 2007 Oden Eriksson <oeriksson@mandriva.com> 3.0.6-4mdv2008.0 + Revision: 33604 - don't require php-xdebug * Wed May 02 2007 Oden Eriksson <oeriksson@mandriva.com> 3.0.6-3mdv2008.0 + Revision: 20497 - fix deps (duh...) * Tue Apr 24 2007 Oden Eriksson <oeriksson@mandriva.com> 3.0.6-2mdv2008.0 + Revision: 17790 - fix deps * Wed Apr 18 2007 Oden Eriksson <oeriksson@mandriva.com> 3.0.6-1mdv2008.0 + Revision: 14671 - Import php-pear-PHPUnit * Wed Apr 18 2007 Oden Eriksson <oeriksson@mandriva.com> 3.0.6-1mdv2008.0 - initial Mandriva package