From c3a9ff63963732ee3cf4c20342144283d2b07650 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 21 Dec 2020 10:31:32 +0100 Subject: update to 1.14.1 switch to classmap autoloader --- composer.json | 17 +++++++++-------- php-tecnickcom-tc-lib-color.spec | 27 ++++++++++++++++----------- 2 files changed, 25 insertions(+), 19 deletions(-) diff --git a/composer.json b/composer.json index 233b32c..21cc680 100644 --- a/composer.json +++ b/composer.json @@ -30,18 +30,19 @@ "ext-pcre": "*" }, "require-dev": { - "apigen/apigen": "^2.8.1 || ^4.1.2", - "bartlett/php-compatinfo": "^4.5.2 || ^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\\Color\\": "src" } + }, + "autoload-dev": { + "psr-4": { "Test\\": "test" } } } diff --git a/php-tecnickcom-tc-lib-color.spec b/php-tecnickcom-tc-lib-color.spec index 1407f78..ac78fa5 100644 --- a/php-tecnickcom-tc-lib-color.spec +++ b/php-tecnickcom-tc-lib-color.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 2f4860cbac4d58c210b6bec4c5806906278962c1 +%global gh_commit 00c6c6e95df12448ecd758b64a70f2b2b2fe2367 %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.12.15 +Version: 1.14.1 Release: 1%{?dist} Summary: PHP library to manipulate various color representations @@ -26,15 +26,16 @@ 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 %else -%global phpunit %{_bindir}/phpunit +%global phpunit %{_bindir}/phpunit8 %endif BuildRequires: %{phpunit} BuildRequires: php(language) >= 5.3 -Requires: php-pcre +BuildRequires: php-pcre %endif +BuildRequires: php-fedora-autoloader-devel # From composer.json, "require": { # "php": ">=5.3", @@ -43,6 +44,7 @@ Requires: php(language) >= 5.3 Requires: php-pcre # From phpcompatinfo report for version 1.12.4 # none +Requires: php-composer(fedora/autoloader) # Composer Provides: php-composer(%{c_vendor}/%{gh_project}) = %{version} @@ -70,14 +72,12 @@ sed -e 's:^require:////require:' \ %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 @@ -86,13 +86,14 @@ mkdir vendor cat < - 1.14.1-1 +- update to 1.14.1 +- switch to classmap autoloader + * Fri Jan 3 2020 Remi Collet - 1.12.15-1 - update to 1.12.15 (no change) -- cgit