From 8fd2913190a1f2ca98e532edf87e9beb5ee3967e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 19 Mar 2020 13:57:53 +0100 Subject: update to 1.1.0 add virtual provides psr/link-implementation use range dependencies --- composer.json | 3 +++ makesrc.sh | 1 + php-fig-link-util.spec | 20 +++++++++++++++++--- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 120000 makesrc.sh diff --git a/composer.json b/composer.json index 2518f1d..47bcde3 100644 --- a/composer.json +++ b/composer.json @@ -17,6 +17,9 @@ "phpunit/phpunit": "^5.1", "squizlabs/php_codesniffer": "^2.3.1" }, + "provide": { + "psr/link-implementation": "1.0" + }, "autoload": { "psr-4": { "Fig\\Link\\": "src/" diff --git a/makesrc.sh b/makesrc.sh new file mode 120000 index 0000000..0bf7b10 --- /dev/null +++ b/makesrc.sh @@ -0,0 +1 @@ +php-fig-link-util-get-source.sh \ No newline at end of file diff --git a/php-fig-link-util.spec b/php-fig-link-util.spec index faef65f..7e419c5 100644 --- a/php-fig-link-util.spec +++ b/php-fig-link-util.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-fig-link-util # -# Copyright (c) 2017 Shawn Iwinski +# Copyright (c) 2017-2020 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,8 +12,8 @@ %global github_owner php-fig %global github_name link-util -%global github_version 1.0.0 -%global github_commit 1a07821801a148be4add11ab0603e4af55a72fac +%global github_version 1.1.0 +%global github_commit 47f55860678a9e202206047bc02767556d298106 %global composer_vendor fig %global composer_project link-util @@ -49,8 +49,12 @@ BuildArch: noarch ## composer.json BuildRequires: php(language) >= %{php_min_ver} BuildRequires: php-composer(phpunit/phpunit) +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +BuildRequires:(php-composer(psr/link) >= %{psr_link_min_ver} with php-composer(psr/link) < %{psr_link_max_ver}) +%else BuildRequires: php-composer(psr/link) < %{psr_link_max_ver} BuildRequires: php-composer(psr/link) >= %{psr_link_min_ver} +%endif ## phpcompatinfo (computed from version 1.0.0) BuildRequires: php-spl ## Autoloader @@ -59,8 +63,12 @@ BuildRequires: php-composer(fedora/autoloader) # composer.json Requires: php(language) >= %{php_min_ver} +%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 +Requires: (php-composer(psr/link) >= %{psr_link_min_ver} with php-composer(psr/link) < %{psr_link_max_ver}) +%else Requires: php-composer(psr/link) < %{psr_link_max_ver} Requires: php-composer(psr/link) >= %{psr_link_min_ver} +%endif # phpcompatinfo (computed from version 1.0.0) Requires: php-spl # Autoloader @@ -68,6 +76,7 @@ Requires: php-composer(fedora/autoloader) # Composer Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} +Provides: php-composer(psr/link-implementation) = 1.0 %description This package includes common utilities to assist with implementing @@ -135,5 +144,10 @@ exit $RETURN_CODE %changelog +* Thu Mar 19 2020 Remi Collet - 1.1.0-1 +- update to 1.1.0 +- add virtual provides psr/link-implementation +- use range dependencies + * Sun Jun 11 2017 Shawn Iwinski - 1.0.0-1 - Initial package -- cgit