From 0485d37ef0ffef695cc4cc71f65327dbf0fe1d99 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 25 Mar 2016 12:21:23 +0100 Subject: php-composer-spdx-licenses: 1.1.3 --- php-composer-spdx-licenses.spec | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/php-composer-spdx-licenses.spec b/php-composer-spdx-licenses.spec index db4f51a..d807f42 100644 --- a/php-composer-spdx-licenses.spec +++ b/php-composer-spdx-licenses.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 9e1c3926bb0842812967213d7c92827bc5883671 +%global gh_commit 547659c3cacd3ccfe1b4714c2ff88cafc6b6793b %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) #global gh_date 20150717 %global gh_owner composer @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-composer-spdx-licenses -Version: 1.1.2 +Version: 1.1.3 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: SPDX licenses list and validation library @@ -39,8 +39,8 @@ BuildRequires: php-json BuildRequires: php-pcre BuildRequires: php-spl # From composer.json, "require-dev": { -# "phpunit/phpunit": "~4.5", -# "phpunit/phpunit-mock-objects": "~2.3" +# "phpunit/phpunit": "phpunit/phpunit": "^4.5 || ^5.0.5", +# "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0" BuildRequires: php-composer(phpunit/phpunit) >= 4.5 BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 2.3 # Autoloader @@ -48,7 +48,7 @@ BuildRequires: php-composer(symfony/class-loader) %endif # From composer.json, "require": { -# "php": ">=5.3.2", +# "php": "^5.3.2 || ^7.0", Requires: php(language) >= 5.3.2 # From phpcompatinfo report for version 1.0.0 (SpdxLicenses.php only) Requires: php-json @@ -101,6 +101,12 @@ export BUILDROOT_SPDX=%{buildroot} %{_bindir}/phpunit \ --bootstrap %{buildroot}%{php_home}/Composer/Spdx/autoload.php \ --verbose + +if which php70; then + php70 %{_bindir}/phpunit \ + --bootstrap %{buildroot}%{php_home}/Composer/Spdx/autoload.php \ + --verbose +fi %else : Test suite disabled %endif @@ -122,6 +128,10 @@ rm -rf %{buildroot} %changelog +* Fri Mar 25 2016 Remi Collet - 1.1.3-1 +- version 1.1.3 (new licenses) +- run test suite with both PHP 5 and 7 when available + * Mon Oct 5 2015 Remi Collet - 1.1.2-1 - version 1.1.2 (new licenses) @@ -138,4 +148,4 @@ rm -rf %{buildroot} - new snapshot (issue #6 fixed, uneeded dep on justinrainbow/json-schema) * Fri Jul 17 2015 Remi Collet - 1.0.0-1.20150716git96c33d0 -- initial package, version 1.0.0 + pr4 \ No newline at end of file +- initial package, version 1.0.0 + pr4 -- cgit