On Fri, 2017-03-03 at 13:38 +0100, Dr. Werner Fink wrote:
Did you try with Requires(pre): shadow (instead of /usr/sbin/groupadd) ?
This was my first thought. Nevertheless, the resolver like zypper or that of the auto build system should handle this. Beside this I wonder why shadow had been skipped from the pre-installed packages as well. And if a (pre)require can not be resolved I expect an error not only for /usr/sbin/groupadd but also for the other paths I used in the spec file.
OBS for most parts ignores File-Requires as far as I remember. A couple of them are translated using project configuration: FileProvides: /usr/sbin/groupadd shadow ^^^ NOTE: until a couple minutes ago this translated to pwdutils this should also be valid, as pwdutils is provided by shadow FileProvides: /usr/sbin/useradd shadow FileProvides: /sbin/netconfig sysconfig-netconfig FileProvides: /usr/bin/docbook2man docbook-utils FileProvides: /usr/bin/mkisofs cdrkit-cdrtools-compat #FileProvides: /usr/bin/mkisofs mkisofs FileProvides: /usr/sbin/lockdev lockdev FileProvides: /bin/logger util-linux-systemd FileProvides: /bin/csh tcsh FileProvides: /usr/bin/csh tcsh FileProvides: /usr/bin/mimencode metamail FileProvides: /usr/bin/pkg-config pkg-config FileProvides: /usr/bin/sg_inq sg3_utils FileProvides: /usr/bin/tput ncurses-utils FileProvides: /usr/bin/eu-nm elfutils FileProvides: /usr/bin/Xvfb xorg-x11-server FileProvides: /usr/bin/xmllint libxml2-tools FileProvides: /sbin/setcap libcap-progs FileProvides: /usr/bin/setfacl acl FileProvides: /usr/bin/fipscheck fipscheck FileProvides: /usr/bin/python python-base Cheers Dominique