summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zend-expressive-helpers.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-09-05 09:39:18 +0200
committerRemi Collet <remi@remirepo.net>2018-09-05 09:39:18 +0200
commit5b306149ce5eefad74f5956a97d101fbd97bd6ab (patch)
treeb55ed40d59f8209f7850f04d49de1b54d2cece7e /php-zendframework-zend-expressive-helpers.spec
parent49011b9725aab44b0e00249528f03401b22ec4b0 (diff)
use range dependenciesHEADmaster
Diffstat (limited to 'php-zendframework-zend-expressive-helpers.spec')
-rw-r--r--php-zendframework-zend-expressive-helpers.spec53
1 files changed, 39 insertions, 14 deletions
diff --git a/php-zendframework-zend-expressive-helpers.spec b/php-zendframework-zend-expressive-helpers.spec
index 3b3a057..1f173c2 100644
--- a/php-zendframework-zend-expressive-helpers.spec
+++ b/php-zendframework-zend-expressive-helpers.spec
@@ -1,6 +1,6 @@
# remirepo/Fedora spec file for php-zendframework-zend-expressive-helpers
#
-# Copyright (c) 2016-2017 Remi Collet
+# Copyright (c) 2016-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -22,7 +22,7 @@
Name: php-%{gh_owner}-%{gh_project}
Version: 3.0.1
-Release: 3%{?dist}
+Release: 6%{?dist}
Summary: Helper/Utility classes for Expressive
Group: Development/Libraries
@@ -35,22 +35,36 @@ BuildArch: noarch
# Tests
%if %{with_tests}
BuildRequires: php(language) >= 5.6
-BuildRequires: php-composer(psr/http-message) >= 1.0
BuildRequires: php-json
BuildRequires: php-pcre
BuildRequires: php-spl
-BuildRequires: php-composer(container-interop/container-interop) >= 1.1
-BuildRequires: php-composer(psr/http-message) >= 1.0
-BuildRequires: php-autoloader(%{gh_owner}/zend-expressive-router) >= 2.0
+# remirepo:1
+%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+BuildRequires: (php-composer(container-interop/container-interop) >= 1.1 with php-composer(container-interop/container-interop) < 2)
+BuildRequires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2)
+BuildRequires: (php-autoloader(%{gh_owner}/zend-expressive-router) >= 2.0 with php-autoloader(%{gh_owner}/zend-expressive-router) < 3)
# From composer, "require-dev": {
# "phpunit/phpunit": "^4.7",
# "zendframework/zend-diactoros": "^1.2",
# "mockery/mockery": "^0.9.5",
# "zendframework/zend-coding-standard": "~1.0.0",
# "malukenho/docheader": "^0.1.5"
-BuildRequires: php-composer(phpunit/phpunit) >= 4.7
-BuildRequires: php-autoloader(%{gh_owner}/zend-diactoros) >= 1.2
-BuildRequires: php-composer(mockery/mockery) >= 0.9.5
+BuildRequires: (php-autoloader(%{gh_owner}/zend-diactoros) >= 1.2 with php-autoloader(%{gh_owner}/zend-diactoros) < 2)
+BuildRequires: (php-composer(mockery/mockery) >= 0.9.5 with php-composer(mockery/mockery) < 1)
+# remirepo:12
+%else
+BuildRequires: php-composer(container-interop/container-interop) < 2
+BuildRequires: php-composer(container-interop/container-interop) >= 1.1
+BuildRequires: php-composer(psr/http-message) < 2
+BuildRequires: php-composer(psr/http-message) >= 1.0
+BuildRequires: php-autoloader(%{gh_owner}/zend-expressive-router) < 3
+BuildRequires: php-autoloader(%{gh_owner}/zend-expressive-router) >= 2.0
+BuildRequires: php-autoloader(%{gh_owner}/zend-diactoros) < 2
+BuildRequires: php-autoloader(%{gh_owner}/zend-diactoros) >= 1.2
+BuildRequires: php-composer(mockery/mockery) < 1
+BuildRequires: php-composer(mockery/mockery) >= 0.9.5
+%endif
+BuildRequires: php-composer(phpunit/phpunit) >= 4.7
%endif
# Autoloader
BuildRequires: php-fedora-autoloader-devel
@@ -61,12 +75,20 @@ BuildRequires: php-fedora-autoloader-devel
# "psr/http-message": "^1.0",
# "zendframework/zend-expressive-router": "^2.0"
Requires: php(language) >= 5.5
-Requires: php-composer(container-interop/container-interop) >= 1.1
-Requires: php-composer(container-interop/container-interop) < 2
-Requires: php-composer(psr/http-message) >= 1.0
-Requires: php-composer(psr/http-message) < 2
-Requires: php-autoloader(%{gh_owner}/zend-expressive-router) >= 2.0
+# remirepo:1
+%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
+Requires: (php-composer(container-interop/container-interop) >= 1.1 with php-composer(container-interop/container-interop) < 2)
+Requires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2)
+Requires: (php-autoloader(%{gh_owner}/zend-expressive-router) >= 2.0 with php-autoloader(%{gh_owner}/zend-expressive-router) < 3)
+# remirepo:8
+%else
+Requires: php-composer(container-interop/container-interop) < 2
+Requires: php-composer(container-interop/container-interop) >= 1.1
+Requires: php-composer(psr/http-message) < 2
+Requires: php-composer(psr/http-message) >= 1.0
Requires: php-autoloader(%{gh_owner}/zend-expressive-router) < 3
+Requires: php-autoloader(%{gh_owner}/zend-expressive-router) >= 2.0
+%endif
# Autoloader
Requires: php-composer(fedora/autoloader)
# From phpcompatinfo report for version 1.4.0
@@ -155,6 +177,9 @@ exit $ret
%changelog
+* Wed Sep 5 2018 Remi Collet <remi@remirepo.net> - 3.0.1-6
+- use range dependencies
+
* Mon Dec 11 2017 Remi Collet <remi@remirepo.net> - 3.0.1-3
- switch from zend-loader to fedora/autoloader