SHA256
1
0
forked from pool/man

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
This commit is contained in:
Dr. Werner Fink 2018-11-09 13:49:28 +00:00 committed by Git OBS Bridge
parent 3a8da8ebdf
commit d733d752db

View File

@ -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 ||: