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:
parent
3a8da8ebdf
commit
d733d752db
17
man.spec
17
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 ||:
|
||||
|
Loading…
Reference in New Issue
Block a user