summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-04-10 11:05:38 +0200
committerRemi Collet <remi@php.net>2025-04-10 11:05:38 +0200
commit664b49016a8ddd4fb879739af50ff3d580bae82e (patch)
treec8d28ef537e7a36a901573cb1ae87cd75c9b98c8
parenta26674f00a3558e67dd289deeea3500085cb4b8e (diff)
rebuild using bundled librariesv1.16
-rw-r--r--php-pecl-mongodb.spec52
1 files changed, 6 insertions, 46 deletions
diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec
index fe5468e..62f5dc7 100644
--- a/php-pecl-mongodb.spec
+++ b/php-pecl-mongodb.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-mongodb
#
-# Copyright (c) 2015-2023 Remi Collet
+# Copyright (c) 2015-2025 Remi Collet
# License: CC-BY-SA-4.0
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -24,12 +24,8 @@
# test suite requires a MongoDB server
%bcond_with tests
-# temp for EL until available in EPEL
-%if 0%{?fedora} >= 36 || 0%{?rhel} >= 8
-%bcond_without syslib
-%else
+# always use bundled libraries
%bcond_with syslib
-%endif
# Bundled versions
%global bundled_libmongo 1.24.3
@@ -51,7 +47,7 @@ Name: %{?scl_prefix}php-pecl-%{pecl_name}
#global upstream_lower ~beta1
%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever}
Version: %{upstream_version}%{?upstream_lower}
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
%if %{with syslib}
License: Apache-2.0
%else
@@ -96,25 +92,6 @@ Requires: %{?scl_prefix}php-json%{?_isa}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
-%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} == 7
-# Other third party repo stuff
-Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
-Obsoletes: php70u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
-Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
-Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "7.3"
-Obsoletes: php73-pecl-%{pecl_name} <= %{version}
-Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.4"
-Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-%endif
-%endif
-
%description
The purpose of this driver is to provide exceptionally thin glue between
@@ -229,26 +206,6 @@ do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
-%if 0%{?fedora} < 24 && 0%{?rhel} < 8
-# when pear installed alone, after us
-%triggerin -- %{?scl_prefix}php-pear
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-# posttrans as pear can be installed after us
-%posttrans
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-%postun
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
- %{pecl_uninstall} %{pecl_name} >/dev/null || :
-fi
-%endif
-
-
%check
OPT="-n"
[ -f %{php_extdir}/json.so ] && OPT="$OPT -d extension=json.so"
@@ -330,6 +287,9 @@ exit $ret
%changelog
+* Thu Apr 10 2025 Remi Collet <remi@remirepo.net> - 1.16.2-3
+- rebuild using bundled libraries
+
* Thu Aug 17 2023 Remi Collet <remi@remirepo.net> - 1.16.2-1
- update to 1.16.2