summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-sebastian-object-enumerator3.spec30
1 files changed, 19 insertions, 11 deletions
diff --git a/php-sebastian-object-enumerator3.spec b/php-sebastian-object-enumerator3.spec
index e9047f6..b5d029e 100644
--- a/php-sebastian-object-enumerator3.spec
+++ b/php-sebastian-object-enumerator3.spec
@@ -1,6 +1,6 @@
# remirepo/fedora spec file for php-sebastian-object-enumerator3
#
-# Copyright (c) 2015-2017 Remi Collet
+# Copyright (c) 2015-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -26,11 +26,10 @@
Name: php-%{pk_vendor}-%{pk_project}%{major}
Version: 3.0.3
-%global specrel 1
+%global specrel 2
Release: %{?gh_date:1%{specrel}.%{?prever}%{!?prever:%{gh_date}git%{gh_short}}}%{!?gh_date:%{specrel}}%{?dist}
Summary: Traverses array and object to enumerate all referenced objects
-Group: Development/Libraries
License: BSD
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
@@ -39,10 +38,13 @@ BuildArch: noarch
BuildRequires: php(language) >= 7.0
BuildRequires: php-fedora-autoloader-devel
%if %{with_tests}
-BuildRequires: php-composer(%{pk_vendor}/object-reflector) < 2
-BuildRequires: php-composer(%{pk_vendor}/object-reflector) >= 1.1.1
-BuildRequires: php-composer(%{pk_vendor}/recursion-context) < 4
-BuildRequires: php-composer(%{pk_vendor}/recursion-context) >= 3.0
+%if 0%{?fedora} >= 27
+BuildRequires: (php-composer(%{pk_vendor}/object-reflector) >= 1.1.1 with php-composer(%{pk_vendor}/object-reflector) < 2)
+BuildRequires: (php-composer(sebastian/recursion-context) >= 3.0 with php-composer(sebastian/recursion-context) < 4)
+%else
+BuildRequires: php-sebastian-object-reflector
+BuildRequires: php-sebastian-recursion-context3
+%endif
# From composer.json"require-dev": {
# "phpunit/phpunit": "^6.0"
BuildRequires: phpunit6
@@ -53,10 +55,13 @@ BuildRequires: phpunit6
# "sebastian/object-reflector": "^1.1.1",
# "sebastian/recursion-context": "^3.0"
Requires: php(language) >= 7.0
-Requires: php-composer(%{pk_vendor}/object-reflector) < 2
-Requires: php-composer(%{pk_vendor}/object-reflector) >= 1.1.1
-Requires: php-composer(%{pk_vendor}/recursion-context) < 4
-Requires: php-composer(%{pk_vendor}/recursion-context) >= 3.0
+%if 0%{?fedora} >= 27
+Requires: (php-composer(%{pk_vendor}/object-reflector) >= 1.1.1 with php-composer(%{pk_vendor}/object-reflector) < 2)
+Requires: (php-composer(sebastian/recursion-context) >= 3.0 with php-composer(sebastian/recursion-context) < 4)
+%else
+Requires: php-sebastian-object-reflector
+Requires: php-sebastian-recursion-context3
+%endif
# from phpcompatinfo report for version 3.0.1:
Requires: php-reflection
Requires: php-spl
@@ -121,6 +126,9 @@ exit $ret
%changelog
+* Tue Feb 6 2018 Remi Collet <remi@remirepo.net> - 3.0.3-2
+- use range dependencies on F27+
+
* Fri Aug 4 2017 Remi Collet <remi@remirepo.net> - 3.0.3-1
- Update to 3.0.3 - no change
- raise dependency on sebastian/object-reflector 1.1.1