summaryrefslogtreecommitdiffstats
path: root/php-pecl-rdkafka4.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-rdkafka4.spec')
-rw-r--r--php-pecl-rdkafka4.spec27
1 files changed, 20 insertions, 7 deletions
diff --git a/php-pecl-rdkafka4.spec b/php-pecl-rdkafka4.spec
index 5e01679..17c4ff5 100644
--- a/php-pecl-rdkafka4.spec
+++ b/php-pecl-rdkafka4.spec
@@ -1,4 +1,4 @@
-# remirepo/fedora spec file for php-pecl-rdkafka
+# remirepo/fedora spec file for php-pecl-rdkafka4
#
# Copyright (c) 2015-2019 Remi Collet
# License: CC-BY-SA
@@ -19,15 +19,15 @@
%global buildver %(pkg-config --silence-errors --modversion rdkafka 2>/dev/null || echo 65536)
Summary: Kafka client based on librdkafka
-Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 3.1.2
-Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Name: %{?sub_prefix}php-pecl-%{pecl_name}4
+Version: 4.0.0
+Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: MIT
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: librdkafka-devel > 0.8
+BuildRequires: librdkafka-devel >= 0.11
BuildRequires: %{?scl_prefix}php-devel > 5.6
BuildRequires: %{?scl_prefix}php-pear
@@ -45,6 +45,15 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{rele
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
%endif
+%if 0%{?fedora} >= 31 || 0%{?rhel} >= 9 || "%{php_version}" > "7.4"
+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} < 4
+%endif
+
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
%if "%{php_version}" > "7.1"
@@ -73,8 +82,7 @@ Obsoletes: php74w-pecl-%{pecl_name} <= %{version}
%description
-This extension is a librdkafka binding providing a working client
-for Kafka 0.8, 0.9, 0.10.
+This extension is a librdkafka binding providing a working client for Kafka.
Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}.
@@ -205,6 +213,11 @@ cd ../ZTS
%changelog
+* Sat Oct 5 2019 Remi Collet <remi@remirepo.net> - 4.0.0-1
+- update to 4.0.0
+- rename to php-pecl-rdkafka4
+- raise dependency on librdkafka 0.11
+
* Tue Sep 03 2019 Remi Collet <remi@remirepo.net> - 3.1.2-2
- rebuild for 7.4.0RC1