From d62552e412a23d26e6044e75132fb973a48a4125 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 10 Apr 2020 15:55:29 +0200 Subject: add upstream patch for test suite and PHP 8 --- php-pecl-rpminfo.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php-pecl-rpminfo.spec') diff --git a/php-pecl-rpminfo.spec b/php-pecl-rpminfo.spec index 450a959..2819752 100644 --- a/php-pecl-rpminfo.spec +++ b/php-pecl-rpminfo.spec @@ -23,11 +23,14 @@ Summary: RPM information Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 0.5.0 -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: PHP URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz +# Upstream patch for test suite +Patch0: %{pecl_name}-tests.patch + BuildRequires: %{?dtsprefix}gcc BuildRequires: pkgconfig(rpm) >= 4.11.3 BuildRequires: %{?scl_prefix}php-devel > 7 @@ -89,6 +92,7 @@ sed -e 's/role="test"/role="src"/' \ mv %{pecl_name}-%{version} NTS cd NTS +%patch0 -p1 -b .up # Sanity check, really often broken extver=$(sed -n '/#define PHP_RPMINFO_VERSION/{s/.* "//;s/".*$//;p}' php_rpminfo.h) @@ -222,6 +226,9 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Fri Apr 10 2020 Remi Collet - 0.5.0-2 +- add upstream patch for test suite and PHP 8 + * Tue Apr 7 2020 Remi Collet - 0.5.0-1 - update to 0.5.0 -- cgit