[packages/adapter: 193/631] - also expand _beta/_rc/_snap macros in %setup

glen glen at pld-linux.org
Mon Sep 12 19:50:38 CEST 2016


commit 4a8d9a70f9c585887020f2b7466a26bf0cbf5000
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Sep 8 23:42:52 2005 +0000

    - also expand _beta/_rc/_snap macros in %setup
    
    Changed files:
        adapter.awk -> 1.184

 adapter.awk | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index 5d7e048..1e728f9 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -211,6 +211,15 @@ preamble == 1 {
 	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}( |$)/) {
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list