summaryrefslogtreecommitdiffstats
path: root/php-pecl-ip2location.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-ip2location.spec')
-rw-r--r--php-pecl-ip2location.spec19
1 files changed, 14 insertions, 5 deletions
diff --git a/php-pecl-ip2location.spec b/php-pecl-ip2location.spec
index ecf8590..15402fe 100644
--- a/php-pecl-ip2location.spec
+++ b/php-pecl-ip2location.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-pecl-ip2location
#
-# Copyright (c) 2017-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2017-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -12,7 +12,7 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
-%global upstream_version 8.2.0
+%global upstream_version 8.3.0
#global upstream_prever RC1
%global libversion 8.6
@@ -23,10 +23,12 @@ 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: 2%{?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
+Patch0: https://patch-diff.githubusercontent.com/raw/chrislim2888/IP2Location-PECL-Extension/pull/25.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-pear
@@ -66,6 +68,7 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd %{sources}
+%patch -P0 -p1 -b .pr25
sed -e "s/\r//" -i LICENSE CREDITS *.md *.c *.h
# Check version
@@ -163,6 +166,12 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Sep 3 2025 Remi Collet <remi@remirepo.net> - 8.3.0-1
+- update to 8.3.0
+- re-license spec file to CECILL-2.1
+- fix build with old libip2location using patch from
+ https://github.com/chrislim2888/IP2Location-PECL-Extension/pull/25
+
* Mon Jun 12 2023 Remi Collet <remi@remirepo.net> - 8.2.0-2
- raise dependency on IP2location library version 8.6
- build out of sources tree