73d3e7c0eb
- Avoid useless use of cat - Simplify %sysusers_requires - Drop shebang, rpm passes it to /bin/sh itself OBS-URL: https://build.opensuse.org/request/show/835782 OBS-URL: https://build.opensuse.org/package/show/Base:System/sysuser-tools?expand=0&rev=30
21 lines
525 B
Plaintext
21 lines
525 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>" to build section
|
|
#
|
|
# add "%pre -f <account>.pre" to spec file
|
|
#
|
|
###
|
|
|
|
%sysusers_requires Requires(pre): sysuser-shadow \
|
|
Suggests: shadow
|
|
|
|
%sysusers_generate_pre() \
|
|
%{_prefix}/lib/rpm/sysusers-generate-pre "%1" > "%2".pre
|