summaryrefslogtreecommitdiffstats
path: root/php-pecl-rpminfo.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-04-10 15:55:29 +0200
committerRemi Collet <remi@remirepo.net>2020-04-10 15:55:29 +0200
commitd62552e412a23d26e6044e75132fb973a48a4125 (patch)
tree2a4f4c06ec3cf5a7bf343a2a50fbe5faafd253e4 /php-pecl-rpminfo.spec
parent8053f8ba33dc752c78356d6a4ea014b64789fe91 (diff)
add upstream patch for test suite and PHP 8
Diffstat (limited to 'php-pecl-rpminfo.spec')
-rw-r--r--php-pecl-rpminfo.spec9
1 files changed, 8 insertions, 1 deletions
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 <remi@remirepo.net> - 0.5.0-2
+- add upstream patch for test suite and PHP 8
+
* Tue Apr 7 2020 Remi Collet <remi@remirepo.net> - 0.5.0-1
- update to 0.5.0