sysuser-tools/macros.sysusers
Dominique Leuenberger 8545e7eac4 Accepting request 901117 from home:dimstar:Factory
- Bump version up to 3.1. The --replace parameter only appeared in
  systemd 238, so we need to ensure to get the update order correct
  for sysuser-generate when using the 3rd command line parameters:
  * systemd -> sysuser-tools -> system-{user|group}-FOO.
- Add Conflicts systemd < 238 to sysuser-shadow
- update sysuser_requires to request sysuser-shadow 3.1

OBS-URL: https://build.opensuse.org/request/show/901117
OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=45
2021-06-21 10:02:40 +00:00

25 lines
775 B
Plaintext

# -*- Mode: makefile; indent-tabs-mode: t -*- */
# RPM macros for packages creating system accounts
#
###
#
# When a package creates a system account, it should use the following macros:
#
# add %sysusers_requires in the package section
#
# add "%sysusers_generate_pre <source file> <account> [<config>]" to build section
#
## <source file> is the source file as defined in the spec file header
## <account> is just a random name, the output file will be "<account>.pre"
## <config> is the name of the configuration file as stored in
## /usr/lib/sysusers.d/<config>
#
# add "%pre -f <account>.pre" to spec file
#
###
%sysusers_requires Requires(pre): sysuser-shadow >= 3.1
%sysusers_generate_pre() \
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" "%3" > "%2".pre