diff options
-rw-r--r-- | composer.json | 3 | ||||
-rw-r--r-- | php-composer-semver.spec | 18 |
2 files changed, 10 insertions, 11 deletions
diff --git a/composer.json b/composer.json index b0400cd..981e7d1 100644 --- a/composer.json +++ b/composer.json @@ -34,8 +34,7 @@ "php": "^5.3.2 || ^7.0" }, "require-dev": { - "phpunit/phpunit": "^4.5 || ^5.0.5", - "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0" + "phpunit/phpunit": "^4.5 || ^5.0.5" }, "autoload": { "psr-4": { diff --git a/php-composer-semver.spec b/php-composer-semver.spec index 61499aa..9444d5b 100644 --- a/php-composer-semver.spec +++ b/php-composer-semver.spec @@ -1,12 +1,12 @@ # remirepo/fedora spec file for php-composer-semver # -# Copyright (c) 2015-2019 Remi Collet +# Copyright (c) 2015-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%global gh_commit 46d9139568ccb8d9e7cdd4539cab7347568a5e2e +%global gh_commit c6bea70230ef4dd483e6bbcab6005f682ed3a8de %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-semver -Version: 1.5.0 +Version: 1.5.1 Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist} Summary: Semver library that offers utilities, version constraint parsing and validation @@ -33,10 +33,8 @@ BuildRequires: php(language) >= 5.3.2 BuildRequires: php-pcre BuildRequires: php-spl # From composer.json, "require-dev": { -# "phpunit/phpunit": "^4.5 || ^5.0.5", -# "phpunit/phpunit-mock-objects": "2.3.0 || ^3.0" +# "phpunit/phpunit": "^4.5 || ^5.0.5" BuildRequires: php-composer(phpunit/phpunit) >= 4.5 -BuildRequires: php-composer(phpunit/phpunit-mock-objects) >= 2.3 # Autoloader BuildRequires: php-composer(fedora/autoloader) %endif @@ -60,8 +58,7 @@ and validation. Originally written as part of composer/composer, now extracted and made available as a stand-alone library. -To use this library, you just have to add, in your project: - require_once '%{_datadir}/php/Composer/Semver/autoload.php'; +Autoloader: %{_datadir}/php/Composer/Semver/autoload.php %prep @@ -83,7 +80,7 @@ cp -pr src %{buildroot}%{php_home}/Composer/Semver %check %if %{with_tests} ret=0 -for cmd in php php70 php71 php72 php73; do +for cmd in php php72 php73 php74; do if which $cmd; then $cmd %{_bindir}/phpunit \ --bootstrap %{buildroot}%{php_home}/Composer/Semver/autoload.php \ @@ -107,6 +104,9 @@ exit $ret %changelog +* Tue Jan 14 2020 Remi Collet <remi@remirepo.net> - 1.5.1-1 +- update to 1.5.1 + * Wed Mar 20 2019 Remi Collet <remi@remirepo.net> - 1.5.0-1 - update to 1.5.0 |