summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-04-28 09:31:06 +0200
committerRemi Collet <remi@php.net>2026-04-28 09:31:06 +0200
commitdc79ca6fcac1cb14ccda30fabe830a2ad78bdf78 (patch)
treefef038364bb51578718aae808caf4d982203fd83
parent43d57c7644292f5790cbe483eb8be607bcc45f25 (diff)
update bundled libip2proxy to 4.3.0HEADmaster
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION10
-rw-r--r--php-pecl-ip2proxy.spec29
3 files changed, 22 insertions, 19 deletions
diff --git a/PHPINFO b/PHPINFO
index 4490842..573e20d 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -3,4 +3,4 @@ ip2proxy
ip2proxy support => enabled
extension version => 3.1.0
-library version => 4.2.1
+library version => 4.3.0
diff --git a/REFLECTION b/REFLECTION
index 14698d7..f23315e 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,10 +1,10 @@
-Extension [ <persistent> extension #92 ip2proxy version 3.1.0 ] {
+Extension [ <persistent> extension #91 ip2proxy version 3.1.0 ] {
- Constants [4] {
- Constant [ int IP2PROXY_FILE_IO ] { 0 }
- Constant [ int IP2PROXY_CACHE_MEMORY ] { 1 }
- Constant [ int IP2PROXY_SHARED_MEMORY ] { 2 }
- Constant [ int IP2PROXY_RECORD ] { 0 }
+ Constant [ <persistent> int IP2PROXY_FILE_IO ] { 0 }
+ Constant [ <persistent> int IP2PROXY_CACHE_MEMORY ] { 1 }
+ Constant [ <persistent> int IP2PROXY_SHARED_MEMORY ] { 2 }
+ Constant [ <persistent> int IP2PROXY_RECORD ] { 0 }
}
- Functions {
diff --git a/php-pecl-ip2proxy.spec b/php-pecl-ip2proxy.spec
index bd7f60a..e54d355 100644
--- a/php-pecl-ip2proxy.spec
+++ b/php-pecl-ip2proxy.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-ip2proxy
#
-# SPDX-FileCopyrightText: Copyright 2020-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2020-2026 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
@@ -21,26 +21,26 @@
%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
%global _configure ../%{sources}/configure
-# see https://github.com/ip2location/ip2proxy-c/commits/master
-%global gh_owner ip2location
-%global gh_project ip2proxy-c
-%global gh_commit 79662201167fcbda5532f94ad3e1fefd2b9b073e
-%global gh_version 4.2.1
-%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
+# see https://github.com/ip2location/ip2proxy-c/releases
+%global gh_owner ip2location
+%global gh_project1 ip2proxy-c
+%global forgeurl1 https://github.com/%{gh_owner}/%{gh_project1}
+%global tag1 4.3.0
+%global archivename1 %{gh_project1}-%{tag1}
Summary: Get proxy information of an IP address
Name: %{?scl_prefix}php-pecl-%{pecl_name}
# library is MIT, extension is PHP
License: MIT AND PHP-3.01
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
-Release: 2%{?dist}
+Release: 3%{?dist}
URL: https://pecl.php.net/package/igbinary
Source0: https://pecl.php.net/get/%{sources}.tgz
# library with no API nor ABI management
-Source1: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{gh_version}-%{gh_short}.tar.gz
+Source1: %{forgeurl1}/archive/%{tag1}/%{archivename1}.tar.gz
Patch0: %{pecl_name}-bundledlib.patch
-Provides: bundled(%{gh_project}) = %{gh_version}
+Provides: bundled(%{gh_project1}) = %{tag1}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
@@ -71,8 +71,8 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c -a 1
-mv %{gh_project}-%{gh_commit}/libIP2Proxy libIP2Proxy
-mv %{gh_project}-%{gh_commit}/LICENSE.TXT LICENSE-%{gh_project}
+mv %{archivename1}/libIP2Proxy libIP2Proxy
+mv %{archivename1}/LICENSE.TXT LICENSE-%{gh_project1}
sed -e 's:../config.h:config.h:' -i libIP2Proxy/IP2Proxy.c
# Don't install tests
@@ -175,7 +175,7 @@ REPORT_EXIT_STATUS=1 \
%files
-%license LICENSE-%{gh_project}
+%license LICENSE-%{gh_project1}
%license %{sources}/LICENSE
%doc %{pecl_docdir}/%{pecl_name}
%config(noreplace) %{php_inidir}/%{ini_name}
@@ -190,6 +190,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Tue Apr 28 2026 Remi Collet <remi@remirepo.net> - 3.1.0-3
+- update bundled libip2proxy to 4.3.0
+
* Wed Nov 19 2025 Remi Collet <remi@remirepo.net> - 3.1.0-2
- update bundled libip2proxy to 4.2.1
- add pie virtual provides