From 6be59e98f4c68a810c99803cefd5113465069234 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 7 Feb 2020 15:32:53 +0100 Subject: update to 2.0.0 raise dependency on PHP 7.3 rename to php-sebastian-type2 move to /usr/share/php/SebastianBergmann/Type2 --- php-sebastian-type2.spec | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) (limited to 'php-sebastian-type2.spec') diff --git a/php-sebastian-type2.spec b/php-sebastian-type2.spec index 51fd2bb..c21ddbd 100644 --- a/php-sebastian-type2.spec +++ b/php-sebastian-type2.spec @@ -1,6 +1,6 @@ -# remirepo/fedora spec file for php-sebastian-type +# remirepo/fedora spec file for php-sebastian-type2 # -# Copyright (c) 2019 Remi Collet +# Copyright (c) 2019-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # @@ -8,14 +8,14 @@ # %global bootstrap 0 # github -%global gh_commit 3aaaa15fa71d27650d62a948be022fe3b48541a3 +%global gh_commit 9e8f42f740afdea51f5f4e8cec2035580e797ee1 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner sebastianbergmann %global gh_project type # packagist %global pk_vendor sebastian %global pk_project %{gh_project} -%global major %nil +%global major 2 # namespace %global php_home %{_datadir}/php %global ns_vendor SebastianBergmann @@ -27,7 +27,7 @@ %endif Name: php-%{pk_vendor}-%{pk_project}%{major} -Version: 1.1.3 +Version: 2.0.0 Release: 1%{?dist} Summary: Collection of value objects that represent the types of the PHP type system @@ -36,21 +36,23 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz BuildArch: noarch -BuildRequires: php(language) >= 7.2 +BuildRequires: php(language) >= 7.3 BuildRequires: php-reflection # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.0 %if %{with_tests} # from composer.json, "require-dev": { -# "phpunit/phpunit": "^8.2" +# "phpunit/phpunit": "^9.0" # ignore min version, test suite passes with 8.1 BuildRequires: phpunit8 > 8.1 %endif # from composer.json, "require": { -# "php": "^7.2", -Requires: php(language) >= 7.2 -# from phpcompatinfo report for version 1.0.0: only core +# "php": "^7.3", +Requires: php(language) >= 7.3 +# from phpcompatinfo report for version 1.0.0 +Requires: php-reflection +Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) @@ -89,7 +91,7 @@ EOF : Run upstream test suite ret=0 -for cmd in php php72 php73 php74; do +for cmd in php php73 php74; do if which $cmd; then $cmd -d auto_prepend_file=%{buildroot}%{php_home}/%{ns_vendor}/%{ns_project}%{major}/autoload.php \ %{_bindir}/phpunit8 --verbose || ret=1 @@ -112,6 +114,12 @@ exit $ret %changelog +* Fri Feb 7 2020 Remi Collet - 2.0.0-1 +- update to 2.0.0 +- raise dependency on PHP 7.3 +- rename to php-sebastian-type2 +- move to /usr/share/php/SebastianBergmann/Type2 + * Tue Jul 2 2019 Remi Collet - 1.1.3-1 - update to 1.1.3 -- cgit