From bc51404c236ba0936fd3ec13c0706e1ceab7bb15 Mon Sep 17 00:00:00 2001 From: orange-snn Date: Tue, 10 Mar 2020 21:22:33 +0800 Subject: [PATCH] remove rpath and runpath of exec files and libraries --- libldb.spec | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/libldb.spec b/libldb.spec index cad7dc8..c5e34f4 100644 --- a/libldb.spec +++ b/libldb.spec @@ -6,7 +6,7 @@ Name: libldb Version: 2.0.8 -Release: 1 +Release: 2 Summary: A schema-less, ldap like, API and database Requires: libtalloc%{?_isa} >= %{talloc_version} Requires: libtdb%{?_isa} >= %{tdb_version} @@ -18,7 +18,7 @@ Source: http://samba.org/ftp/ldb/ldb-%{version}.tar.gz BuildRequires: gcc libtalloc-devel >= %{talloc_version} libtdb-devel >= %{tdb_version} BuildRequires: libtevent-devel >= %{tevent_version} lmdb-devel >= 0.9.16 popt-devel BuildRequires: libxslt docbook-style-xsl python3-devel python3-tdb python3-talloc-devel -BuildRequires: python3-tevent doxygen openldap-devel libcmocka-devel +BuildRequires: python3-tevent doxygen openldap-devel libcmocka-devel chrpath Provides: bundled(libreplace) ldb-tools Obsoletes: python2-ldb < 2.0.5-1 python2-ldb-devel < 2.0.5-1 pyldb < 1.1.26-2 ldb-tools @@ -94,6 +94,19 @@ make install DESTDIR=$RPM_BUILD_ROOT cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir} rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* +#remove rpath +chrpath -d %{buildroot}%{_bindir}/ldbrename +chrpath -d %{buildroot}%{_bindir}/ldbedit +chrpath -d %{buildroot}%{_bindir}/ldbmodify +chrpath -d %{buildroot}%{_bindir}/ldbadd +chrpath -d %{buildroot}%{_bindir}/ldbdel +chrpath -d %{buildroot}%{_bindir}/ldbsearch +chrpath -d %{buildroot}%{_libdir}/ldb/*.so +chrpath -d %{buildroot}%{_libdir}/ldb/modules/ldb/*.so + +mkdir -p %{buildroot}/etc/ld.so.conf.d +echo "/usr/lib64/ldb" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf + %ldconfig_scriptlets %files @@ -113,6 +126,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %dir %{_libdir}/ldb/modules/ldb %{_libdir}/ldb/modules/ldb/*.so %{_libdir}/ldb/libldb-cmdline.so +%config(noreplace) /etc/ld.so.conf.d/* %files devel %{_includedir}/ldb_module.h @@ -150,6 +164,9 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_* %{_mandir}/man1/ldbsearch.1.* %changelog +* Tue Mar 10 2020 huzunhao - 2.0.8-2 +- remove rpath and runpath of exec files and libraries + * Wed Feb 12 2020 openEuler Buildteam - 2.0.8-1 - Type:update - ID:NA -- Gitee