From d21b6ebf9818d37bcbe436cfcfd3274795192f89 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 4 Aug 2021 11:55:46 +0200 Subject: add patch for PHP 8.1.0beta2 from https://github.com/php-kafka/php-simple-kafka-client/pull/54 --- php-pecl-simple-kafka-client.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'php-pecl-simple-kafka-client.spec') 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 - 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 - 0.1.3-1 - update to 0.1.3 -- cgit