summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-02-09 15:11:03 +0100
committerRemi Collet <remi@php.net>2023-02-09 15:11:03 +0100
commit0eddd71853ec632c715b503330ce3a9a212c0c29 (patch)
tree4f5529af331dc99fd619ad014f1d79a89befe9fd
parentf2bfc07eb0a5cbffd2e70a49f92877574fb12ca8 (diff)
reorder
-rw-r--r--php-pecl-mongodb.spec12
1 files changed, 7 insertions, 5 deletions
diff --git a/php-pecl-mongodb.spec b/php-pecl-mongodb.spec
index 0dd702a..f6be753 100644
--- a/php-pecl-mongodb.spec
+++ b/php-pecl-mongodb.spec
@@ -139,7 +139,13 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
pushd NTS
+
%if %{with syslib}
+# Check our macro values
+cat src/*_VERSION_CURRENT
+grep -q %{bundled_libmongo} src/LIBMONGOC_VERSION_CURRENT
+grep -q %{bundled_libcrypt} src/LIBMONGOCRYPT_VERSION_CURRENT
+
# temporary: lower minimal required versions
sed -e 's/%{bundled_libmongo}/%{system_libmongo}/;s/%{bundled_libcrypt}/%{system_libcrypt}/' -i config.m4
%endif
@@ -151,12 +157,8 @@ if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}"; then
exit 1
fi
-# Check our macro values
-cat src/*_VERSION_CURRENT
-grep %{bundled_libmongo} src/LIBMONGOC_VERSION_CURRENT
-grep %{bundled_libcrypt} src/LIBMONGOCRYPT_VERSION_CURRENT
-
popd
+
%if %{with_zts}
# Duplicate source tree for NTS / ZTS build
cp -pr NTS ZTS