From 109d6c65de2335db9c7c98186afe04f04aec6a3c Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 1 Sep 2021 09:05:57 +0200 Subject: rebuild for 8.1.0RC1 --- php-pecl-gearman.spec | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) (limited to 'php-pecl-gearman.spec') diff --git a/php-pecl-gearman.spec b/php-pecl-gearman.spec index ec47d3a..8da46ec 100644 --- a/php-pecl-gearman.spec +++ b/php-pecl-gearman.spec @@ -21,19 +21,22 @@ %global ini_name 40-%{pecl_name}.ini %endif +%bcond_without tests + %global extver 2.1.0 %global libver 1.1.0 - Name: %{?sub_prefix}php-pecl-gearman Version: %{extver} -Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} Summary: PHP wrapper to libgearman License: PHP URL: https://pecl.php.net/package/gearman Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz +Patch0: %{pecl_name}-php81.patch + BuildRequires: libgearman-devel > %{libver} BuildRequires: make BuildRequires: %{?dtsprefix}gcc @@ -70,6 +73,9 @@ Obsoletes: php74-pecl-%{pecl_name} <= %{version} %if "%{php_version}" > "8.0" Obsoletes: php80-pecl-%{pecl_name} <= %{version} %endif +%if "%{php_version}" > "8.1" +Obsoletes: php81-pecl-%{pecl_name} <= %{version} +%endif %endif @@ -92,11 +98,15 @@ sed -e 's/role="test"/role="src"/' \ -i package.xml -extver=$(sed -n '/#define PHP_GEARMAN_VERSION/{s/.* "//;s/".*$//;p}' NTS/php_gearman.h) +pushd NTS +%patch0 -p1 + +extver=$(sed -n '/#define PHP_GEARMAN_VERSION/{s/.* "//;s/".*$//;p}' php_gearman.h) if test "x${extver}" != "x%{version}"; then : Error: Upstream version is ${extver}, expecting %{version}. exit 1 fi +popd cat >%{ini_name} < - 2.1.0-5 +- rebuild for 8.1.0RC1 + +* Fri Jun 11 2021 Remi Collet - 2.1.0-4 +- add upstream patch for PHP 8.1 +- run test suite in %%check + * Fri Apr 30 2021 Remi Collet - 2.1.0-3 - F34 rebuild for https://github.com/remicollet/remirepo/issues/174 -- cgit