From edc1b47de720ef979fed9c644159ae986aee42d1 Mon Sep 17 00:00:00 2001 From: Debarshi Ray Date: May 19 2023 12:46:38 +0000 Subject: UsersAndGroups: Use %sysusers_requires_compat to specify Requires(pre) ... for %sysusers_create_compat. Fallout from 6d066acbb16452e1befc2f384d2f14bab9f54361 https://pagure.io/packaging-committee/pull-request/1203 --- diff --git a/guidelines/modules/ROOT/pages/UsersAndGroups.adoc b/guidelines/modules/ROOT/pages/UsersAndGroups.adoc index a756bed..f8195ce 100644 --- a/guidelines/modules/ROOT/pages/UsersAndGroups.adoc +++ b/guidelines/modules/ROOT/pages/UsersAndGroups.adoc @@ -145,11 +145,14 @@ u munge - "Runs Uid 'N' Gid Emporium" /run/munge /sbin/nologin ``` In the specfile, add a BuildRequires for systemd-rpm-macros, install the sysusers file, - and use the `%sysusers_create_compat` macro to consume it in the `%pre` section -(in this example the sysusers config file is `Source3` of the specfile): + use the `%sysusers_create_compat` macro to consume it in the `%pre` section +(in this example the sysusers config file is `Source3` of the specfile), and the +`%sysusers_requires_compat` macro to specify the runtime dependencies for the `%pre` +section: ``` [...] BuildRequires: systemd-rpm-macros +%{?sysusers_requires_compat} [...] %install