diff --git a/mongo-c-driver-1.29.2.tar.gz b/mongo-c-driver-1.30.0.tar.gz similarity index 49% rename from mongo-c-driver-1.29.2.tar.gz rename to mongo-c-driver-1.30.0.tar.gz index 25da64c3e00fabfd12be5a07b0cbc6ef4fd446c6..6ff38797bdadd703104fa1a58a62038098625dbd 100644 Binary files a/mongo-c-driver-1.29.2.tar.gz and b/mongo-c-driver-1.30.0.tar.gz differ diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec index 68f458895ea35cf341a5d806a147d13df476f5b0..1e464980eb19cf8183579629d04ceb6011307248 100644 --- a/mongo-c-driver.spec +++ b/mongo-c-driver.spec @@ -1,13 +1,13 @@ %global with_tests 0%{?_with_tests:1} Name: mongo-c-driver Summary: Client library written in C for MongoDB -Version: 1.29.2 +Version: 1.30.0 Release: 1 License: Apache-2.0 and ISC and MIT and zlib URL: https://github.com/mongodb/mongo-c-driver Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.gz -BuildRequires: cmake >= 3.1 openssl-devel pkgconfig(libsasl2) pkgconfig(zlib) gcc -BuildRequires: pkgconfig(snappy) pkgconfig(icu-uc) perl-interpreter python3 python3-sphinx +BuildRequires: cmake >= 3.1 openssl-devel pkgconfig(libsasl2) pkgconfig(libzstd) pkgconfig(libutf8proc) gcc +BuildRequires: pkgconfig(snappy) perl-interpreter python3 python3-sphinx BuildRequires: chrpath %if %{with_tests} BuildRequires: mongodb-server openssl @@ -23,7 +23,7 @@ building, parsing, and iterating BSON documents. %package devel Summary: Header files and development libraries for %{name} -Requires: mongo-c-driver = %{version}-%{release} pkgconfig cmake-filesystem +Requires: mongo-c-driver = %{version}-%{release} %description devel The mongo-c-driver-devel package includes header files and libraries necessary @@ -40,7 +40,7 @@ building, parsing, and iterating BSON documents. %package -n libbson-devel Summary: Development files for mongo-c-driver -Requires: libbson = %{version}-%{release} pkgconfig cmake-filesystem +Requires: libbson = %{version}-%{release} %description -n libbson-devel The libbson-devel package includes header files and libraries necessary @@ -59,30 +59,33 @@ Files for help with mongo-c-driver. %build %cmake -DENABLE_BSON:STRING=ON -DENABLE_MONGOC:BOOL=ON -DENABLE_SHM_COUNTERS:BOOL=ON \ - -DENABLE_SSL:STRING=OPENSSL -DENABLE_SASL:STRING=CYRUS -DENABLE_ICU:STRING=ON \ + -DENABLE_SSL:STRING=OPENSSL -DENABLE_SASL:STRING=CYRUS -DUSE_BUNDLED_UTF8PROC:BOOL=OFF \ -DENABLE_AUTOMATIC_INIT_AND_CLEANUP:BOOL=OFF -DENABLE_CRYPTO_SYSTEM_PROFILE:BOOL=ON \ - -DENABLE_MAN_PAGES:BOOL=ON -DENABLE_TESTS:BOOL=ON -DENABLE_EXAMPLES:BOOL=OFF \ - -DENABLE_UNINSTALL:BOOL=OFF + -DENABLE_MAN_PAGES:BOOL=ON -DENABLE_EXAMPLES:BOOL=OFF \ + -DENABLE_UNINSTALL:BOOL=OFF \ +%if %{with_tests} + -DENABLE_TESTS:BOOL=ON \ + -DENABLE_STATIC:BOOL=ON \ +%else + -DENABLE_TESTS:BOOL=OFF \ + -DENABLE_STATIC:BOOL=OFF \ +%endif +%{nil} %cmake_build %install %cmake_install + +%if %{with_tests} find %{buildroot}%{_libdir} -type f -name "*static*" -exec rm -f {} ';' +%endif chrpath -d %{buildroot}%{_bindir}/mongoc-stat -mkdir -p %{buildroot}/etc/ld.so.conf.d -echo "/home/abuild/rpmbuild/BUILD/mongo-c-driver-%{version}/src/libmongoc:/home/abuild/rpmbuild/BUILD/mongo-c-driver-%{version}/src/libbson" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf rm -rf %{buildroot}%{_datadir}/%{name} -%post -/sbin/ldconfig - -%postun -/sbin/ldconfig - -%check %if %{with_tests} +%check install -d dbtest mongod --journal --ipv6 --unixSocketPrefix /tmp --logpath $PWD/server.log \ --pidfilepath $PWD/server.pid --dbpath $PWD/dbtest --fork @@ -98,7 +101,6 @@ exit $ret %license COPYING %doc THIRD_PARTY_NOTICES %{_libdir}/libmongoc-1.0.so.* -%config(noreplace) /etc/ld.so.conf.d/* %files devel %doc src/libmongoc/examples @@ -125,6 +127,10 @@ exit $ret %{_mandir}/man3/* %changelog +* Sat Feb 15 2025 Funda Wang - 1.30.0-1 +- update to 1.30.0 +- drop useless ldconfig + * Wed Jan 08 2025 wangkai <13474090681@163.com> - 1.29.2-1 - Update to 1.29.2