spec: add systemd scriptlets for the rcm subpackage

Fedora packaging guidelines require that we use scriptlets when shipping
unit files:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_systemd
the rcm subpackage needs to use these as well as the main package.
This commit is contained in:
Martin Sehnoutka 2020-03-18 08:44:41 +01:00 committed by Tom Gundersen
parent e70e6a72a0
commit 76b236796c

View file

@ -151,6 +151,15 @@ RCM-specific version of osbuild-composer not intended for public usage.
%files rcm
%{_unitdir}/osbuild-rcm.socket
%post rcm
%systemd_post osbuild-rcm.socket
%preun rcm
%systemd_preun osbuild-rcm.socket
%postun rcm
%systemd_postun_with_restart osbuild-rcm.socket
%package tests
Summary: Integration tests
Requires: osbuild-composer