diff options
-rw-r--r-- | composer.json | 2 | ||||
-rw-r--r-- | php-sabre-event5.spec | 34 |
2 files changed, 25 insertions, 11 deletions
diff --git a/composer.json b/composer.json index 42fb4aa..3c31181 100644 --- a/composer.json +++ b/composer.json @@ -48,7 +48,7 @@ "require-dev": { "friendsofphp/php-cs-fixer": "~2.17.1", "phpstan/phpstan": "^0.12", - "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0" + "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6" }, "scripts": { "phpstan": [ diff --git a/php-sabre-event5.spec b/php-sabre-event5.spec index 794d287..2e910e3 100644 --- a/php-sabre-event5.spec +++ b/php-sabre-event5.spec @@ -1,7 +1,7 @@ # remirepo/fedora spec file for php-sabre-event5 # -# Copyright (c) 2013-2020 Remi Collet -# License: CC-BY-SA +# Copyright (c) 2013-2024 Remi Collet +# License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries @@ -10,7 +10,7 @@ %bcond_without tests # Github -%global gh_commit 6d86fd14779c58e956f0b2b0496cf3f7f06da177 +%global gh_commit e0e1ccbff1965083de9a6530182b8b70819e1347 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sabre-io %global gh_project event @@ -25,11 +25,11 @@ Name: php-%{pk_vendor}-%{pk_project}%{major} Summary: Lightweight library for event-based programming -Version: 5.1.3 +Version: 5.1.6 Release: 1%{?dist} URL: http://sabre.io/event -License: BSD +License: BSD-3-Clause Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh @@ -40,8 +40,8 @@ BuildRequires: php-spl # From composer.json, "require-dev": { # "friendsofphp/php-cs-fixer": "~2.17.1", # "phpstan/phpstan": "^0.12", -# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0" -BuildRequires: phpunit9 +# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6" +BuildRequires: phpunit9 >= 9.6 %global phpunit %{_bindir}/phpunit9 # Autoloader BuildRequires: php-composer(fedora/autoloader) @@ -98,10 +98,17 @@ cp -pr lib %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major} %check +: Check version +php -r ' +require "%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}%{major}/autoload.php"; +echo Sabre\Event\Version::VERSION . "\n"; +exit (Sabre\Event\Version::VERSION === "%{version}" ? 0 : 1); +' + %if %{with tests} : Run upstream test suite against installed library ret=0 -for cmdarg in "php %{phpunit}" php73 php74 php80 php81; do +for cmdarg in "php %{phpunit}" php81 php82 php83 php84; do if which $cmdarg; then set $cmdarg $1 ${2:-%{_bindir}/phpunit9} \ @@ -117,8 +124,6 @@ exit $ret %files -# remirepo:1 -%{!?_licensedir:%global license %%doc} %license LICENSE %doc *md %doc composer.json @@ -127,6 +132,15 @@ exit $ret %changelog +* Fri Jul 26 2024 Remi Collet <remi@remirepo.net> - 5.1.6-1 +- update to 5.1.6 + +* Thu Jul 25 2024 Remi Collet <remi@remirepo.net> - 5.1.5-1 +- update to 5.1.5 + +* Thu Nov 4 2021 Remi Collet <remi@remirepo.net> - 5.1.4-1 +- update to 5.1.4 + * Thu Nov 4 2021 Remi Collet <remi@remirepo.net> - 5.1.3-1 - update to 5.1.3 |