summaryrefslogtreecommitdiffstats
path: root/php-pecl-mongodb2.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-04-28 15:21:36 +0200
committerRemi Collet <remi@php.net>2026-04-28 15:21:36 +0200
commitc1d23fbb66385625684d85848a2ebd66d9bc300c (patch)
tree9d9a9e21e150e72721cf263c74455da02a6f355f /php-pecl-mongodb2.spec
parent5df4d5c0d598e8e66ee041c22d243ff364866f4c (diff)
update to 2.3.0
use bundled libbson and libmongc 2.3.0 use bundled libmongocrypt 1.17.3
Diffstat (limited to 'php-pecl-mongodb2.spec')
-rw-r--r--php-pecl-mongodb2.spec33
1 files changed, 19 insertions, 14 deletions
diff --git a/php-pecl-mongodb2.spec b/php-pecl-mongodb2.spec
index 9dcb0c8..a987cec 100644
--- a/php-pecl-mongodb2.spec
+++ b/php-pecl-mongodb2.spec
@@ -16,26 +16,26 @@
# After 40-smbclient.ini, see https://jira.mongodb.org/browse/PHPC-658
%global ini_name 50-%{pecl_name}.ini
-# use bundled libraries by default because of upcoming v2
+# use bundled libraries by default
%bcond_with syslib
# Bundled versions
-%global bundled_libmongo 2.2.2
-%global bundled_libcrypt 1.17.2
+%global bundled_libmongo 2.3.0
+%global bundled_libcrypt 1.17.3
# Required versions (in config.m4)
-%global minimal_libmongo 2.2.2
-%global minimal_libcrypt 1.17.2
+%global minimal_libmongo 2.3.0
+%global minimal_libcrypt 1.17.3
%if %{with syslib}
# Build dependencies (in repository)
-%global system_libmongo 2.2.2
-%global system_libcrypt 1.17.2
+%global system_libmongo 2.3.0
+%global system_libcrypt 1.17.3
# Runtime dependencies
%global runtime_libmongo %(pkg-config --silence-errors --modversion libmongoc-1.0 2>/dev/null || echo %{system_libmongo})
%global runtime_libcrypt %(pkg-config --silence-errors --modversion libmongocrypt 2>/dev/null || echo %{system_libcrypt})
%endif
-%global upstream_version 2.2.1
+%global upstream_version 2.3.0
#global upstream_prever beta1
#global upstream_lower ~beta1
%global sources %{gh_proj}-%{upstream_version}%{?upstream_prever}
@@ -49,7 +49,7 @@
Summary: MongoDB driver for PHP version 2
Name: %{?scl_prefix}php-pecl-%{pecl_name}2
-Release: 2%{?dist}
+Release: 1%{?dist}
%if %{with syslib}
License: Apache-2.0
%else
@@ -67,8 +67,8 @@ BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 8.1
BuildRequires: %{?scl_prefix}php-json
%if %{with syslib}
-BuildRequires: pkgconfig(libbson-1.0) >= %{system_libmongo}
-BuildRequires: pkgconfig(libmongoc-1.0) >= %{system_libmongo}
+BuildRequires: pkgconfig(bson2) >= %{system_libmongo}
+BuildRequires: pkgconfig(mongoc2) >= %{system_libmongo}
BuildRequires: pkgconfig(libmongocrypt) >= %{system_libcrypt}
Requires: libbson%{?_isa} >= %{runtime_libmongo}
Requires: mongo-c-driver-libs%{?_isa} >= %{runtime_libmongo}
@@ -136,7 +136,7 @@ grep -q %{bundled_libmongo} src/libmongoc/VERSION_CURRENT
cat src/LIBMONGOCRYPT_VERSION_CURRENT
grep -q %{bundled_libcrypt} src/LIBMONGOCRYPT_VERSION_CURRENT
-grep CHECK_MODULES config.m4
+grep 'PHP_MONGODB_MIN_.*_VERSION=' config.m4
grep -q %{minimal_libmongo} config.m4
grep -q %{minimal_libcrypt} config.m4
@@ -148,7 +148,7 @@ sed -e 's/%{minimal_libmongo}/%{system_libmongo}/;s/%{minimal_libcrypt}/%{system
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_MONGODB_VERSION /{s/.* "//;s/".*$//;p}' phongo_version.h)
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
- : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}.
+ : Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}
exit 1
fi
@@ -264,6 +264,11 @@ OPT="-n"
%changelog
+* Tue Apr 28 2026 Remi Collet <remi@remirepo.net> - 2.3.0-1
+- update to 2.3.0
+- use bundled libbson and libmongc 2.3.0
+- use bundled libmongocrypt 1.17.3
+
* Thu Mar 12 2026 Remi Collet <remi@remirepo.net> - 2.2.1-2
- drop pear/pecl dependency
- sources from github
@@ -274,7 +279,7 @@ OPT="-n"
* Wed Feb 11 2026 Remi Collet <remi@remirepo.net> - 2.2.0-1
- update to 2.2.0
- use bundled libbson and libmongc 2.2.2
-- use bundled libmongocrypt 1.12
+- use bundled libmongocrypt 1.17.2
* Thu Feb 5 2026 Remi Collet <remi@remirepo.net> - 2.1.8-1
- update to 2.1.8