!49 Fix cannot find lib files
From: @renxichen Reviewed-by: @znzjugod Signed-off-by: @znzjugod
This commit is contained in:
commit
d207bf1348
14
man-db.spec
14
man-db.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: man-db
|
Name: man-db
|
||||||
Version: 2.8.7
|
Version: 2.8.7
|
||||||
Release: 9
|
Release: 10
|
||||||
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/
|
||||||
@ -21,6 +21,7 @@ Provides: man = %{version} man-pages-reader = %{version} bundled(gnulib)
|
|||||||
Obsoletes: man < 2.0
|
Obsoletes: man < 2.0
|
||||||
Provides: man-db-cron
|
Provides: man-db-cron
|
||||||
Obsoletes: man-db-cron
|
Obsoletes: man-db-cron
|
||||||
|
Obsoletes: man-pages-zh-CN
|
||||||
|
|
||||||
%description
|
%description
|
||||||
man-db is an implementation of the standard Unix documentation system accessed using the man command.
|
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}%{_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
|
||||||
|
|
||||||
@ -76,6 +79,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}
|
||||||
@ -90,6 +94,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}
|
||||||
@ -99,6 +104,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 +155,12 @@ fi
|
|||||||
%exclude %{_libdir}/man-db/*.la
|
%exclude %{_libdir}/man-db/*.la
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Nov 13 2023 renhongxun <renhongxun@h-partners.com> - 2.8.7-9
|
||||||
- Type:NA
|
- Type:NA
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user