summaryrefslogtreecommitdiffstats
path: root/php-pecl-simple-kafka-client.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-simple-kafka-client.spec')
-rw-r--r--php-pecl-simple-kafka-client.spec10
1 files changed, 9 insertions, 1 deletions
diff --git a/php-pecl-simple-kafka-client.spec b/php-pecl-simple-kafka-client.spec
index ba833fa..fa44e3f 100644
--- a/php-pecl-simple-kafka-client.spec
+++ b/php-pecl-simple-kafka-client.spec
@@ -21,11 +21,13 @@
Summary: Kafka client based on librdkafka
Name: %{?sub_prefix}php-pecl-simple-kafka-client
Version: 0.1.3
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: BSD
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Patch0: %{pecl_name}-php81.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: librdkafka1php-devel >= 1.7
@@ -77,6 +79,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p1 -b .pr54
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_SIMPLE_KAFKA_CLIENT_VERSION/{s/.* "//;s/".*$//;p}' php_simple_kafka_client_int.h)
if test "x${extver}" != "x%{version}"; then
@@ -197,6 +201,10 @@ cd ../ZTS
%changelog
+* Wed Aug 4 2021 Remi Collet <remi@remirepo.net> - 0.1.3-2
+- add patch for PHP 8.1.0beta2 from
+ https://github.com/php-kafka/php-simple-kafka-client/pull/54
+
* Thu Jul 1 2021 Remi Collet <remi@remirepo.net> - 0.1.3-1
- update to 0.1.3