[packages/adapter: 418/631] - add %cc_version, %cxx_version

glen glen at pld-linux.org
Mon Sep 12 20:09:29 CEST 2016


commit 2dc1a8cd19eae39e9d4be45585fd947e32cb49eb
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Mon Aug 11 12:52:52 2008 +0000

    - add %cc_version, %cxx_version
    
    Changed files:
        adapter.awk -> 1.399

 adapter.awk | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/adapter.awk b/adapter.awk
index e33c630..6527775 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1326,6 +1326,8 @@ function use_macros()
 		add_br("BuildRequires:  rpmbuild(macros) >= 1.300");
 	}
 
+	$0 = fixedsub("%(%{__cc} -dumpversion)", "%{cc_version}", $0);
+	$0 = fixedsub("%(%{__cxx} -dumpversion)", "%{cxx_version}", $0);
 }
 
 function format_configure(line,		n, a, s) {
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list