!23 add so path to /etc/ld.so.conf.d when del rpath
From: @wcc_140409 Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
228ceadb16
10
man-db.spec
10
man-db.spec
@ -2,7 +2,7 @@
|
||||
|
||||
Name: man-db
|
||||
Version: 2.9.3
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Online database for using man pages
|
||||
License: GPLv2+ and GPLv3+
|
||||
URL: http://www.nongnu.org/man-db/
|
||||
@ -66,6 +66,8 @@ chrpath -d %{buildroot}%{_sbindir}/accessdb
|
||||
chrpath -d %{buildroot}%{_libexecdir}/%{name}/*
|
||||
chrpath -d %{buildroot}%{_bindir}/{*man*,whatis,lexgrog}
|
||||
chrpath -d %{buildroot}%{_libdir}/%{name}/libmandb-%{version}.so
|
||||
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
||||
echo "/usr/lib64/man-db" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||
|
||||
%pre
|
||||
|
||||
@ -74,6 +76,7 @@ chrpath -d %{buildroot}%{_libdir}/%{name}/libmandb-%{version}.so
|
||||
%post
|
||||
# clear the old cache
|
||||
%{__rm} -rf %{cache}/* || :
|
||||
/sbin/ldconfig
|
||||
|
||||
# update cache
|
||||
%transfiletriggerin -- %{_mandir}
|
||||
@ -88,6 +91,7 @@ if [ -x /usr/bin/systemd-run -a -x /usr/bin/systemctl ]; then
|
||||
fi
|
||||
|
||||
%postun
|
||||
/sbin/ldconfig
|
||||
|
||||
%files -f %{name}.lang -f %{name}-gnulib.lang
|
||||
%{!?_licensedir:%global license %%doc}
|
||||
@ -97,6 +101,7 @@ fi
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
||||
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
|
||||
%config(noreplace) %{_sysconfdir}/cron.daily/man-db.cron
|
||||
%config(noreplace) /etc/ld.so.conf.d/*
|
||||
%{_unitdir}/man-db-cache-update.service
|
||||
%{_sbindir}/accessdb
|
||||
%{_bindir}/man
|
||||
@ -149,6 +154,9 @@ fi
|
||||
%exclude %{_libdir}/man-db/*.la
|
||||
|
||||
%changelog
|
||||
* Wed Sep 8 2021 wuchaochao <wuchaochao4@huawei.com> - 2.9.3-5
|
||||
- add so path to /etc/ld.so.conf.d when del rpath
|
||||
|
||||
* Sat Sep 4 2021 wuchaochao <wuchaochao4@huawei.com> - 2.9.3-4
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user