SPECS: adapter.awk - also expand _beta/_rc/_snap macros in %setup

glen glen at pld-linux.org
Fri Sep 9 01:42:57 CEST 2005


Author: glen                         Date: Thu Sep  8 23:42:57 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- also expand _beta/_rc/_snap macros in %setup

---- Files affected:
SPECS:
   adapter.awk (1.183 -> 1.184) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.183 SPECS/adapter.awk:1.184
--- SPECS/adapter.awk:1.183	Wed Sep  7 20:28:47 2005
+++ SPECS/adapter.awk	Fri Sep  9 01:42:52 2005
@@ -211,6 +211,15 @@
 	if (/^%setup/) {
 		gsub(name, "%{name}");
 		gsub(version, "%{version}");
+		if (_beta) {
+			gsub(_beta, "%{_beta}");
+		}
+		if (_rc) {
+			gsub(_rc, "%{_rc}");
+		}
+		if (_snap) {
+			gsub(_snap, "%{_snap}");
+		}
 	}
 
 	if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
================================================================

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




More information about the pld-cvs-commit mailing list