summaryrefslogtreecommitdiffstats
path: root/php-pecl-swoole4.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-06-29 14:22:16 +0200
committerRemi Collet <remi@remirepo.net>2018-06-29 14:22:16 +0200
commit01bfcadc856506a9753a636b4f31cfb13490f913 (patch)
tree17ce5d9ca6ec6910f3000974c2518c9758e3c9db /php-pecl-swoole4.spec
parentafeb6a6baca612d074a88e46e78ab15e485db23b (diff)
osboletes old versions on F29+, EL-8+ and PHP 7.3+
Diffstat (limited to 'php-pecl-swoole4.spec')
-rw-r--r--php-pecl-swoole4.spec16
1 files changed, 14 insertions, 2 deletions
diff --git a/php-pecl-swoole4.spec b/php-pecl-swoole4.spec
index d0d8756..488e173 100644
--- a/php-pecl-swoole4.spec
+++ b/php-pecl-swoole4.spec
@@ -42,7 +42,7 @@
Summary: PHP's asynchronous concurrent distributed networking framework
Name: %{?sub_prefix}php-pecl-%{pecl_name}4
Version: 4.0.1
-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;')}}
License: BSD
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
@@ -82,9 +82,18 @@ Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 2
Conflicts: %{?scl_prefix}php-pecl-%{pecl_name}2 < 4
%endif
+%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8 || "%{php_version}" > "7.3"
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name} < 4
+Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+Obsoletes: %{?scl_prefix}php-pecl-%{pecl_name}2 < 4
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}2 = %{version}-%{release}
+Provides: %{?scl_prefix}php-pecl-%{pecl_name}2%{?_isa} = %{version}-%{release}
+%else
# Single version can be installed
-Conflicts: %{?sub_prefix}php-pecl-%{pecl_name} < 2
+Conflicts: %{?sub_prefix}php-pecl-%{pecl_name} < 4
Conflicts: %{?sub_prefix}php-pecl-%{pecl_name}2 < 4
+%endif
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
Obsoletes: php71u-pecl-%{pecl_name}4 <= %{version}
@@ -310,6 +319,9 @@ cd ../ZTS
%changelog
+* Fri Jun 29 2018 Remi Collet <remi@remirepo.net> - 4.0.1-2
+- osboletes old versions on F29+, EL-8+ and PHP 7.3+
+
* Thu Jun 21 2018 Remi Collet <remi@remirepo.net> - 4.0.1-1
- update to 4.0.1