X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=blobdiff_plain;f=macros.systemd;h=312078ccdf5830181e524946235c8320912b7467;hp=8eb65cfde7b54d9035dd80679fb2dde4a7ce1766;hb=da129f52783c19ed6eba3558e19385061f6c7da2;hpb=2dad0bf9a370813b9c10acc48f5f225810cf3ab3 diff --git a/macros.systemd b/macros.systemd index 8eb65cf..312078c 100644 --- a/macros.systemd +++ b/macros.systemd @@ -11,7 +11,16 @@ %systemd_trigger %{nil} %systemd_post %{nil} %systemd_preun %{nil} -%systemdunitdir %{nil} -%systemduserunitdir %{nil} -%systemdtmpfilesdir %{nil} + +# Keep paths for systemd related files +%systemdunitdir /lib/systemd/system +%systemduserunitdir /usr/lib/systemd/user +%systemdtmpfilesdir /usr/lib/tmpfiles.d %journal_catalog_update %{nil} + +# Macro for excluding above paths from package contents +%exclude_systemd_files\ +%exclude %{systemdunitdir}\ +%exclude %{systemduserunitdir}\ +%exclude %{systemdtmpfilesdir}\ +%{nil}