]> TLD Linux GIT Repositories - packages/rpm-tld-macros.git/blobdiff - macros.systemd
- keep system paths, add macro for excluding them from package contents
[packages/rpm-tld-macros.git] / macros.systemd
index 8eb65cfde7b54d9035dd80679fb2dde4a7ce1766..312078ccdf5830181e524946235c8320912b7467 100644 (file)
 %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}