diff options
| author | Remi Collet <remi@remirepo.net> | 2026-04-28 09:31:06 +0200 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-04-28 09:31:06 +0200 |
| commit | dc79ca6fcac1cb14ccda30fabe830a2ad78bdf78 (patch) | |
| tree | fef038364bb51578718aae808caf4d982203fd83 /php-pecl-ip2proxy.spec | |
| parent | 43d57c7644292f5790cbe483eb8be607bcc45f25 (diff) | |
Diffstat (limited to 'php-pecl-ip2proxy.spec')
| -rw-r--r-- | php-pecl-ip2proxy.spec | 29 |
1 files changed, 16 insertions, 13 deletions
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 |
