-%define dbus_user_uid 81
-
%bcond_with coverage
# Do not create provides from extension .so files because the main package
Source7: dbus.sh
Source1001: dbus.manifest
# COMMON1-END
-Requires(pre): /usr/sbin/groupadd /usr/sbin/useradd
+Requires: security-config
+Requires(pre): /usr/bin/getent
+Requires(pre): /usr/sbin/useradd
+Requires(pre): /usr/sbin/groupadd
Provides: dbus-1
%description
%pre
# Add the "dbus" user and group
-/usr/sbin/groupadd -r -g %{dbus_user_uid} dbus 2>/dev/null || :
-/usr/sbin/useradd -c 'System message bus' -u %{dbus_user_uid} -g %{dbus_user_uid} \
- -s /sbin/nologin -r -d '/' dbus 2> /dev/null || :
+getent group dbus > /dev/null || /usr/sbin/groupadd -r -g 81 dbus 2> /dev/null || :
+getent passwd dbus > /dev/null || /usr/sbin/useradd -c 'System message bus' -u 81 -g 81 \
+ -s /sbin/nologin -r -d '/' dbus 2> /dev/null || :
%post -n dbus-libs-extension-kdbus
pushd %{_libdir}