summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-04-13 16:12:11 +0200
committerRemi Collet <remi@remirepo.net>2017-04-13 16:12:11 +0200
commit3d99e73901a2c68fc9fa683432256f65b2643c18 (patch)
tree3598d4d098adc410991ecb8fc2ff5de84d6c4075
parent6440200c9f1c91fc507817b289d42cf8a224807f (diff)
drop dependency on apcu-bc with PHP 7.2
-rw-r--r--php-pecl-apcu.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/php-pecl-apcu.spec b/php-pecl-apcu.spec
index 8cbdfc7..dc34e4d 100644
--- a/php-pecl-apcu.spec
+++ b/php-pecl-apcu.spec
@@ -31,7 +31,7 @@ Version: 5.1.8
Release: 0.1.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{pecl_name}-%{version}-%{gh_short}.tar.gz
%else
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
%endif
Source1: %{pecl_name}-5.1.2.ini
@@ -50,9 +50,11 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
%if ! %{bootstrap}
+%if "%{php_version}" < "7.2"
# For user experience
Requires: %{?scl_prefix}php-pecl-apcu-bc%{?_isa}
%endif
+%endif
Obsoletes: %{?scl_prefix}php-apcu < 4.0.0-1
Provides: %{?scl_prefix}php-apcu = %{version}
@@ -80,6 +82,10 @@ Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "7.2"
+Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -313,6 +319,9 @@ fi
%changelog
+* Thu Apr 13 2017 Remi Collet <remi@fedoraproject.org> - 5.1.8-2
+- drop dependency on apcu-bc with PHP 7.2
+
* Mon Jan 16 2017 Remi Collet <remi@fedoraproject.org> - 5.1.8-1
- Update to 5.1.8 (php 7, stable)