From fc25759cd01d7d640500884a4def2fa77fcf4bae Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Dec 2020 10:56:28 +0100 Subject: update to 1.7.2 switch to classmap autoloader --- composer.json | 17 +++++++++-------- php-tecnickcom-tc-lib-file.spec | 30 ++++++++++++++++++------------ 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/composer.json b/composer.json index 506825a..2ed0174 100644 --- a/composer.json +++ b/composer.json @@ -27,18 +27,19 @@ "ext-pcre": "*" }, "require-dev": { - "apigen/apigen": "^4.1.2", - "bartlett/php-compatinfo": "^5.0.10 || ^5.0.12", - "pdepend/pdepend": "^2.5.2", - "phploc/phploc": "^2.1 || ^3.0 || ^4.0", - "phpmd/phpmd": "^2.6.0", - "phpunit/phpunit": "^4.8 || ^5.7 || ^6.5 || ^7.1", - "sebastian/phpcpd": "^2.0 || ^3.0 || ^4.0", - "squizlabs/php_codesniffer": "^2.8.0 || ^3.2.0" + "pdepend/pdepend": "2.8.0", + "phploc/phploc": "7.0.2 || 6.0.2 || 5.0.0 || 4.0.1 || 3.0.1 || 2.1.5", + "phpmd/phpmd": "2.9.1", + "phpunit/phpunit": "9.5.0 || 8.5.13 || 7.5.20 || 6.5.14 || 5.7.27 || 4.8.36", + "sebastian/phpcpd": "6.0.3 || 5.0.2 || 4.1.0 || 3.0.1 || 2.0.4", + "squizlabs/php_codesniffer": "3.5.8 || 2.9.2" }, "autoload": { "psr-4": { "Com\\Tecnick\\File\\": "src" } + }, + "autoload-dev": { + "psr-4": { "Test\\": "test" } } } diff --git a/php-tecnickcom-tc-lib-file.spec b/php-tecnickcom-tc-lib-file.spec index 2d00912..644e261 100644 --- a/php-tecnickcom-tc-lib-file.spec +++ b/php-tecnickcom-tc-lib-file.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 4ea05098b69ef7f6098eeab9162ffa8fb033e4f3 +%global gh_commit 8da98e04e0962cb0ac3146e56a2a0ea3caa22288 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global c_vendor tecnickcom %global gh_owner tecnickcom @@ -15,7 +15,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-%{gh_owner}-%{gh_project} -Version: 1.6.14 +Version: 1.7.2 Release: 1%{?dist} Summary: PHP library to read byte-level data from files @@ -26,16 +26,18 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit BuildArch: noarch %if %{with_tests} # For tests -%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8 -%global phpunit %{_bindir}/phpunit7 +%if 0%{?fedora} >= 32 || 0%{?rhel} >= 9 +%global phpunit %{_bindir}/phpunit9 +BuildRequires: phpunit9 >= 9.5.0 %else -%global phpunit %{_bindir}/phpunit +%global phpunit %{_bindir}/phpunit8 +BuildRequires: phpunit8 >= 8.5.13 %endif -BuildRequires: %{phpunit} BuildRequires: php(language) >= 5.4 BuildRequires: php-curl BuildRequires: php-pcre %endif +BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { # "php": ">=5.4", @@ -46,6 +48,7 @@ Requires: php-curl Requires: php-pcre # From phpcompatinfo report for version 1.6.4 # none +Requires: php-composer(fedora/autoloader) # Composer Provides: php-composer(%{c_vendor}/%{gh_project}) = %{version} @@ -67,31 +70,30 @@ grep -q '^%{version}$' VERSION %build -# Empty build section, most likely nothing required. +phpab --template fedora --output src/autoload.php src %install mkdir -p $(dirname %{buildroot}%{php_project}) cp -pr src %{buildroot}%{php_project} -cp -p resources/autoload.php \ - %{buildroot}%{php_project}/autoload.php %check %if %{with_tests} mkdir vendor -cat < - 1.7.2-1 +- update to 1.7.2 +- switch to classmap autoloader + * Fri Jan 3 2020 Remi Collet - 1.6.14-1 - update to 1.6.14 (no change) -- cgit