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