From d9dbeccb2c4991472fe3854ec5696a5d1c22dc03 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 4 Jan 2018 08:27:37 +0100 Subject: Update to 1.2.0 use phpunit6 on Fedora --- composer.json | 2 +- php-composer-spdx-licenses-autoload.php | 9 ----- php-composer-spdx-licenses.spec | 60 ++++++++++++++++++--------------- 3 files changed, 33 insertions(+), 38 deletions(-) delete mode 100644 php-composer-spdx-licenses-autoload.php diff --git a/composer.json b/composer.json index 2b5fed6..50b5763 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "php": "^5.3.2 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.5 || ^5.0.5", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5", "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0" }, "autoload": { diff --git a/php-composer-spdx-licenses-autoload.php b/php-composer-spdx-licenses-autoload.php deleted file mode 100644 index 35fd2c8..0000000 --- a/php-composer-spdx-licenses-autoload.php +++ /dev/null @@ -1,9 +0,0 @@ -= 4.5 -BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 2.3 +%if 0%{?fedora} >= 26 +%global phpunit %{_bindir}/phpunit6 +# ignore min version, test suite passes with 6.4 +BuildRequires: phpunit6 >= 6.4 +%else +%global phpunit %{_bindir}/phpunit +BuildRequires: php-phpunit-PHPUnit >= 4.8.35 +%endif # Autoloader BuildRequires: php-composer(fedora/autoloader) %endif @@ -49,7 +54,7 @@ BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require": { # "php": "^5.3.2 || ^7.0", Requires: php(language) >= 5.3.2 -# From phpcompatinfo report for version 1.0.0 (SpdxLicenses.php only) +# From phpcompatinfo report for version 1.6.0 (SpdxLicenses.php only) Requires: php-json Requires: php-pcre Requires: php-spl @@ -70,11 +75,17 @@ now extracted and made available as a stand-alone library. %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -cp %{SOURCE2} src/autoload.php %build -# Empty build section, most likely nothing required. +: Create autoloader +cat <<'AUTOLOAD' | tee src/autoload.php + - 1.2.0-1 +- Update to 1.2.0 +- use phpunit6 on Fedora + * Tue Apr 4 2017 Remi Collet - 1.1.6-1 - Update to 1.1.6 -- cgit