diff --git a/man-db.spec b/man-db.spec index 04baa56f8ae10865d87a52a5b13a9491004bdbf9..2e9c8a4ed26ad58417df29729f9828bea9810d19 100644 --- a/man-db.spec +++ b/man-db.spec @@ -2,7 +2,7 @@ Name: man-db Version: 2.8.7 -Release: 9 +Release: 10 Summary: Online database for using man pages License: GPLv2+ and GPLv3+ URL: http://www.nongnu.org/man-db/ @@ -21,6 +21,7 @@ Provides: man = %{version} man-pages-reader = %{version} bundled(gnulib) Obsoletes: man < 2.0 Provides: man-db-cron Obsoletes: man-db-cron +Obsoletes: man-pages-zh-CN %description man-db is an implementation of the standard Unix documentation system accessed using the man command. @@ -68,6 +69,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 @@ -76,6 +79,7 @@ chrpath -d %{buildroot}%{_libdir}/%{name}/libmandb-%{version}.so %post # clear the old cache %{__rm} -rf %{cache}/* || : +/sbin/ldconfig # update cache %transfiletriggerin -- %{_mandir} @@ -90,6 +94,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} @@ -99,6 +104,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 +155,12 @@ fi %exclude %{_libdir}/man-db/*.la %changelog +* Wed Nov 15 2023 renhongxun - 2.8.7-10 +- Type:NA +- ID:NA +- SUG:NA +- DESC:Fix cannot find lib files + * Mon Nov 13 2023 renhongxun - 2.8.7-9 - Type:NA - ID:NA