From 9b373cc08a6e4d8a7c402eb9a50668f1f36d1693 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 17 May 2021 16:23:13 +0200 Subject: update to 2.0.0 rename to php-doctrine-cache2 install in /usr/share/php/Doctrine/Common/Cache2 --- php-doctrine-cache2.spec | 68 +++++++++++++++++------------------------------- 1 file changed, 24 insertions(+), 44 deletions(-) (limited to 'php-doctrine-cache2.spec') diff --git a/php-doctrine-cache2.spec b/php-doctrine-cache2.spec index 130eba3..15e8e3d 100644 --- a/php-doctrine-cache2.spec +++ b/php-doctrine-cache2.spec @@ -1,8 +1,7 @@ -# remirepo spec file for php-doctrine-cache, from: -# -# Fedora spec file for php-doctrine-cache +# remirepo/fedora spec file for php-doctrine-cache2 # # Copyright (c) 2013-2021 Shawn Iwinski +# Remi Collet # # License: MIT # http://opensource.org/licenses/MIT @@ -12,8 +11,10 @@ %global github_owner doctrine %global github_name cache -%global github_version 1.11.0 -%global github_commit a9c1b59eba5a08ca2770a76eddb88922f504e8e0 +%global github_version 2.0.0 +%global github_commit 64d8b1dedd6ae7bb6b4c3094a44c585ec04e86b2 +%global github_short %(c=%{github_commit}; echo ${c:0:7}) +%global major 2 %global composer_vendor doctrine %global composer_project cache @@ -37,18 +38,18 @@ %{!?phpdir: %global phpdir %{_datadir}/php} -Name: php-%{composer_vendor}-%{composer_project} +Name: php-%{composer_vendor}-%{composer_project}%{major} Version: %{github_version} Release: 1%{?dist} -Summary: Doctrine Cache +Summary: Doctrine Cache version %{major} License: MIT 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 -Source9: %{name}-get-source.sh +# Run makesrc.sh to create full source. +Source0: %{name}-%{version}-%{github_short}.tgz +Source9: makesrc.sh BuildArch: noarch # Tests @@ -56,13 +57,8 @@ BuildArch: noarch ## composer.json BuildRequires: php(language) >= %{php_min_ver} BuildRequires: phpunit9 -## phpcompatinfo (computed from version 1.7.1) +## phpcompatinfo (computed from version 2.0.0) BuildRequires: php-date -BuildRequires: php-hash -BuildRequires: php-pecl(igbinary) -BuildRequires: php-reflection -BuildRequires: php-spl -BuildRequires: php-sqlite3 ## Autoloader BuildRequires: php-composer(fedora/autoloader) # remirepo:1 @@ -79,23 +75,15 @@ BuildRequires: php-composer(cache/integration-tests) >= %{cache_integration_test # composer.json Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from version 1.7.1) +# phpcompatinfo (computed from version 2.0.0) Requires: php-date -Requires: php-hash -Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) # Weak dependencies +# remirepo:1 %if 0%{?fedora} > 21 || 0%{?rhel} >= 8 Suggests: php-composer(alcaeus/mongo-php-adapter) -Suggests: php-composer(mongodb/mongodb) -Suggests: php-composer(predis/predis) -Suggests: php-pecl(apcu) -Suggests: php-pecl(igbinary) -Suggests: php-pecl(memcache) -Suggests: php-pecl(memcached) -Suggests: php-pecl(mongo) -Suggests: php-pecl(redis) +# remirepo:1 %endif # Composer @@ -144,7 +132,7 @@ AUTOLOAD %install mkdir -p %{buildroot}%{phpdir}/Doctrine/Common -cp -rp lib/Doctrine/Common/Cache %{buildroot}%{phpdir}/Doctrine/Common/ +cp -rp lib/Doctrine/Common/Cache %{buildroot}%{phpdir}/Doctrine/Common/Cache%{major} %check @@ -152,7 +140,7 @@ cp -rp lib/Doctrine/Common/Cache %{buildroot}%{phpdir}/Doctrine/Common/ : Create tests bootstrap cat <<'BOOTSTRAP' | tee bootstrap.php - 2.0.0-1 +- update to 2.0.0 +- rename to php-doctrine-cache2 +- install in /usr/share/php/Doctrine/Common/Cache2 + * Fri Apr 23 2021 Remi Collet - 1.11.0-1 - update to 1.11.0 - switch to phpunit9 -- cgit