From 8cbd21ecee1febc6b8e17da3ce04b408e108fc94 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 11 Jun 2021 09:01:11 +0200 Subject: add upstream patch for PHP 8.1 --- php-pecl-geoip.spec | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'php-pecl-geoip.spec') diff --git a/php-pecl-geoip.spec b/php-pecl-geoip.spec index 4d1bb5a..651239e 100644 --- a/php-pecl-geoip.spec +++ b/php-pecl-geoip.spec @@ -24,16 +24,17 @@ Name: %{?sub_prefix}php-pecl-geoip Version: 1.1.1 -Release: 14%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 15%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} Summary: Extension to map IP addresses to geographic places License: PHP URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz -# Upstream patch for PHP 8 -# https://svn.php.net/viewvc?view=revision&revision=351082 +# Upstream patches Patch0: %{pecl_name}-php8.patch +Patch1: %{pecl_name}-php81.patch +BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: GeoIP-devel BuildRequires: %{?scl_prefix}php-devel @@ -86,12 +87,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 - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter shared private -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} %endif @@ -115,7 +113,8 @@ sed -e 's/role="test"/role="src"/' \ mv %{pecl_name}-%{version} NTS cd NTS -%patch0 -p3 -b .up +%patch0 -p1 -b .php8 +%patch1 -p1 -b .php81 extver=$(sed -n '/#define PHP_GEOIP_VERSION/{s/.* "//;s/".*$//;p}' php_geoip.h) if test "x${extver}" != "x%{version}"; then @@ -234,6 +233,9 @@ fi %changelog +* Fri Jun 11 2021 Remi Collet - 1.1.1-15 +- add upstream patch for PHP 8.1 + * Fri Oct 30 2020 Remi Collet - 1.1.1-14 - add upstream patch for PHP 8 -- cgit