[packages/adapter: 415/631] - replace %{ant} with %ant (some fedora specs)

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


commit ecaaa7847e38e735ee10f455743ce2c0126a2940
Author: Adam Gołębiowski <adamg at pld-linux.org>
Date:   Tue Jun 3 14:31:23 2008 +0000

    - replace %{ant} with %ant (some fedora specs)
    
    Changed files:
        adapter.awk -> 1.397

 adapter.awk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/adapter.awk b/adapter.awk
index 5b062cc..3d6c776 100644
--- a/adapter.awk
+++ b/adapter.awk
@@ -1317,8 +1317,9 @@ function use_macros()
 	gsub("/usr/src/linux", "%{_kernelsrcdir}")
 	gsub("%{_prefix}/src/linux", "%{_kernelsrcdir}")
 
-	if (/^ant /) {
+	if (/^ant / || /^%{ant}/) {
 		sub(/^ant/, "%ant")
+		sub(/^%{ant}/, "%ant")
 		add_br("BuildRequires:  jpackage-utils");
 		add_br("BuildRequires:  rpmbuild(macros) >= 1.300");
 	}
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list