diff options
Diffstat (limited to 'php-fig-link-util.spec')
-rw-r--r-- | php-fig-link-util.spec | 20 |
1 files changed, 17 insertions, 3 deletions
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 <shawn@iwin.ski> +# Copyright (c) 2017-2020 Shawn Iwinski <shawn@iwin.ski> # # 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 <remi@remirepo.net> - 1.1.0-1 +- update to 1.1.0 +- add virtual provides psr/link-implementation +- use range dependencies + * Sun Jun 11 2017 Shawn Iwinski <shawn@iwin.ski> - 1.0.0-1 - Initial package |