From 354c031ed791c104c9242a0166be3e0f2e97cf09 Mon Sep 17 00:00:00 2001 From: Tibbs Date: Apr 06 2018 18:15:07 +0000 Subject: Add note that a systemd build dependency is required. --- diff --git a/Packaging:Tmpfiles.d.mw b/Packaging:Tmpfiles.d.mw index 4782ab7..34365b4 100644 --- a/Packaging:Tmpfiles.d.mw +++ b/Packaging:Tmpfiles.d.mw @@ -3,7 +3,7 @@ tmpfiles.d is a service for managing temporary files and runtime directories for == tmpfiles.d configuration == -Asking the tmpfiles.d mechanism to create directories for you just involves dropping a file into %{_tmpfilesdir}. +Asking the tmpfiles.d mechanism to create directories for you just involves dropping a file into %{_tmpfilesdir}. You will need a build dependency on systemd in order to make use of this macro. For example, if the package needs a few directories to be created in /run in order for it to run, the packager needs to create a file named %{name}.conf that is installed as %{_tmpfilesdir}/%{name}.conf. The file has one or more lines of the following format: @@ -32,6 +32,9 @@ Information on other options is available on the [http://0pointer.de/public/syst In the spec file, the packager needs to install the tmpfiles.d conf file into the %{_tmpfilesdir} directory and also make sure the directory is included in the rpm.
+# For the _tmpfilesdir macro.
+BuildRequires: systemd
+
 # tmpfiles.d configuration for the /run directory
 Source1:  %{name}-tmpfiles.conf
 [...]