From 657c6c1b7c9d1ad72a4d427e9dbde701522ba69f Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 13 Feb 2025 08:26:20 +0100 Subject: update to 6.0.1 raise dependency on PHP 7.4 rename to php-sabre-event6 install in /usr/share/php/Sabre/Event6 --- composer.json | 16 ++++++++++++---- php-sabre-event6.spec | 40 ++++++++++++++++++++++++---------------- 2 files changed, 36 insertions(+), 20 deletions(-) diff --git a/composer.json b/composer.json index 0d3ec06..3c2e92b 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "homepage": "http://sabre.io/event/", "license": "BSD-3-Clause", "require": { - "php": "^7.1 || ^8.0" + "php": "^7.4 || ^8.0" }, "authors": [ { @@ -46,9 +46,12 @@ } }, "require-dev": { - "friendsofphp/php-cs-fixer": "~2.17.1||^3.63", - "phpstan/phpstan": "^0.12", - "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6" + "friendsofphp/php-cs-fixer": "^3.64", + "phpstan/phpstan": "^1.12", + "phpstan/phpstan-phpunit": "^1.4", + "phpstan/phpstan-strict-rules": "^1.6", + "phpstan/extension-installer": "^1.4", + "phpunit/phpunit" : "^9.6" }, "scripts": { "phpstan": [ @@ -65,5 +68,10 @@ "composer cs-fixer", "composer phpunit" ] + }, + "config": { + "allow-plugins": { + "phpstan/extension-installer": true + } } } diff --git a/php-sabre-event6.spec b/php-sabre-event6.spec index f767c29..d074062 100644 --- a/php-sabre-event6.spec +++ b/php-sabre-event6.spec @@ -1,8 +1,8 @@ -# remirepo/fedora spec file for php-sabre-event5 +# remirepo/fedora spec file for php-sabre-event6 # -# Copyright (c) 2013-2024 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2013-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # @@ -10,7 +10,7 @@ %bcond_without tests # Github -%global gh_commit 86d57e305c272898ba3c28e9bd3d65d5464587c2 +%global gh_commit 70525d519b6fbd8e2cbef4e0dbe69c9d4a3e2db7 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sabre-io %global gh_project event @@ -21,11 +21,11 @@ %global ns_vendor Sabre %global ns_project Event # For RPM -%global major 5 +%global major 6 Name: php-%{pk_vendor}-%{pk_project}%{major} Summary: Lightweight library for event-based programming -Version: 5.1.7 +Version: 6.0.1 Release: 1%{?dist} URL: http://sabre.io/event @@ -35,12 +35,14 @@ Source1: makesrc.sh BuildArch: noarch %if %{with tests} -BuildRequires: php(language) >= 7.1 -BuildRequires: php-spl +BuildRequires: php(language) >= 7.4 # From composer.json, "require-dev": { -# "friendsofphp/php-cs-fixer": "~2.17.1", -# "phpstan/phpstan": "^0.12||^3.63", -# "phpunit/phpunit" : "^7.5 || ^8.5 || ^9.6" +# "friendsofphp/php-cs-fixer": "^3.64", +# "phpstan/phpstan": "^1.12", +# "phpstan/phpstan-phpunit": "^1.4", +# "phpstan/phpstan-strict-rules": "^1.6", +# "phpstan/extension-installer": "^1.4", +# "phpunit/phpunit" : "^9.6" BuildRequires: phpunit9 >= 9.6 %global phpunit %{_bindir}/phpunit9 # Autoloader @@ -48,10 +50,10 @@ BuildRequires: php-composer(fedora/autoloader) %endif # From composer.json, "require": { -# "php": "^7.1 || ^8.0" -Requires: php(language) >= 7.1 -# From phpcompatinfo report for version 5.0.2 -Requires: php-spl +# "php": "^7.4 || ^8.0" +Requires: php(language) >= 7.4 +# From phpcompatinfo report for version 6.0.1 +# Only spl # Autoloader Requires: php-composer(fedora/autoloader) @@ -132,6 +134,12 @@ exit $ret %changelog +* Thu Feb 13 2025 Remi Collet - 6.0.1-1 +- update to 6.0.1 +- raise dependency on PHP 7.4 +- rename to php-sabre-event6 +- install in /usr/share/php/Sabre/Event6 + * Wed Aug 28 2024 Remi Collet - 5.1.7-1 - update to 5.1.7 (no change, CS only) -- cgit