From 1a4f811d35dcd1ae9cb2127f31124c2ccf57b629 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 Sep 2020 11:33:06 +0200 Subject: add patch for PHP 8.0.0beta3 from https://github.com/maxmind/MaxMind-DB-Reader-php/pull/108 --- php-maxminddb.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'php-maxminddb.spec') diff --git a/php-maxminddb.spec b/php-maxminddb.spec index c7cf204..69d1660 100644 --- a/php-maxminddb.spec +++ b/php-maxminddb.spec @@ -32,7 +32,7 @@ Summary: MaxMind DB Reader extension Name: %{?sub_prefix}php-maxminddb Version: 1.7.0 -%global rpmrel 1 +%global rpmrel 2 Release: %{rpmrel}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: ASL 2.0 URL: https://github.com/%{gh_owner}/%{gh_project} @@ -41,6 +41,8 @@ URL: https://github.com/%{gh_owner}/%{gh_project} Source0: %{pkg_name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh +Patch0: https://patch-diff.githubusercontent.com/raw/maxmind/MaxMind-DB-Reader-php/pull/108.patch + BuildRequires: %{?scl_prefix}php-devel >= 7.2 BuildRequires: %{?scl_prefix}php-pear >= 1.10 BuildRequires: pkgconfig(libmaxminddb) >= 1.0.0 @@ -158,6 +160,7 @@ Autoloader: %{_datadir}/php/MaxMind/Db/Reader/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} +%patch0 -p1 -b .pr %if %{with_lib} %{_bindir}/phpab \ @@ -331,6 +334,10 @@ fi # when using pkgup, CHECK Release! %changelog +* Wed Sep 2 2020 Remi Collet - 1.7.0-2 +- add patch for PHP 8.0.0beta3 from + https://github.com/maxmind/MaxMind-DB-Reader-php/pull/108 + * Sat Aug 8 2020 Remi Collet - 1.7.0-1 - update to 1.7.0 - now available on pecl -- cgit