Add the sysusers compat parts

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-02-07 16:34:30 +01:00
commit ced9237a14
6 changed files with 135 additions and 3 deletions

10
macros.sysusers Normal file
View file

@ -0,0 +1,10 @@
# RPM macros for packages creating system accounts
#
# Turn a sysusers.d file into macros specified by
# https://docs.fedoraproject.org/en-US/packaging-guidelines/UsersAndGroups/#_dynamic_allocation
%sysusers_requires_compat Requires(pre): shadow-utils
%sysusers_create_compat() \
%(%{_rpmconfigdir}/sysusers.generate-pre.sh %{?*}) \
%{nil}