SPECS (DEVEL): adapter.awk, adapter.spec - replace name and versio...

glen glen at pld-linux.org
Tue Aug 23 22:34:56 CEST 2005


Author: glen                         Date: Tue Aug 23 20:34:56 2005 GMT
Module: SPECS                         Tag: DEVEL
---- Log message:
- replace name and version with macros in %setup. req by PaSzCzUs

---- Files affected:
SPECS:
   adapter.awk (1.171 -> 1.172) , adapter.spec (1.26.2.7 -> 1.26.2.8) 

---- Diffs:

================================================================
Index: SPECS/adapter.awk
diff -u SPECS/adapter.awk:1.171 SPECS/adapter.awk:1.172
--- SPECS/adapter.awk:1.171	Tue Aug 16 00:06:39 2005
+++ SPECS/adapter.awk	Tue Aug 23 22:34:51 2005
@@ -206,6 +206,11 @@
 		sub(/^%setup/, "%setup -q")
 	}
 
+	if (/^%setup/) {
+		gsub(name, "%{name}");
+		gsub(version, "%{version}");
+	}
+
 	if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
 		sub(/ -n %{name}-%{version}/, "")
 	}

================================================================
Index: SPECS/adapter.spec
diff -u SPECS/adapter.spec:1.26.2.7 SPECS/adapter.spec:1.26.2.8
--- SPECS/adapter.spec:1.26.2.7	Tue Aug 23 22:33:58 2005
+++ SPECS/adapter.spec	Tue Aug 23 22:34:51 2005
@@ -64,6 +64,7 @@
 - this one gets wrapped, but logically it shouldn't due bcond
 
 %prep
+%setup -q -n adapter-0.666
 %setup -q -n %{name}-%{version}
 %setup -q -c -n %{name}-%{version}
 %setup -q -n %{name}-%{version}.orig -a 1
@@ -142,6 +143,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.26.2.8  2005/08/23 20:34:51  glen
+- replace name and version with macros in %setup. req by PaSzCzUs
+
 Revision 1.26.2.7  2005/08/23 20:33:58  glen
 - tests updated
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/adapter.awk?r1=1.171&r2=1.172&f=u
    http://cvs.pld-linux.org/SPECS/adapter.spec?r1=1.26.2.7&r2=1.26.2.8&f=u




More information about the pld-cvs-commit mailing list