summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-03-03 07:19:59 +0100
committerRemi Collet <remi@remirepo.net>2021-03-03 07:19:59 +0100
commit47a7cbb741adfe15cdbd6ed5998c66b9a705eabe (patch)
treed56bfe32c8b163df6d0c3501a90d1207a7ab5cd4
parent48647fce6816db3ec78ed398e6c2ed5af311bc09 (diff)
update to 0.7.3
raise dependency on PHP 7.1 (7.3 for build) switch to phpunit9
-rw-r--r--composer.json7
-rw-r--r--php-icewind-streams.spec29
2 files changed, 22 insertions, 14 deletions
diff --git a/composer.json b/composer.json
index 78fecce..2a14815 100644
--- a/composer.json
+++ b/composer.json
@@ -9,11 +9,12 @@
}
],
"require": {
- "php": ">=5.6"
+ "php": ">=7.1"
},
"require-dev": {
- "php-coveralls/php-coveralls": "v2.1.0",
- "phpunit/phpunit": "^5.7"
+ "phpunit/phpunit": "^9",
+ "friendsofphp/php-cs-fixer": "^2",
+ "phpstan/phpstan": "^0.12"
},
"autoload": {
"psr-4": {
diff --git a/php-icewind-streams.spec b/php-icewind-streams.spec
index 8d0c34b..c12f335 100644
--- a/php-icewind-streams.spec
+++ b/php-icewind-streams.spec
@@ -1,13 +1,13 @@
# remirepo/fedora spec file for php-icewind-streams
#
-# Copyright (c) 2015-2020 Remi Collet
+# Copyright (c) 2015-2021 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
# Github information
-%global gh_commit 77d750ccc654c0eda4a41fedb2dbd71053755790
+%global gh_commit 22ef9fc5b50d645dbc202206a656cc4dde28f95c
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner icewind1991
%global gh_project Streams
@@ -19,7 +19,7 @@
%global ns_name Streams
Name: php-%{pk_vendor}-%{pk_name}
-Version: 0.7.2
+Version: 0.7.3
Release: 1%{?dist}
Summary: A set of generic stream wrappers
@@ -29,18 +29,20 @@ Source0: %{url}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.g
BuildArch: noarch
# For tests
-BuildRequires: php(language) >= 5.6
+# because of PHPUnit 9
+BuildRequires: php(language) >= 7.3
# From composer.json, "require-dev": {
-# "satooshi/php-coveralls": "v2.1.0",
-# "phpunit/phpunit": "^5.7"
-BuildRequires: php-composer(phpunit/phpunit) >= 5.7
+# "phpunit/phpunit": "^9",
+# "friendsofphp/php-cs-fixer": "^2",
+# "phpstan/phpstan": "^0.12"
+BuildRequires: phpunit9
BuildRequires: php-composer(theseer/autoload)
# Autoloader
BuildRequires: php-fedora-autoloader-devel
# From composer.json, "require": {
-# "php": ">=5.3"
-Requires: php(language) >= 5.6
+# "php": ">=7.1"
+Requires: php(language) >= 7.1
# From phpcompatinfo report for version 0.7.2
Requires: php-hash
Requires: php-spl
@@ -80,9 +82,9 @@ echo "require '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_name}/autoload.php'
: Run the test suite
ret=0
-for cmd in php php56 php70 php71 php72 php73 php74; do
+for cmd in php php73 php74 php80; do
if which $cmd; then
- $cmd %{_bindir}/phpunit || ret=1
+ $cmd %{_bindir}/phpunit9 || ret=1
fi
done
exit $ret
@@ -98,6 +100,11 @@ exit $ret
%changelog
+* Wed Mar 3 2021 Remi Collet <remi@remirepo.net> - 0.7.3-1
+- update to 0.7.3
+- raise dependency on PHP 7.1 (7.3 for build)
+- switch to phpunit9
+
* Thu Apr 9 2020 Remi Collet <remi@remirepo.net> - 0.7.2-1
- update to 0.7.2
- raise dependency on PHP 5.6