Adjust group handling to match the guidelines

This commit is contained in:
Sven Lankes 2009-11-01 19:53:17 +00:00
parent 580ca581cb
commit c6477146de

View File

@ -8,8 +8,7 @@ Group: Applications/System
# 3 clause BSD licensed. # 3 clause BSD licensed.
License: ISC and BSD License: ISC and BSD
URL: http://sourceforge.net/projects/tmux URL: http://sourceforge.net/projects/tmux
Requires(pre): /usr/sbin/groupadd Requires(pre): shadow-utils
Requires(preun): /usr/sbin/groupdel
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# This first patch creates MANDIR in the GNUmakefile. This has been sent # This first patch creates MANDIR in the GNUmakefile. This has been sent
# upstream via email but upstream replied and said would not change. # 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} rm -rf %{buildroot}
%pre %pre
%{_sbindir}/groupadd -r tmux &>/dev/null || : getent group tmux >/dev/null || groupadd -r tmux
%postun
%{_sbindir}/groupdel tmux || :
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)