remove rpath of libldb's binary files
This commit is contained in:
parent
9ded4ece35
commit
cb5b4c2726
27
libldb.spec
27
libldb.spec
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
Name: libldb
|
Name: libldb
|
||||||
Version: 2.1.4
|
Version: 2.1.4
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: A schema-less, ldap like, API and database
|
Summary: A schema-less, ldap like, API and database
|
||||||
Requires: libtalloc%{?_isa} >= %{talloc_version}
|
Requires: libtalloc%{?_isa} >= %{talloc_version}
|
||||||
Requires: libtdb%{?_isa} >= %{tdb_version}
|
Requires: libtdb%{?_isa} >= %{tdb_version}
|
||||||
@ -23,6 +23,7 @@ BuildRequires: gcc libtalloc-devel >= %{talloc_version} libtdb-devel >= %{tdb_ve
|
|||||||
BuildRequires: libtevent-devel >= %{tevent_version} lmdb-devel >= 0.9.16 popt-devel
|
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: libxslt docbook-style-xsl python3-devel python3-tdb python3-talloc-devel
|
||||||
BuildRequires: python3-tevent doxygen openldap-devel libcmocka-devel gnupg2
|
BuildRequires: python3-tevent doxygen openldap-devel libcmocka-devel gnupg2
|
||||||
|
BuildRequires: chrpath
|
||||||
|
|
||||||
Provides: bundled(libreplace) ldb-tools
|
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
|
Obsoletes: python2-ldb < 2.0.5-1 python2-ldb-devel < 2.0.5-1 pyldb < 1.1.26-2 ldb-tools
|
||||||
@ -98,6 +99,23 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
|||||||
cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir}
|
cp -a apidocs/man/* $RPM_BUILD_ROOT/%{_mandir}
|
||||||
rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
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/libldb-mdb-int.so
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/ldb/libldb-tdb-int.so
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/ldb/libldb-key-value.so
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/ldb/modules/ldb/tdb.so
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/ldb/modules/ldb/ldb.so
|
||||||
|
chrpath -d %{buildroot}%{_libdir}/ldb/modules/ldb/mdb.so
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
|
echo "%{_libdir}/ldb" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
%files
|
%files
|
||||||
@ -107,6 +125,7 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
|||||||
%{_bindir}/ldbmodify
|
%{_bindir}/ldbmodify
|
||||||
%{_bindir}/ldbrename
|
%{_bindir}/ldbrename
|
||||||
%{_bindir}/ldbsearch
|
%{_bindir}/ldbsearch
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
%dir %{_libdir}/ldb
|
%dir %{_libdir}/ldb
|
||||||
%{_libdir}/libldb.so.*
|
%{_libdir}/libldb.so.*
|
||||||
%{_libdir}/ldb/libldb-key-value.so
|
%{_libdir}/ldb/libldb-key-value.so
|
||||||
@ -154,6 +173,12 @@ rm -f $RPM_BUILD_ROOT/%{_mandir}/man3/_*
|
|||||||
%{_mandir}/man1/ldbsearch.1.*
|
%{_mandir}/man1/ldbsearch.1.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 07 2021 gaihuiying <gaihuiying1@huawei.com> - 2.1.4-4
|
||||||
|
- Type:requirement
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:remove rpath of libldb's binary files
|
||||||
|
|
||||||
* Mon Jul 19 2021 lijingyuan <lijingyuan3@huawei.com> - 2.1.4-3
|
* Mon Jul 19 2021 lijingyuan <lijingyuan3@huawei.com> - 2.1.4-3
|
||||||
- Type:requirement
|
- Type:requirement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user