summaryrefslogtreecommitdiffstats
path: root/php-zendframework-zend-session.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-zendframework-zend-session.spec')
-rw-r--r--php-zendframework-zend-session.spec36
1 files changed, 29 insertions, 7 deletions
diff --git a/php-zendframework-zend-session.spec b/php-zendframework-zend-session.spec
index 1dabce5..07d8583 100644
--- a/php-zendframework-zend-session.spec
+++ b/php-zendframework-zend-session.spec
@@ -24,7 +24,6 @@ Version: 2.8.5
Release: 1%{?dist}
Summary: Zend Framework %{library} component
-Group: Development/Libraries
License: BSD
URL: https://zendframework.github.io/%{gh_project}/
Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz
@@ -52,19 +51,33 @@ BuildRequires: php-autoloader(%{gh_owner}/zend-stdlib) >= 2.5
# "zendframework/zend-http": "^2.5.4",
# "zendframework/zend-servicemanager": "^2.7.5 || ^3.0.3",
# "zendframework/zend-validator": "^2.6"
+# remirepo:1
+%if 0%{fedora} >= 27
BuildRequires: (php-composer(container-interop/container-interop) >= 1.1 with php-composer(container-interop/container-interop) < 2)
-# v2 doesn't exist yet in repository
-# TODO only PHPUnit 5 as php-mock v2 required by PHPUnit 6
-BuildRequires: (php-composer(php-mock/php-mock-phpunit) >= 1.1.2 with php-composer(php-mock/php-mock-phpunit) < 2)
-BuildRequires: php-composer(phpunit/phpunit) >= 5.7.15
BuildRequires: (php-autoloader(%{gh_owner}/zend-cache) >= 2.6.1 with php-autoloader(%{gh_owner}/zend-cache) < 3)
BuildRequires: (php-autoloader(%{gh_owner}/zend-db) >= 2.7 with php-autoloader(%{gh_owner}/zend-db) < 3)
BuildRequires: (php-autoloader(%{gh_owner}/zend-http) >= 2.5.4 with php-autoloader(%{gh_owner}/zend-http) < 3)
BuildRequires: (php-autoloader(%{gh_owner}/zend-servicemanager) >= 2.7.5 with php-autoloader(%{gh_owner}/zend-servicemanager) < 4)
BuildRequires: (php-autoloader(%{gh_owner}/zend-validator) >= 2.6 with php-autoloader(%{gh_owner}/zend-validator) < 3)
+# v2 doesn't exist yet in repository
+# TODO only PHPUnit 5 as php-mock v2 required by PHPUnit 6
+BuildRequires: (php-composer(php-mock/php-mock-phpunit) >= 1.1.2 with php-composer(php-mock/php-mock-phpunit) < 2)
+# remirepo:11
+%else
+BuildRequires: php-composer(container-interop/container-interop) < 2
+BuildRequires: php-composer(container-interop/container-interop) >= 1.1
+BuildRequires: php-autoloader(%{gh_owner}/zend-cache) >= 2.6.1
+BuildRequires: php-autoloader(%{gh_owner}/zend-db) >= 2.7
+BuildRequires: php-autoloader(%{gh_owner}/zend-http) >= 2.5.4
+BuildRequires: php-autoloader(%{gh_owner}/zend-servicemanager) >= 2.7.5
+BuildRequires: php-autoloader(%{gh_owner}/zend-validator) >= 2.6
+BuildRequires: php-composer(php-mock/php-mock-phpunit) < 2
+BuildRequires: php-composer(php-mock/php-mock-phpunit) >= 1.1.2
+%endif
+BuildRequires: php-phpunit-PHPUnit >= 5.7.15
%endif
# Autoloader
-BuildRequires: php-fedora-autoloader-devel
+BuildRequires: php-fedora-autoloader-devel
# From composer, "require": {
# "php": "^5.6 || ^7.0",
@@ -72,8 +85,17 @@ BuildRequires: php-fedora-autoloader-devel
# "zendframework/zend-stdlib": "^2.7 || ^3.0"
Requires: php(language) >= 5.6
%if ! %{bootstrap}
+# remirepo:1
+%if 0%{fedora} >= 27
Requires: (php-autoloader(%{gh_owner}/zend-eventmanager) >= 2.6.2 with php-autoloader(%{gh_owner}/zend-eventmanager) < 4)
Requires: (php-autoloader(%{gh_owner}/zend-stdlib) >= 2.7 with php-autoloader(%{gh_owner}/zend-stdlib) < 4)
+# remirepo:6
+%else
+Requires: php-autoloader(%{gh_owner}/zend-eventmanager) < 4
+Requires: php-autoloader(%{gh_owner}/zend-eventmanager) >= 2.6.2
+Requires: php-autoloader(%{gh_owner}/zend-stdlib) < 4
+Requires: php-autoloader(%{gh_owner}/zend-stdlib) >= 2.7
+%endif
# From composer, "suggest": {
# "mongodb/mongodb": "If you want to use the MongoDB session save handler"
# "zendframework/zend-cache": "Zend\\Cache component",
@@ -181,7 +203,7 @@ exit $ret
%changelog
* Fri Feb 23 2018 Remi Collet <remi@remirepo.net> - 2.8.5-1
- Update to 2.8.5 (no change)
-- use range dependencies
+- use range dependencies on F27+
* Thu Feb 1 2018 Remi Collet <remi@remirepo.net> - 2.8.4-1
- Update to 2.8.4