From 75a4e7f92e4e7b3f1536e19af21ad7a535895f38 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 14 Jun 2023 07:54:42 +0200 Subject: raise dependency on IP2location library version 8.6 build out of sources tree --- PHPINFO | 2 +- REFLECTION | 21 +++++++++++++++++++ php-pecl-ip2location.spec | 51 ++++++++++++++++++++++++++++------------------- 3 files changed, 52 insertions(+), 22 deletions(-) diff --git a/PHPINFO b/PHPINFO index bd89f9d..1fd3237 100644 --- a/PHPINFO +++ b/PHPINFO @@ -3,4 +3,4 @@ ip2location ip2location support => enabled extension version => 8.2.0 -library version => 8.4.1 +library version => 8.6.1 diff --git a/REFLECTION b/REFLECTION index e3691dc..dbe9e9b 100644 --- a/REFLECTION +++ b/REFLECTION @@ -196,6 +196,27 @@ Extension [ extension #78 ip2location version 8.2.0 ] { } Function [ function ip2location_get_category ] { + - Parameters [1] { + Parameter #0 [ string $ip_address ] + } + - Return [ string ] + } + Function [ function ip2location_get_district ] { + + - Parameters [1] { + Parameter #0 [ string $ip_address ] + } + - Return [ string ] + } + Function [ function ip2location_get_asn ] { + + - Parameters [1] { + Parameter #0 [ string $ip_address ] + } + - Return [ string ] + } + Function [ function ip2location_get_as ] { + - Parameters [1] { Parameter #0 [ string $ip_address ] } diff --git a/php-pecl-ip2location.spec b/php-pecl-ip2location.spec index 2cfdd35..5bbc2eb 100644 --- a/php-pecl-ip2location.spec +++ b/php-pecl-ip2location.spec @@ -6,9 +6,13 @@ # # Please, preserve the changelog entries # -%if 0%{?scl:1} -%scl_package php-pecl-ip2location -%endif +%{?scl:%scl_package php-pecl-ip2location} + +# Defined in Fedora >= 37 and RHEL >= 10, in PHP >= 7.4 for remirepo +%{!?__phpize: %global __phpize %{_bindir}/phpize} +%{!?__ztsphpize: %global __ztsphpize %{_bindir}/zts-phpize} +%{!?__phpconfig: %global __phpconfig %{_bindir}/php-config} +%{!?__ztsphpconfig:%global __ztsphpconfig %{_bindir}/zts-php-config} %global pecl_name ip2location %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} @@ -20,13 +24,16 @@ %global upstream_version 8.2.0 #global upstream_prever RC1 -%global libversion 8.4 +%global libversion 8.6 + +%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global _configure ../%{sources}/configure Summary: Get geo location information of an IP address Name: %{?scl_prefix}php-pecl-%{pecl_name} License: PHP-3.01 Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -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;')} URL: https://pecl.php.net/package/%{pecl_name} Source0: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz @@ -61,7 +68,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS # Don't install tests sed -e 's/role="test"/role="src"/' \ @@ -70,7 +76,7 @@ sed -e 's/role="test"/role="src"/' \ -e '/AGREEMENT.PDF/s/role="doc"/role="test"/' \ -i package.xml -cd NTS +cd %{sources} sed -e "s/\r//" -i LICENSE CREDITS *.md *.c *.h # Check version @@ -81,8 +87,9 @@ if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then fi cd .. +mkdir NTS %if %{with_zts} -cp -r NTS ZTS +mkdir ZTS %endif cat < - 8.2.0-2 +- raise dependency on IP2location library version 8.6 +- build out of sources tree + * Mon Jun 12 2023 Remi Collet - 8.2.0-1 - update to 8.2.0 -- cgit