!11 [sync] PR-9: 删除rpath解决安全编译问题
From: @openeuler-sync-bot Reviewed-by: @small_leek Signed-off-by: @small_leek
This commit is contained in:
commit
d3bd498b56
@ -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.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user