From c6477146de9c47c3cbd1c6949bc27ce8eaeff01b Mon Sep 17 00:00:00 2001 From: Sven Lankes Date: Nov 01 2009 19:53:17 +0000 Subject: Adjust group handling to match the guidelines --- diff --git a/tmux.spec b/tmux.spec index d240c68..7ac88e7 100644 --- a/tmux.spec +++ b/tmux.spec @@ -8,8 +8,7 @@ Group: Applications/System # 3 clause BSD licensed. License: ISC and BSD URL: http://sourceforge.net/projects/tmux -Requires(pre): /usr/sbin/groupadd -Requires(preun): /usr/sbin/groupdel +Requires(pre): shadow-utils Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz # This first patch creates MANDIR in the GNUmakefile. This has been sent # upstream via email but upstream replied and said would not change. @@ -49,10 +48,7 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/%{name} rm -rf %{buildroot} %pre -%{_sbindir}/groupadd -r tmux &>/dev/null || : - -%postun -%{_sbindir}/groupdel tmux || : +getent group tmux >/dev/null || groupadd -r tmux %files %defattr(-,root,root,-)