Fix cannot find lib files

This commit is contained in:
renxichen 2023-11-15 17:30:01 +08:00
parent 4f03cbbab9
commit 865af7ab78

View File

@ -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 <renhongxun@h-partners.com> - 2.8.7-10
- Type:NA
- ID:NA
- SUG:NA
- DESC:Fix cannot find lib files
* Mon Nov 13 2023 renhongxun <renhongxun@h-partners.com> - 2.8.7-9
- Type:NA
- ID:NA