#828 Use systemd-rpm-macros for BuildRequires
Merged 5 months ago by tibbs. Opened 5 months ago by zbyszek.
zbyszek/packaging-committee systemd-rpm-macros  into  master

@@ -284,8 +284,8 @@ 

  The systemd package provides a set of helper macros to handle systemd scriptlet operations. These macros support systemd "presets", as documented in Features/PackagePresets. The `+%systemd_requires+` macro is a shortcut for listing the per-scriptlet dependencies on systemd.

  

  ....

+ BuildRequires: systemd-rpm-macros

  %{?systemd_requires}

- BuildRequires: systemd

  

  [...]

  %post

@@ -314,8 +314,8 @@ 

  There are additional macros for user units (those installed under `+%_userunitdir+`) that should be used similarly to those for system units. These enable and disable user units according to presets, and are `+%systemd_user_post+` (to be used in `+%post+`) and `+%systemd_user_preun+` (to be used in `+%preun+`).

  

  ....

+ BuildRequires: systemd-rpm-macros

  %{?systemd_requires}

- BuildRequires: systemd

  

  [...]

  %post

@@ -345,7 +345,7 @@ 

  Please note that in order for the `+%{_unitdir}+` macro to exist, your package must have:

  

  ....

- BuildRequires: systemd

+ BuildRequires: systemd-rpm-macros

  ....

  

  === %files section

@@ -35,7 +35,7 @@ 

  

  ....

  # For the _tmpfilesdir macro.

- BuildRequires: systemd

+ BuildRequires: systemd-rpm-macros

  

  # tmpfiles.d configuration for the /run directory

  Source1:  %{name}-tmpfiles.conf