From d25c79838a2a97debcdba1bd99036cc60b8ace5d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 28 Aug 2020 09:58:44 +0200 Subject: [PATCH] update to 1.1.3 raise dependency on PHP 7.2 add dependency on league/mime-type-detection switch to classmap autoloader switch to phpunit8 (cherry picked from commit ef2709604808386a11423333aa2d2fa40b6550bf) --- .gitignore | 1 + php-league-flysystem.spec | 71 +++++++++++++++++++-------------------- sources | 2 +- 3 files changed, 37 insertions(+), 37 deletions(-) diff --git a/.gitignore b/.gitignore index 69f9b43..63e863d 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ clog /php-league-flysystem-1.0.64-d13c43d.tgz /php-league-flysystem-1.0.65-8f17b3b.tgz /php-league-flysystem-1.0.66-0215691.tgz +/php-league-flysystem-1.1.3-9be3b16.tgz diff --git a/php-league-flysystem.spec b/php-league-flysystem.spec index 1465c19..347dced 100644 --- a/php-league-flysystem.spec +++ b/php-league-flysystem.spec @@ -1,13 +1,13 @@ # remirepo/fedora spec file for php-league-flysystem # -# Copyright (c) 2016-2019 Remi Collet +# Copyright (c) 2016-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # # Github -%global gh_commit 021569195e15f8209b1c4bebb78bd66aa4f08c21 +%global gh_commit 9be3b16c877d477357c015cec057548cf9b2a14a %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner thephpleague %global gh_project flysystem @@ -19,7 +19,7 @@ %global ns_project Flysystem Name: php-%{pk_vendor}-%{pk_name} -Version: 1.0.66 +Version: 1.1.3 Release: 1%{?dist} Summary: Filesystem abstraction: Many filesystems, one API @@ -30,29 +30,30 @@ Source0: %{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh BuildArch: noarch -# As we use phpunit 6 and phpspec 5 BuildRequires: php(language) >= 7.2 -BuildRequires: php-date BuildRequires: php-fileinfo +BuildRequires: (php-composer(league/mime-type-detection) >= 1.3 with php-composer(league/mime-type-detection) < 2) +BuildRequires: php-date BuildRequires: php-ftp BuildRequires: php-hash BuildRequires: php-mbstring BuildRequires: php-pcre BuildRequires: php-spl # From composer.json, "require-dev": { -# "phpspec/phpspec": "^3.4", -# "phpunit/phpunit": "^5.7.26" -BuildRequires: php-composer(phpspec/phpspec) >= 3.4 -BuildRequires: phpunit6 +# "phpspec/prophecy": "^1.11.1", +# "phpunit/phpunit": "^8.5.8" +BuildRequires: phpunit8 >= 8.5.8 # Autoloader -BuildRequires: php-composer(fedora/autoloader) +BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { -# "php": ">=5.5.9", -# "ext-fileinfo": "*" -Requires: php(language) >= 5.5.9 +# "php": "^7.2.5 || ^8.0", +# "ext-fileinfo": "*", +# "league/mime-type-detection": "^1.3" +Requires: php(language) >= 7.2.5 Requires: php-fileinfo -# From phpcompatifo report for 1.0.49 +Requires: (php-composer(league/mime-type-detection) >= 1.3 with php-composer(league/mime-type-detection) < 2) +# From phpcompatifo report for 1.1.3 Requires: php-date Requires: php-ftp Requires: php-hash @@ -77,15 +78,18 @@ Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php %build -: Create autoloader -cat <<'AUTOLOAD' | tee src/autoload.php ->phpspec.yml - -PHPSPECVER=$(%{_bindir}/phpspec --version | sed 's/.* //;s/\..*//') -if [ "$PHPSPECVER" -lt 3 ] -then PHPSPEC=/dev/null -else PHPSPEC=%{_bindir}/phpspec -fi - ret=0 -for cmd in php php72 php73 php74; do +for cmd in php php72 php73 php74 php80; do if which $cmd; then : Run upstream test suite - $cmd $PHPSPEC run || ret=1 - $cmd %{_bindir}/phpunit6 \ + $cmd %{_bindir}/phpunit8 \ --exclude-group integration \ --filter '^((?!(testPathinfoHandlesUtf8|testStreamSizeForUrl|testListingFromUnixFormat)).)*$' \ --no-coverage --verbose || ret=1 @@ -135,10 +127,17 @@ exit $ret %license LICENSE %doc *.md %doc composer.json -%{_datadir}/php/%{ns_vendor} +%{_datadir}/php/%{ns_vendor}/%{ns_project} %changelog +* Mon Aug 24 2020 Remi Collet - 1.1.3-1 +- update to 1.1.3 +- raise dependency on PHP 7.2 +- add dependency on league/mime-type-detection +- switch to classmap autoloader +- switch to phpunit8 + * Wed Mar 18 2020 Remi Collet - 1.0.66-1 - update to 1.0.66 diff --git a/sources b/sources index a3b1517..a006c86 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-league-flysystem-1.0.66-0215691.tgz) = 9c8335ffdfe1db788ec300d85863eec472140876eb5cb7bd0c74834f7bf77842cbb94bef9f15c13d2773adc773e30cad18612e6caa79494767e74718d97187ea +SHA512 (php-league-flysystem-1.1.3-9be3b16.tgz) = 3ea66c14b95593615b2e13f87e06bdebd439d739a997e61a4460e5eee30438455fc0f55a8139745d742b4bd977c20d1db8f5eb0ce76acd1d5d15f28db2e66b82