SPECS (TRIGGERS): test.spec - spec for triggers

glen glen at pld-linux.org
Mon Mar 23 20:37:30 CET 2009


Author: glen                         Date: Mon Mar 23 19:37:30 2009 GMT
Module: SPECS                         Tag: TRIGGERS
---- Log message:
- spec for triggers

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

---- Diffs:

================================================================
Index: SPECS/test.spec
diff -u SPECS/test.spec:1.16.4.69.2.4 SPECS/test.spec:1.16.4.69.2.4.2.1
--- SPECS/test.spec:1.16.4.69.2.4	Fri Feb 15 00:21:44 2008
+++ SPECS/test.spec	Mon Mar 23 20:37:24 2009
@@ -1,13 +1,18 @@
 # $Revision$, $Date$
-Summary:	testing
-Name:		test4-1
+%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
 Version:	4
-Release:	0-01
+Release:	%{?with_pkg1:1}%{?with_pkg2:4}
 License:	GPL
 Group:		Applications/System
-BuildRequires:	less
-BuildRequires:	passivetex
-BuildRequires:	gpgme
+BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,14 +27,16 @@
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%triggerpostun -- %{name} <= 2
+%if %{with pkg2}
+%triggerpostun -- %{name} < 2
 echo "%{name}-%{version}-%{release} postun on %{name} < 2"
 
-%triggerpostun -- %{name} <= 3
+%triggerpostun -- %{name} < 3
 echo "%{name}-%{version}-%{release} postun on %{name} < 3"
 
 %triggerpostun -- %{name} < 4
 echo "%{name}-%{version}-%{release} postun on %{name} < 4"
+%endif
 
 %files
 %defattr(644,root,root,755)
@@ -40,14 +47,6 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
-Revision 1.16.4.69.2.4  2008/02/14 23:21:44  glen
-- trigger <= test
-
-Revision 1.16.4.69.2.3  2007-12-29 15:42:44  glen
-- rel 0.1
-
-Revision 1.16.4.69.2.2  2007-12-29 00:51:20  glen
-- rel 0.1
+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.1  2007-12-29 00:48:36  glen
-- rel 0.1
================================================================

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



More information about the pld-cvs-commit mailing list