[packages/adapter: 180/631] - replace name and version with macros in %setup. req by PaSzCzUs

glen glen at pld-linux.org
Mon Sep 12 19:49:33 CEST 2016


commit 4f822e222d20da1382c3b570409561583bd745bf
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Tue Aug 23 20:34:51 2005 +0000

    - replace name and version with macros in %setup. req by PaSzCzUs
    
    Changed files:
        adapter.awk -> 1.172

 adapter.awk | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 470d1a0..d8fe1d0 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -206,6 +206,11 @@ preamble == 1 {
 		sub(/^%setup/, "%setup -q")
 	}
 
+	if (/^%setup/) {
+		gsub(name, "%{name}");
+		gsub(version, "%{version}");
+	}
+
 	if (/^%setup/ && /-n %{name}-%{version}( |$)/) {
 		sub(/ -n %{name}-%{version}/, "")
 	}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/adapter.git/commitdiff/6ca0126d4d0c8c79feb7db10b0a0fade0f3b8885



More information about the pld-cvs-commit mailing list