summaryrefslogtreecommitdiffstats
path: root/php-pecl-protobuf4.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-protobuf4.spec')
-rw-r--r--php-pecl-protobuf4.spec24
1 files changed, 19 insertions, 5 deletions
diff --git a/php-pecl-protobuf4.spec b/php-pecl-protobuf4.spec
index 95370f7..d91016b 100644
--- a/php-pecl-protobuf4.spec
+++ b/php-pecl-protobuf4.spec
@@ -1,4 +1,4 @@
-# remirepo spec file for php-pecl-protobuf
+# remirepo spec file for php-pecl-protobuf4
#
# Copyright (c) 2016-2020 Remi Collet
# License: CC-BY-SA
@@ -22,11 +22,11 @@
%else
%global ini_name 40-%{pecl_name}.ini
%endif
-%global upstream_version 3.12.3
-#global upstream_prever RC2
+%global upstream_version 4.0.0
+%global upstream_prever RC1
Summary: Mechanism for serializing structured data
-Name: %{?sub_prefix}php-pecl-%{pecl_name}
+Name: %{?sub_prefix}php-pecl-%{pecl_name}4
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: BSD
@@ -50,7 +50,16 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{relea
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
%endif
-%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+%if 0%{?fedora} >= 33 || 0%{?rhel} >= 9 || "%{php_version}" > "8.0"
+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}
+%else
+# A single version can be installed
+Conflicts: %{?scl_prefix}php-pecl-%{pecl_name} < 5
+%endif
+
+%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
%if "%{php_version}" > "7.2"
Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
@@ -213,6 +222,11 @@ fi
%changelog
+* Thu Jul 16 2020 Remi Collet <remi@remirepo.net> - 4.0.0~RC1-1
+- update to 4.0.0RC1
+- rename to php-pecl-protobuf4
+- raise dependency on PHP 7
+
* Thu Jul 16 2020 Remi Collet <remi@remirepo.net> - 3.12.3-1
- update to 3.12.3 (no change)