# spec file for php-phpunit-PHPUnit # # Copyright (c) 2010-2015 Remi Collet # Copyright (c) 2006-2009 Christopher Stone # # License: MIT # http://opensource.org/licenses/MIT # # Please, preserve the changelog entries # %global gh_commit 163232991e652e6efed2f8470326fffa61e848e2 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project phpunit %global php_home %{_datadir}/php %global pear_name PHPUnit %global pear_channel pear.phpunit.de Name: php-phpunit-PHPUnit Version: 4.6.4 Release: 1%{?dist} Summary: The PHP Unit Testing framework Group: Development/Libraries License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz # Autoload template, from version 3.7 Source1: Autoload.php.in # Fix command for autoload Patch0: %{gh_project}-rpm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: php(language) >= 5.3.3 BuildRequires: %{_bindir}/phpab BuildRequires: php-composer(phpunit/php-file-iterator) >= 1.3.2 BuildRequires: php-composer(phpunit/php-text-template) >= 1.2 BuildRequires: php-composer(phpunit/php-code-coverage) >= 2.0.11 BuildRequires: php-composer(phpunit/php-timer) >= 1.0.2 BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 2.3 BuildRequires: php-composer(phpspec/prophecy) >= 1.3.1 BuildRequires: php-composer(sebastian/comparator) >= 1.1 BuildRequires: php-composer(sebastian/diff) >= 1.1 BuildRequires: php-composer(sebastian/environment) >= 1.2 BuildRequires: php-composer(sebastian/exporter) >= 1.2 BuildRequires: php-composer(sebastian/recursion-context) >= 1.0 BuildRequires: php-composer(sebastian/global-state) >= 1.0 BuildRequires: php-composer(sebastian/version) >= 1.0 BuildRequires: php-composer(symfony/yaml) >= 2.0 BuildRequires: php-composer(symfony/class-loader) >= 2.0 BuildRequires: php-composer(phpunit/php-invoker) >= 1.1.0 # From composer.json # "php": ">=5.3.3", # "phpunit/php-file-iterator": "~1.4", # "phpunit/php-text-template": "~1.2", # "phpunit/php-code-coverage": "~2.0>=2.0.11", # "phpunit/php-timer": "~1.0", # "phpunit/phpunit-mock-objects": "~2.2", # "phpspec/prophecy": "~1.3,>=1.3.1", # "symfony/yaml": "~2.1|~3.0", # "sebastian/comparator": "~1.0", # "sebastian/diff": "~1.2", # "sebastian/environment": "~1.1", # "sebastian/exporter": "~1.1", # "sebastian/recursion-context": "~1.0", # "sebastian/global-state": "~1.0", # "sebastian/version": "~1.0", # "ext-dom": "*", # "ext-json": "*", # "ext-pcre": "*", # "ext-reflection": "*", # "ext-spl": "*" Requires: php(language) >= 5.3.3 Requires: php-composer(phpunit/php-file-iterator) >= 1.4 Requires: php-composer(phpunit/php-file-iterator) < 2 Requires: php-composer(phpunit/php-text-template) >= 1.2 Requires: php-composer(phpunit/php-text-template) < 2 Requires: php-composer(phpunit/php-code-coverage) >= 2.0.11 Requires: php-composer(phpunit/php-code-coverage) < 3 Requires: php-composer(phpunit/php-timer) >= 1.0 Requires: php-composer(phpunit/php-timer) < 2 Requires: php-composer(phpunit/phpunit-mock-objects) >= 2.3 Requires: php-composer(phpunit/phpunit-mock-objects) < 3 Requires: php-composer(phpspec/prophecy) >= 1.3.1 Requires: php-composer(phpspec/prophecy) < 2 Requires: php-composer(sebastian/comparator) >= 1.1 Requires: php-composer(sebastian/comparator) < 2 Requires: php-composer(sebastian/diff) >= 1.2 Requires: php-composer(sebastian/diff) < 2 Requires: php-composer(sebastian/environment) >= 1.2 Requires: php-composer(sebastian/environment) < 2 Requires: php-composer(sebastian/exporter) >= 1.2 Requires: php-composer(sebastian/exporter) < 2 Requires: php-composer(sebastian/global-state) >= 1.0 Requires: php-composer(sebastian/global-state) < 2 Requires: php-composer(sebastian/version) >= 1.0 Requires: php-composer(sebastian/version) < 2 Requires: php-composer(symfony/yaml) >= 2.1 Requires: php-composer(symfony/yaml) < 4 Requires: php-dom Requires: php-json Requires: php-pcre Requires: php-reflection Requires: php-spl # Optional # "phpunit/php-invoker": "~1.1" Requires: php-composer(phpunit/php-invoker) >= 1.1 Requires: php-composer(phpunit/php-invoker) < 2 # For our autoload patch Requires: php-composer(doctrine/instantiator) >= 1.0.4 Requires: php-composer(doctrine/instantiator) < 2 Requires: php-composer(symfony/class-loader) >= 2.0 Requires: php-composer(symfony/class-loader) < 3 Requires: php-composer(sebastian/recursion-context) >= 1.0 # From phpcompatinfo report for version 4.0.18 Requires: php-date Requires: php-libxml Requires: php-mbstring Requires: php-openssl Requires: php-pcntl Requires: php-phar Requires: php-tidy Requires: php-xml Provides: php-composer(phpunit/phpunit) = %{version} # For compatibility with PEAR mode Provides: php-pear(%{pear_channel}/%{pear_name}) = %{version} # Package have been rename Obsoletes: php-pear-PHPUnit < %{version} Provides: php-pear-PHPUnit = %{version}-%{release} # Project Provides: phpunit = %{version}-%{release} %description PHPUnit is a family of PEAR packages that supports the development of object-oriented PHP applications using the concepts and methods of Agile Software Development, Extreme Programming, Test-Driven Development and Design-by-Contract Development by providing an elegant and robust framework for the creation, execution and analysis of Unit Tests. %prep %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -b .rpm # Restore PSR-0 tree mv src PHPUnit %build %{_bindir}/phpab \ --output PHPUnit/Autoload.php \ --template %{SOURCE1} \ PHPUnit %{_bindir}/phpab \ --output tests/autoload.php \ tests %install rm -rf %{buildroot} mkdir -p %{buildroot}%{php_home} cp -pr PHPUnit %{buildroot}%{php_home}/PHPUnit install -D -p -m 755 phpunit %{buildroot}%{_bindir}/phpunit %check sed -e '/logging/d' \ -e '/ phpunit.xml ./phpunit --testsuite=small %clean 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 composer.json %{!?_licensedir:%global license %%doc} %license LICENSE %{_bindir}/phpunit %{php_home}/PHPUnit %changelog * Mon Apr 13 2015 Remi Collet - 4.6.4-1 - Update to 4.6.4 * Tue Apr 7 2015 Remi Collet - 4.6.2-1 - Update to 4.6.2 * Fri Apr 3 2015 Remi Collet - 4.6.1-1 - Update to 4.6.1 * Fri Apr 3 2015 Remi Collet - 4.6.0-1 - Update to 4.6.0 - raise dependencies on file-iterator 1.4 and diff 1.2 * Sun Mar 29 2015 Remi Collet - 4.5.1-1 - Update to 4.5.1 * Fri Feb 13 2015 Remi Collet - 4.5.0-1 - Update to 4.5.0 - add dependency on phpspec/prophecy - raise dependencies on sebastian/comparator >= 1.1, sebastian/environment >= 1.2, sebastian/exporter >= 1.2 and doctrine/instantiator >= 1.0.4 (for autoloader file) * Tue Jan 27 2015 Remi Collet - 4.4.5-1 - Update to 4.4.5 (no change) * Tue Jan 27 2015 Remi Collet - 4.4.4-2 - add dependency on sebastian/recursion-context * Sun Jan 25 2015 Remi Collet - 4.4.4-1 - Update to 4.4.4 * Sun Jan 18 2015 Remi Collet - 4.4.2-1 - Update to 4.4.2 * Sun Dec 28 2014 Remi Collet - 4.4.1-1 - Update to 4.4.1 * Fri Dec 5 2014 Remi Collet - 4.4.0-1 - Update to 4.4.0 - add dependency on sebastian/global-state * Tue Nov 11 2014 Remi Collet - 4.3.5-1 - Update to 4.3.5 - define date.timezone in phpunit command to avoid warning * Sat Oct 25 2014 Remi Collet - 4.3.4-1 - Update to 4.3.4 - raise dependency on phpunit/php-file-iterator >= 1.3.2 * Fri Oct 17 2014 Remi Collet - 4.3.3-1 - Update to 4.3.3 * Thu Oct 16 2014 Remi Collet - 4.3.2-1 - Update to 4.3.2 * Wed Oct 8 2014 Remi Collet - 4.3.1-2 - new upstream patch for "no colors" patch - raise dependency on sebastian/environment >= 1.1 * Mon Oct 6 2014 Remi Collet - 4.3.1-1 - Update to 4.3.1 (no change) * Mon Oct 6 2014 Remi Collet - 4.3.0-2 - only enable colors when output to a terminal (from 4.4) - open https://github.com/sebastianbergmann/phpunit/pull/1458 * Fri Oct 3 2014 Remi Collet - 4.3.0-1 - Update to 4.3.0 - drop dependencies on ocramius/instantiator and ocramius/lazy-map - add dependency on doctrine/instantiator - raise dependency on phpunit/phpunit-mock-objects >= 2.3 * Sun Sep 14 2014 Remi Collet - 4.2.6-1 - Update to 4.2.6 (no change) * Sun Sep 7 2014 Remi Collet - 4.2.5-1 - Update to 4.2.5 (no change) * Sun Aug 31 2014 Remi Collet - 4.2.4-1 - Update to 4.2.4 * Thu Aug 28 2014 Remi Collet - 4.2.3-1 - Update to 4.2.3 * Mon Aug 18 2014 Remi Collet - 4.2.2-1 - Update to 4.2.2 * Sun Aug 17 2014 Remi Collet - 4.2.1-1 - Update to 4.2.1 * Mon Aug 11 2014 Remi Collet - 4.2.0-1 - Update to 4.2.0 - raise dependency on phpunit/phpunit-mock-objects >= 2.2 - add dependency on ocramius/instantiator, ocramius/lazy-map and symfony/class-loader * Fri Jul 18 2014 Remi Collet - 4.1.4-1 - Update to 4.1.4 - composer dependencies - add missing documentation and license * Fri Jun 13 2014 Remi Collet - 4.1.3-1 - Update to 4.1.3 * Sat Jun 7 2014 Remi Collet - 4.1.2-1 - Update to 4.1.2 (no change) - improve test suite bootstraping - add composer provide * Mon May 26 2014 Remi Collet - 4.1.1-1 - Update to 4.1.1 * Tue May 6 2014 Remi Collet - 4.1.0-2 - fix some autoload issues * Sat May 3 2014 Remi Collet - 4.1.0-1 - Update to 4.1.0 * Wed Apr 30 2014 Remi Collet - 4.0.18-2 - cleanup pear registry * Tue Apr 29 2014 Remi Collet - 4.0.18-1 - update to 4.0.18 - sources from github * Tue Apr 22 2014 Remi Collet - 3.7.35-2 - remove message about deprecated PEAR channel * Tue Apr 22 2014 Remi Collet - 3.7.35-1 - Update to 3.7.35 * Sun Apr 06 2014 Remi Collet - 3.7.34-1 - Update to 3.7.34 * Tue Feb 25 2014 Remi Collet - 3.7.32-1 - Update to 3.7.32 (no change) * Mon Feb 03 2014 Remi Collet - 3.7.31-1 - Update to 3.7.31 (no change) * Fri Jan 31 2014 Remi Collet - 3.7.30-1 - Update to 3.7.30 * Wed Jan 15 2014 Remi Collet - 3.7.29-1 - Update to 3.7.29 (stable) * Thu Oct 17 2013 Remi Collet - 3.7.28-1 - Update to 3.7.28 - add Spec license header - open https://github.com/sebastianbergmann/phpunit/issues/1029 * Mon Sep 16 2013 Remi Collet - 3.7.27-1 - Update to 3.7.27 (no change) * Fri Sep 13 2013 Remi Collet - 3.7.26-1 - Update to 3.7.26 (no change) * Tue Sep 10 2013 Remi Collet - 3.7.25-1 - Update to 3.7.25 (no change) * Tue Aug 20 2013 Remi Collet - 3.7.24-1 - Update to 3.7.24 * Mon Aug 05 2013 Remi Collet - 3.7.23-1 - Update to 3.7.23 - raise dependency on phpunit/PHP_Timer 1.0.4 * Mon Jul 08 2013 Remi Collet - 3.7.22-1 - Update to 3.7.22 * Fri May 24 2013 Remi Collet - 3.7.21-1 - Update to 3.7.21 * Mon May 13 2013 Remi Collet - 3.7.20-1 - Update to 3.7.20 * Mon Mar 25 2013 Remi Collet - 3.7.19-1 - Update to 3.7.19 - requires pear.symfony.com/Yaml >= 2.0.0, <= 2.2.99 * Fri Mar 08 2013 Remi Collet - 3.7.18-1 - Update to 3.7.18 * Thu Mar 07 2013 Remi Collet - 3.7.17-1 - Update to 3.7.17 * Wed Mar 06 2013 Remi Collet - 3.7.16-1 - Update to 3.7.16 * Tue Mar 05 2013 Remi Collet - 3.7.15-1 - Update to 3.7.15 * Thu Feb 14 2013 Remi Collet - 3.7.14-1 - Update to 3.7.14 * Sun Jan 13 2013 Remi Collet - 3.7.13-1 - Version 3.7.13 (stable) - API 3.7.0 (stable) * Thu Jan 10 2013 Remi Collet - 3.7.12-1 - Version 3.7.12 (stable) - API 3.7.0 (stable) * Wed Jan 9 2013 Remi Collet - 3.7.11-1 - Version 3.7.11 (stable) - API 3.7.0 (stable) * Sun Dec 2 2012 Remi Collet - 3.7.10-1 - Version 3.7.10 (stable) - API 3.7.0 (stable) * Wed Nov 07 2012 Remi Collet - 3.7.9-1 - Version 3.7.9 (stable) - API 3.7.0 (stable) * Thu Oct 18 2012 Remi Collet - 3.7.8-1 - Version 3.7.8 (stable) - API 3.7.0 (stable) * Thu Oct 11 2012 Remi Collet - 3.7.7-1 - Version 3.7.7 (stable) - API 3.7.0 (stable) * Sun Oct 7 2012 Remi Collet - 3.7.6-1 - Version 3.7.6 (stable) - API 3.7.0 (stable) * Sat Oct 6 2012 Remi Collet - 3.7.5-1 - Version 3.7.5 (stable) - API 3.7.0 (stable) * Sat Oct 6 2012 Remi Collet - 3.7.4-1 - Version 3.7.4 (stable) - API 3.7.0 (stable) - add Conflicts for max version of PHP_CodeCoverage and PHPUnit_MockObject * Thu Sep 20 2012 Remi Collet - 3.7.1-1 - Version 3.7.1 (stable) - API 3.7.0 (stable) - raise dependencies: php 5.3.3, PHP_CodeCoverage 1.2.1, PHP_Timer 1.0.2, Yaml 2.1.0 (instead of YAML from symfony 1) * Sat Aug 04 2012 Remi Collet - 3.6.12-1 - Version 3.6.12 (stable) - API 3.6.0 (stable) * Sat Jul 21 2012 Fedora Release Engineering - 3.6.11-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 07 2012 Remi Collet - 3.6.11-1 - Version 3.6.11 (stable) - API 3.6.0 (stable) * Fri Jan 27 2012 Remi Collet - 3.6.10-1 - Version 3.6.10 (stable) - API 3.6.0 (stable) - raise PHP_Invokers >= 1.1.0 * Tue Jan 24 2012 Remi Collet - 3.6.9-1 - Version 3.6.9 (stable) - API 3.6.0 (stable) * Sat Jan 21 2012 Remi Collet - 3.6.8-1 - Version 3.6.8 (stable) - API 3.6.0 (stable) * Thu Jan 05 2012 Remi Collet - 3.6.7-1 - Version 3.6.7 (stable) - API 3.6.0 (stable) * Mon Jan 02 2012 Remi Collet - 3.6.6-1 - Version 3.6.6 (stable) - API 3.6.0 (stable) * Mon Dec 19 2011 Remi Collet - 3.6.5-1 - Version 3.6.5 (stable) - API 3.6.0 (stable) * Sat Nov 26 2011 Remi Collet - 3.6.4-1 - Version 3.6.4 (stable) - API 3.6.0 (stable) * Fri Nov 11 2011 Remi Collet - 3.6.3-1 - Version 3.6.3 (stable) - API 3.6.0 (stable) * Fri Nov 04 2011 Remi Collet - 3.6.2-1 - Version 3.6.2 (stable) - API 3.6.0 (stable) * Tue Nov 01 2011 Remi Collet - 3.6.0-1 - Version 3.6.0 (stable) - API 3.6.0 (stable) * Fri Aug 19 2011 Remi Collet - 3.5.15-1 - Version 3.5.15 (stable) - API 3.5.7 (stable) - raise PEAR dependency to 1.9.3 * Fri Jun 10 2011 Remi Collet - 3.5.14-1 - Version 3.5.14 (stable) - API 3.5.7 (stable) * Tue May 3 2011 Remi Collet - 3.5.13-2 - rebuild for doc in /usr/share/doc/pear * Tue Mar 8 2011 Remi Collet - 3.5.13-1 - Version 3.5.13 (stable) - API 3.5.7 (stable) - remove PEAR hack (only needed for EPEL) - raise PEAR dependency to 1.9.2 - remove duplicate dependency (YAML) * Thu Feb 24 2011 Remi Collet - 3.5.12-1 - Version 3.5.12 (stable) - API 3.5.7 (stable) * Wed Feb 16 2011 Remi Collet - 3.5.11-1 - Version 3.5.11 (stable) - API 3.5.7 (stable) - new dependency on php-pear(XML_RPC2) * Wed Feb 09 2011 Fedora Release Engineering - 3.5.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Jan 20 2011 Remi Collet - 3.5.10-1 - Version 3.5.10 (stable) - API 3.5.7 (stable) * Tue Jan 18 2011 Remi Collet - 3.5.9-1 - Version 3.5.9 (stable) - API 3.5.7 (stable) * Tue Jan 11 2011 Remi Collet - 3.5.7-1 - Version 3.5.7 (stable) - API 3.5.7 (stable) - README, CHANGELOG and LICENSE are now in the tarball * Mon Dec 20 2010 Remi Collet - 3.5.6-1 - Version 3.5.6 (stable) - API 3.5.4 (stable) - move README.mardown to README (was Changelog, now links to doc) - add CHANGELOG - not more doc provided by upstream * Mon Nov 22 2010 Remi Collet - 3.5.5-1 - Version 3.5.5 (stable) - API 3.5.4 (stable) * Wed Nov 17 2010 Remi Collet - 3.5.4-1 - Version 3.5.4 (stable) - API 3.5.4 (stable) * Wed Oct 27 2010 Remi Collet - 3.5.3-1 - Update to 3.5.3 - new requires and new packages for extensions of PHPUnit PHPUnit_MockObject, PHPUnit_Selenium, DbUnit - lower PEAR dependency to allow el6 build - define timezone during build * Thu Jul 22 2010 Remi Collet - 3.4.15-1 - Update to 3.4.15 * Sat Jun 19 2010 Remi Collet - 3.4.14-1 - Update to 3.4.14 * Sat May 22 2010 Remi Collet - 3.4.13-1 - Update to 3.4.13 - add README.markdown (Changelog) * Wed Apr 07 2010 Remi Collet - 3.4.12-1 - Update to 3.4.12 * Thu Feb 18 2010 Remi Collet - 3.4.11-1.1 - Update to 3.4.11 * Wed Feb 10 2010 Remi Collet - 3.4.10-1 - Update to 3.4.10 * Sun Jan 24 2010 Remi Collet - 3.4.9-1 - Update to 3.4.9 * Sat Jan 16 2010 Remi Collet - 3.4.7-1 - Update to 3.4.7 - rename from php-pear-PHPUnit to php-phpunit-PHPUnit - update dependencies (PEAR 1.8.1, YAML, php-soap) * Sat Sep 12 2009 Christopher Stone 3.3.17-1 - Upstream sync * Sun Jul 26 2009 Fedora Release Engineering - 3.3.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sat May 02 2009 Remi Collet - 3.3.16-1 - Upstream sync - Fix requires (remove hint) and raise PEAR version to 1.7.1 - rename %%{pear_name}.xml to %%{name}.xml * Thu Feb 26 2009 Fedora Release Engineering - 3.3.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 8 2008 Christopher Stone 3.3.4-1 - Upstream sync * Thu Oct 23 2008 Christopher Stone 3.3.2-1 - Upstream sync - Remove no longer needed Obsolete/Provides * Thu Oct 09 2008 Christopher Stone 3.3.1-1 - Upstream sync * Thu Oct 09 2008 Christopher Stone 3.2.21-1 - Upstream sync - Add php-xml to Requires (bz #464758) * Thu May 22 2008 Christopher Stone 3.2.19-1 - Upstream sync * Thu Feb 21 2008 Christopher Stone 3.2.15-1 - Upstream sync * Wed Feb 13 2008 Christopher Stone 3.2.13-1 - Upstream sync * Sun Nov 25 2007 Christopher Stone 3.2.1-1 - Upstream sync * Sat Sep 08 2007 Christopher Stone 3.1.8-1 - Upstream sync * Sun May 06 2007 Christopher Stone 3.0.6-1 - Upstream sync * Thu Mar 08 2007 Christopher Stone 3.0.5-3 - Fix testdir - Fix Provides version * Wed Mar 07 2007 Christopher Stone 3.0.5-2 - Add Obsoletes/Provides for php-pear(PHPUnit2) - Requires php-pear(PEAR) >= 1.5.0 - Own %%{pear_testdir}/%%{pear_name} - Remove no longer needed manual channel install - Simplify %%doc - Only unregister old phpunit on upgrade * Mon Feb 26 2007 Christopher Stone 3.0.5-1 - Upstream sync * Wed Feb 21 2007 Christohper Stone 3.0.4-1 - Upstream sync * Mon Jan 29 2007 Christopher Stone 3.0.3-1 - Upstream sync * Sun Jan 14 2007 Christopher Stone 3.0.2-1 - Upstream sync * Fri Jan 05 2007 Christopher Stone 3.0.1-1 - Upstream sync * Wed Dec 27 2006 Christopher Stone 3.0.0-1 - Initial Release