%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}