Remove rpath

(cherry picked from commit 68cb5926a370608340d3a8d7982ef9d01a61d62d)
This commit is contained in:
wk333 2022-08-25 10:15:11 +08:00 committed by openeuler-sync-bot
parent daf343d356
commit 3a180631f4

View File

@ -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 <wangkai385@h-partners.com> - 1.13.1-6
- Remove rpath
* Web 02 Jun 2021 zhaoyao<zhaoyao32@huawei.com> - 1.13.1-5
- Add gcc build require.