SPECS (USERS): test.spec - addusertogroup silently test

glen glen at pld-linux.org
Thu Mar 26 12:47:20 CET 2009


Author: glen                         Date: Thu Mar 26 11:47:20 2009 GMT
Module: SPECS                         Tag: USERS
---- Log message:
- addusertogroup silently test

---- Files affected:
SPECS:
   test.spec (1.16.4.69.2.4.2.1 -> 1.16.4.69.2.4.2.1.2.1) 

---- Diffs:

================================================================
Index: SPECS/test.spec
diff -u SPECS/test.spec:1.16.4.69.2.4.2.1 SPECS/test.spec:1.16.4.69.2.4.2.1.2.1
--- SPECS/test.spec:1.16.4.69.2.4.2.1	Mon Mar 23 20:37:24 2009
+++ SPECS/test.spec	Thu Mar 26 12:47:14 2009
@@ -1,22 +1,15 @@
 # $Revision$, $Date$
-%bcond_without	pkg1	# build the "first" package
-%bcond_with	pkg2	# build the "second" package
-
-%if %{with pkg2}
-# disable pkg1 if pkg2 is built
-%undefine	with_pkg1
-%endif
-Summary:	triggertest
-Name:		triggers
+Summary:	test user/group add/remove
+Name:		users
 Version:	4
-Release:	%{?with_pkg1:1}%{?with_pkg2:4}
+Release:	1
 License:	GPL
-Group:		Applications/System
+Group:		Tests
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
-This package should be never installed.
+tests user/group add/remove.
 
 %prep
 %setup -qcT
@@ -27,16 +20,9 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%if %{with pkg2}
-%triggerpostun -- %{name} < 2
-echo "%{name}-%{version}-%{release} postun on %{name} < 2"
-
-%triggerpostun -- %{name} < 3
-echo "%{name}-%{version}-%{release} postun on %{name} < 3"
-
-%triggerpostun -- %{name} < 4
-echo "%{name}-%{version}-%{release} postun on %{name} < 4"
-%endif
+%pre
+set -x
+%addusertogroup -q clamav amavis
 
 %files
 %defattr(644,root,root,755)
@@ -47,6 +33,6 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.16.4.69.2.4.2.1  2009/03/23 19:37:24  glen
-- spec for triggers
+Revision 1.16.4.69.2.4.2.1.2.1  2009/03/26 11:47:14  glen
+- addusertogroup silently test
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/test.spec?r1=1.16.4.69.2.4.2.1&r2=1.16.4.69.2.4.2.1.2.1&f=u



More information about the pld-cvs-commit mailing list