X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=blobdiff_plain;f=macros.systemd;h=a6219603618a7152c0a0e2dd2b888083e3c97461;hp=8eb65cfde7b54d9035dd80679fb2dde4a7ce1766;hb=44acd4f502565ebe81a9aa7b49406dd2c7428f86;hpb=b5115bb76a6795a89fadf5f4e7161f26203c7678 diff --git a/macros.systemd b/macros.systemd index 8eb65cf..a621960 100644 --- a/macros.systemd +++ b/macros.systemd @@ -11,7 +11,15 @@ %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 /usr/lib/systemd\ +%exclude %{systemdtmpfilesdir}\ +%{nil}