From d733d752db6abb3063ef9b391a88a7261efa88edc8d9169d3964d853baaeab04 Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 9 Nov 2018 13:49:28 +0000 Subject: [PATCH] bsc#1115406 --- also run the systemd rpm macros as well OBS-URL: https://build.opensuse.org/package/show/Base:System/man?expand=0&rev=91 --- man.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/man.spec b/man.spec index 36bbc62..12f8d0b 100644 --- a/man.spec +++ b/man.spec @@ -260,20 +260,35 @@ fi %pre test -d var/catman/ && rm -rf var/catman/ || true +%if 0%{suse_version} >= 1500 +%service_add_pre man-db-create.service mandb.service mandb.timer +%else %service_add_pre man-db-create.service +%endif %post %{?tmpfiles_create:%tmpfiles_create %{_libexecdir}/tmpfiles.d/man-db.conf} %{fillup_only -an cron} /sbin/ldconfig +%if 0%{suse_version} >= 1500 +%service_add_post man-db-create.service mandb.service mandb.timer +%else %service_add_post man-db-create.service +%endif %preun +%if 0%{suse_version} >= 1500 +%service_del_preun man-db-create.service mandb.service mandb.timer +%else %service_del_preun man-db-create.service +%endif %postun /sbin/ldconfig -%service_del_postun man-db-create.service +%if 0%{suse_version} >= 1500 +%else +%service_del_postun man-db-create.service mandb.service mandb.timer +%endif %posttrans test -d /var/cache/man && mandb --quiet --create ||: