summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--PHPINFO4
-rw-r--r--REFLECTION4
-rw-r--r--composer.json9
-rw-r--r--php-maxminddb.spec39
5 files changed, 41 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 91b0fd5..13af741 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
-include ../../common/Makefile
+include ../../../common/Makefile
diff --git a/PHPINFO b/PHPINFO
index 8cd2e02..a25dbfe 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -2,5 +2,5 @@
maxminddb
MaxMind DB Reader => enabled
-maxminddb extension version => 1.11.1
-libmaxminddb library version => 1.8.0
+maxminddb extension version => 1.13.1
+libmaxminddb library version => 1.12.2
diff --git a/REFLECTION b/REFLECTION
index a369086..971908a 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #65 maxminddb version 1.11.1 ] {
+Extension [ <persistent> extension #98 maxminddb version 1.13.1 ] {
- Classes [3] {
Class [ <internal:maxminddb> class MaxMind\Db\Reader\InvalidDatabaseException extends Exception implements Throwable, Stringable ] {
@@ -96,7 +96,7 @@ Extension [ <persistent> extension #65 maxminddb version 1.11.1 ] {
Class [ <internal:maxminddb> class MaxMind\Db\Reader ] {
- Constants [1] {
- Constant [ public string MMDB_LIB_VERSION ] { 1.8.0 }
+ Constant [ public string MMDB_LIB_VERSION ] { 1.12.2 }
}
- Static properties [0] {
diff --git a/composer.json b/composer.json
index f4e7391..5b4e315 100644
--- a/composer.json
+++ b/composer.json
@@ -21,14 +21,13 @@
"ext-maxminddb": "A C-based database decoder that provides significantly faster lookups"
},
"conflict": {
- "ext-maxminddb": "<1.9.0,>=2.0.0"
+ "ext-maxminddb": "<1.11.1 || >=2.0.0"
},
"require-dev": {
- "friendsofphp/php-cs-fixer": "*",
+ "friendsofphp/php-cs-fixer": "3.*",
"phpunit/phpunit": ">=8.0.0,<10.0.0",
- "php-coveralls/php-coveralls": "^2.1",
- "phpunit/phpcov": ">=6.0.0",
- "squizlabs/php_codesniffer": "3.*"
+ "squizlabs/php_codesniffer": "4.*",
+ "phpstan/phpstan": "*"
},
"autoload": {
"psr-4": {
diff --git a/php-maxminddb.spec b/php-maxminddb.spec
index 8cd7471..9816b17 100644
--- a/php-maxminddb.spec
+++ b/php-maxminddb.spec
@@ -1,11 +1,17 @@
# remirepo spec file for php-maxminddb
#
-# Copyright (c) 2018-2024 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2018-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
+
+# TODO build --without test for 7.2 and 7.3 (because of phpunit)
+# mockit ... all 74 85
+# mockit ... el8x 72 73 --without tests
+# mockit ... el8a 72 73 --without tests
+
%if 0%{?scl:1}
%scl_package php-maxminddb
%global with_lib 0
@@ -15,11 +21,13 @@
%endif
%bcond_without tests
-%global gh_commit 1e66f73ffcf25e17c7a910a1317e9720a95497c7
+%global gh_commit 2194f58d0f024ce923e685cdf92af3daf9951908
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner maxmind
%global gh_project MaxMind-DB-Reader-php
# Extension
+%global pie_vend maxmind-db
+%global pie_proj reader-ext
%global pecl_name maxminddb
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
@@ -30,8 +38,8 @@
Summary: MaxMind DB Reader extension
Name: %{?scl_prefix}php-maxminddb
-Version: 1.11.1
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.13.1
+Release: 1%{?dist}
License: Apache-2.0
URL: https://github.com/%{gh_owner}/%{gh_project}
@@ -54,6 +62,9 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{rele
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PIE
+Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version}
+Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version}
%description
@@ -236,7 +247,7 @@ REPORT_EXIT_STATUS=1 \
%if %{with_lib} && %{with tests}
cd ..
: Upstream test suite for the library
-for cmd in php php81 php82 php83 php84; do
+for cmd in php php81 php82 php83 php84 php85; do
if which $cmd; then
$cmd %{_bindir}/phpunit8 \
--bootstrap %{buildroot}%{_datadir}/php/MaxMind/Db/Reader/autoload.php \
@@ -279,6 +290,20 @@ exit $ret
# when using pkgup, CHECK Release!
%changelog
+* Sat Nov 22 2025 Remi Collet <remi@remirepo.net> - 1.13.1-1
+- update to 1.13.1 (no changes)
+- add pie virtual provides
+
+* Fri Nov 21 2025 Remi Collet <remi@remirepo.net> - 1.13.0-1
+- update to 1.13.0
+
+* Tue May 6 2025 Remi Collet <remi@remirepo.net> - 1.12.1-1
+- update to 1.12.1
+- re-license spec file to CECILL-2.1
+
+* Fri Nov 15 2024 Remi Collet <remi@remirepo.net> - 1.12.0-1
+- update to 1.12.0
+
* Mon Dec 4 2023 Remi Collet <remi@remirepo.net> - 1.11.1-1
- update to 1.11.1