From b343f413f3e4d90000f4dda5f5a66a8a477d9331 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 19 May 2021 10:29:36 +0200 Subject: update to 1.11.1 --- php-doctrine-cache.spec | 54 ++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 47 insertions(+), 7 deletions(-) (limited to 'php-doctrine-cache.spec') diff --git a/php-doctrine-cache.spec b/php-doctrine-cache.spec index c5dc150..0e0585b 100644 --- a/php-doctrine-cache.spec +++ b/php-doctrine-cache.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-doctrine-cache # -# Copyright (c) 2013-2018 Shawn Iwinski +# Copyright (c) 2013-2021 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,12 +12,23 @@ %global github_owner doctrine %global github_name cache -%global github_version 1.10.2 -%global github_commit 13e3381b25847283a91948d04640543941309727 +%global github_version 1.11.1 +%global github_commit 163074496dc7c3c7b8ccbf3d4376c0187424ed81 %global composer_vendor doctrine %global composer_project cache +# "cache/integration-tests": "dev-master", +%global cache_integration_tests_min_ver 0.17 + +# "symfony/cache": "^4.4 || ^5.2" +%global symfony_min_ver 4.4 +%global symfony_max_ver 5.2 + +# "psr/cache": "^1.0 || ^2.0" +%global psr_cache_min_ver 1.0 +%global psr_cache_max_ver 3.0 + # "php": "~7.1 || ^8.0" %global php_min_ver 7.1 @@ -37,14 +48,14 @@ URL: https://github.com/%{github_owner}/%{github_name} # GitHub export does not include tests. # Run php-doctrine-cache-get-source.sh to create full source. Source0: %{name}-%{version}-%{github_commit}.tar.gz -Source1: %{name}-get-source.sh +Source9: %{name}-get-source.sh BuildArch: noarch # Tests %if %{with tests} ## composer.json BuildRequires: php(language) >= %{php_min_ver} -BuildRequires: phpunit7 +BuildRequires: phpunit9 ## phpcompatinfo (computed from version 1.7.1) BuildRequires: php-date BuildRequires: php-hash @@ -54,6 +65,16 @@ BuildRequires: php-spl BuildRequires: php-sqlite3 ## Autoloader BuildRequires: php-composer(fedora/autoloader) +# remirepo:1 +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires:(php-composer(symfony/cache) >= %{symfony_min_ver} with php-composer(symfony/cache) < %{symfony_max_ver}) +BuildRequires:(php-composer(psr/cache) >= %{psr_cache_min_ver} with php-composer(psr/cache) < %{psr_cache_max_ver}) +# remirepo:4 +%else +BuildRequires: php-symfony4-cache >= %{symfony_min_ver} +BuildRequires: php-psr-cache >= %{psr_cache_min_ver} +%endif +BuildRequires: php-composer(cache/integration-tests) >= %{cache_integration_tests_min_ver} %endif # composer.json @@ -133,6 +154,16 @@ cat <<'BOOTSTRAP' | tee bootstrap.php - 1.11.1-1 +- update to 1.11.1 + +* Fri Apr 23 2021 Remi Collet - 1.11.0-1 +- update to 1.11.0 +- switch to phpunit9 +- add build dependency on psr/cache, symfony/cache and cache/integration-tests + * Wed Jul 8 2020 Remi Collet - 1.10.2-1 - update to 1.10.2 -- cgit