From: Marcin Krol Date: Sat, 20 Mar 2021 10:02:54 +0000 (+0100) Subject: - keep system paths, add macro for excluding them from package contents X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm-tld-macros.git;a=commitdiff_plain;h=da129f52783c19ed6eba3558e19385061f6c7da2 - keep system paths, add macro for excluding them from package contents --- 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}