diff --git a/rpcbind.changes b/rpcbind.changes index af40808..7126c2e 100644 --- a/rpcbind.changes +++ b/rpcbind.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 2 13:58:57 CEST 2017 - kukuk@suse.de + +- Adjust for new system user/group RPMs + ------------------------------------------------------------------- Tue Nov 22 08:27:10 CET 2016 - kukuk@suse.de diff --git a/rpcbind.spec b/rpcbind.spec index 7aa3f20..48c2f6c 100644 --- a/rpcbind.spec +++ b/rpcbind.spec @@ -1,7 +1,7 @@ # # spec file for package rpcbind # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -36,6 +36,9 @@ BuildRequires: tcpd-devel BuildRequires: pkgconfig(libsystemd) PreReq: %fillup_prereq Requires(pre): /usr/sbin/useradd +%if 0%{?suse_version} >= 1330 +Requires(pre): group(nobody) +%endif Patch1: 0001-systemd-unit-files.patch Patch2: 0002-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch Patch3: 0003-Delete-the-unix-socket-only-if-we-have-created-it.patch @@ -115,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT %service_add_pre %{name}.service %{name}.socket # Add "rpc" user -getent passwd rpc >/dev/null || /usr/sbin/useradd -r -g nogroup -d /var/lib/empty -s /sbin/nologin -c "user for rpcbind" rpc +getent passwd rpc >/dev/null || /usr/sbin/useradd -r -g nobody -d /var/lib/empty -s /sbin/nologin -c "user for rpcbind" rpc exit 0 %preun