From 3a180631f46f592f52541be23d32af9e76c0ab05 Mon Sep 17 00:00:00 2001 From: wk333 <13474090681@163.com> Date: Thu, 25 Aug 2022 10:15:11 +0800 Subject: [PATCH] Remove rpath (cherry picked from commit 68cb5926a370608340d3a8d7982ef9d01a61d62d) --- mongo-c-driver.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/mongo-c-driver.spec b/mongo-c-driver.spec index bae3e07..c19757a 100644 --- a/mongo-c-driver.spec +++ b/mongo-c-driver.spec @@ -2,12 +2,13 @@ Name: mongo-c-driver Summary: Client library written in C for MongoDB Version: 1.13.1 -Release: 5 +Release: 6 License: ASL 2.0 and ISC and MIT and zlib URL: https://github.com/mongodb/mongo-c-driver Source0: https://github.com/mongodb/mongo-c-driver/releases/download/1.13.1/mongo-c-driver-1.13.1.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: chrpath %if %{with_tests} BuildRequires: mongodb-server openssl %endif @@ -68,6 +69,16 @@ Files for help with mongo-c-driver. %delete_la_and_a find %{buildroot}%{_libdir} -type f -name "*static*" -exec rm -f {} ';' +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 + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + %check %if %{with_tests} install -d dbtest @@ -85,6 +96,7 @@ exit $ret %doc COPYING %doc THIRD_PARTY_NOTICES %{_libdir}/libmongoc-1.0.so.* +%config(noreplace) /etc/ld.so.conf.d/* %files devel %doc src/libmongoc/examples @@ -109,6 +121,9 @@ exit $ret %doc NEWS %changelog +* Thu Aug 25 2022 wangkai - 1.13.1-6 +- Remove rpath + * Web 02 Jun 2021 zhaoyao - 1.13.1-5 - Add gcc build require. -- Gitee