From ab264da89d354160b1a2e047fc0ea9ddd7aab6bc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 29 Jul 2022 10:27:41 +0200 Subject: update to 8.1.2 --- PHPINFO | 4 ++-- REFLECTION | 14 +++++++++++++- php-pecl-ip2location.spec | 34 ++++++++-------------------------- 3 files changed, 23 insertions(+), 29 deletions(-) diff --git a/PHPINFO b/PHPINFO index 412c3ef..9d8cbc2 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,5 +2,5 @@ ip2location ip2location support => enabled -extension version => 8.1.1 -library version => 8.3.1 +extension version => 8.1.2 +library version => 8.4.1 diff --git a/REFLECTION b/REFLECTION index 61954f1..973eaa2 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #78 ip2location version 8.1.1 ] { +Extension [ extension #79 ip2location version 8.1.2 ] { - Constants [4] { Constant [ int IP2LOCATION_FILE_IO ] { 0 } @@ -161,6 +161,18 @@ Extension [ extension #78 ip2location version 8.1.1 ] { - Parameters [0] { } } + Function [ function ip2location_get_addresstype ] { + + - Parameters [1] { + Parameter #0 [ $ip_address ] + } + } + Function [ function ip2location_get_category ] { + + - Parameters [1] { + Parameter #0 [ $ip_address ] + } + } } } diff --git a/php-pecl-ip2location.spec b/php-pecl-ip2location.spec index bf13dd4..e04cd3b 100644 --- a/php-pecl-ip2location.spec +++ b/php-pecl-ip2location.spec @@ -1,13 +1,12 @@ # remirepo spec file for php-pecl-ip2location # -# Copyright (c) 2017-2021 Remi Collet +# Copyright (c) 2017-2022 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %if 0%{?scl:1} -%global sub_prefix %{scl_prefix} %scl_package php-pecl-ip2location %endif @@ -19,14 +18,14 @@ %global ini_name 40-%{pecl_name}.ini %endif -%global upstream_version 8.1.1 +%global upstream_version 8.1.2 #global upstream_prever RC1 Summary: Get geo location information of an IP address -Name: %{?sub_prefix}php-pecl-%{pecl_name} +Name: %{?scl_prefix}php-pecl-%{pecl_name} License: PHP Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 5%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Release: 1%{?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 @@ -35,7 +34,7 @@ BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-devel # ensure proper version is used -BuildRequires: IP2Location-devel >= 8.3 +BuildRequires: IP2Location-devel >= 8.4 Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -45,26 +44,6 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} -%if "%{?scl_prefix}" != "%{?sub_prefix}" -Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} -Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} -%endif - -%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} -# Other third party repo stuff -%if "%{php_version}" > "7.3" -Obsoletes: php73-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.4" -Obsoletes: php74-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.0" -Obsoletes: php80-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "8.1" -Obsoletes: php81-pecl-%{pecl_name} <= %{version} -%endif -%endif %description @@ -212,6 +191,9 @@ fi %changelog +* Fri Jul 29 2022 Remi Collet - 8.1.2-1 +- update to 8.1.2 + * Mon Sep 6 2021 Remi Collet - 8.1.1-5 - F35 build -- cgit