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
|
%pre
|
||||||
test -d var/catman/ && rm -rf var/catman/ || true
|
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
|
%service_add_pre man-db-create.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%{?tmpfiles_create:%tmpfiles_create %{_libexecdir}/tmpfiles.d/man-db.conf}
|
%{?tmpfiles_create:%tmpfiles_create %{_libexecdir}/tmpfiles.d/man-db.conf}
|
||||||
%{fillup_only -an cron}
|
%{fillup_only -an cron}
|
||||||
/sbin/ldconfig
|
/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
|
%service_add_post man-db-create.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%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
|
%service_del_preun man-db-create.service
|
||||||
|
%endif
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
/sbin/ldconfig
|
/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
|
%posttrans
|
||||||
test -d /var/cache/man && mandb --quiet --create ||:
|
test -d /var/cache/man && mandb --quiet --create ||:
|
||||||
|
Loading…
Reference in New Issue
Block a user