rpms/tmux/devel tmux.spec,1.2,1.3

Sven Lankes slankes at fedoraproject.org
Sun Nov 1 19:53:17 UTC 2009


Author: slankes

Update of /cvs/pkgs/rpms/tmux/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv5768

Modified Files:
	tmux.spec 
Log Message:
Adjust group handling to match the guidelines


Index: tmux.spec
===================================================================
RCS file: /cvs/pkgs/rpms/tmux/devel/tmux.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- tmux.spec	1 Nov 2009 18:46:32 -0000	1.2
+++ tmux.spec	1 Nov 2009 19:53:17 -0000	1.3
@@ -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
 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,-)




More information about the fedora-extras-commits mailing list