SPECS: adapter.awk - recognize %verifyscript and %check

glen glen at pld-linux.org
Tue Feb 28 14:27:50 CET 2006


Author: glen                         Date: Tue Feb 28 13:27:50 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- recognize %verifyscript and %check

---- Files affected:
SPECS:
   adapter.awk (1.281 -> 1.282) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.281 SPECS/adapter.awk:1.282
--- SPECS/adapter.awk:1.281	Tue Feb 28 00:17:27 2006
+++ SPECS/adapter.awk	Tue Feb 28 14:27:45 2006
@@ -25,7 +25,7 @@
 # - desc wrapping is totally fucked up on global.spec,1.25, dosemu.spec,1.115-
 
 BEGIN {
-	RPM_SECTIONS = "package|build|changelog|clean|description|install|post|posttrans|postun|pre|prep|pretrans|preun|triggerin|triggerpostun|triggerun"
+	RPM_SECTIONS = "package|build|changelog|clean|description|install|post|posttrans|postun|pre|prep|pretrans|preun|triggerin|triggerpostun|triggerun|verifyscript|check"
 	SECTIONS = "^%(" RPM_SECTIONS ")"
 
 	PREAMBLE_TAGS = "(Summary|Name|Version|Release|License|Group|URL|BuildArch|BuildRoot|Obsoletes|Conflicts|Provides|ExclusiveArch|ExcludeArch|Pre[Rr]eq|(Build)?Requires)"
@@ -545,6 +545,12 @@
 	preamble = 0
 }
 /^%posttrans/, (!/^%posttrans/ && $0 ~ SECTIONS) {
+	preamble = 0
+}
+/^%verifyscript/, (!/^%verifyscript/ && $0 ~ SECTIONS) {
+	preamble = 0
+}
+/^%check/, (!/^%check/ && $0 ~ SECTIONS) {
 	preamble = 0
 }
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.281&r2=1.282&f=u



More information about the pld-cvs-commit mailing list