| |
@@ -4,7 +4,7 @@
|
| |
Summary: Tools for searching and reading man pages
|
| |
Name: man-db
|
| |
Version: 2.7.6.1
|
| |
- Release: 5%{?dist}
|
| |
+ Release: 7%{?dist}
|
| |
# GPLv2+ .. man-db
|
| |
# GPLv3+ .. gnulib
|
| |
License: GPLv2+ and GPLv3+
|
| |
@@ -14,6 +14,7 @@
|
| |
Source0: http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
|
| |
Source1: man-db.crondaily
|
| |
Source2: man-db.sysconfig
|
| |
+ Source3: man-db-cache-update.service
|
| |
Patch0: man-db-2.7.6.1-change-owner-of-man-cache.patch
|
| |
|
| |
# http://lists.nongnu.org/archive/html/man-db-devel/2017-01/msg00013.html
|
| |
@@ -26,6 +27,9 @@
|
| |
Provides: bundled(gnulib) = %{gnulib_ver}
|
| |
|
| |
Requires: coreutils, grep, groff-base, gzip, less
|
| |
+ # for file trigger scriptlets
|
| |
+ Requires: systemd
|
| |
+ BuildRequires: systemd
|
| |
BuildRequires: gdbm-devel, gettext, groff, less, libpipeline-devel, zlib-devel
|
| |
BuildRequires: po4a, perl-interpreter, perl-version
|
| |
|
| |
@@ -89,6 +93,9 @@
|
| |
# config for tmpfiles.d
|
| |
install -D -p -m 0644 init/systemd/man-db.conf $RPM_BUILD_ROOT/usr/lib/tmpfiles.d/.
|
| |
|
| |
+ # man-db-cache-update.service
|
| |
+ install -D -p -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/man-db-cache-update.service
|
| |
+
|
| |
%find_lang %{name}
|
| |
%find_lang %{name}-gnulib
|
| |
|
| |
@@ -107,11 +114,12 @@
|
| |
|
| |
# update cache
|
| |
%transfiletriggerin -- %{_mandir}
|
| |
- MAN_NO_LOCALE_WARNING=1 /usr/bin/mandb -q
|
| |
+ /usr/bin/systemd-run /usr/bin/systemctl start man-db-cache-update
|
| |
|
| |
# update cache
|
| |
%transfiletriggerpostun -- %{_mandir}
|
| |
- MAN_NO_LOCALE_WARNING=1 /usr/bin/mandb -q
|
| |
+ /usr/bin/systemd-run /usr/bin/systemctl start man-db-cache-update
|
| |
+
|
| |
|
| |
%files -f %{name}.lang -f %{name}-gnulib.lang
|
| |
%{!?_licensedir:%global license %%doc}
|
| |
@@ -119,6 +127,7 @@
|
| |
%doc README man-db-manual.txt man-db-manual.ps ChangeLog NEWS
|
| |
%config(noreplace) %{_sysconfdir}/man_db.conf
|
| |
%config(noreplace) /usr/lib/tmpfiles.d/man-db.conf
|
| |
+ %{_unitdir}/man-db-cache-update.service
|
| |
%{_sbindir}/accessdb
|
| |
%{_bindir}/man
|
| |
%{_bindir}/whatis
|
| |
@@ -163,6 +172,14 @@
|
| |
%config(noreplace) %{_sysconfdir}/sysconfig/man-db
|
| |
|
| |
%changelog
|
| |
+ * Thu Nov 09 2017 Nikola Forró <nforro@redhat.com> - 2.7.6.1-7
|
| |
+ - move cache update to a separate service file that can prevent
|
| |
+ system shutdown/reboot
|
| |
+
|
| |
+ * Wed Nov 08 2017 Nikola Forró <nforro@redhat.com> - 2.7.6.1-6
|
| |
+ - run cache update in a transient service using systemd-run
|
| |
+ resolves #1318058
|
| |
+
|
| |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.6.1-5
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
| |
|
| |