[packages/pld-gitolite] check-spec-sources: use %global for parametric macros

arekm arekm at pld-linux.org
Sun Jul 19 10:28:16 CEST 2026


commit 8f877e3c8156afe6aa95661570e0a8b3f2a4145b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Jul 19 10:23:43 2026 +0200

    check-spec-sources: use %global for parametric macros
    
    Parametric %define warns about whitespace before body even when it is there.

 check-spec-sources | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/check-spec-sources b/check-spec-sources
index fc08f06..4a25648 100755
--- a/check-spec-sources
+++ b/check-spec-sources
@@ -116,7 +116,7 @@ def basename_of(path):
 
 def add_parametric_macro(name):
     """Define a parametric macro that consumes its arguments and expands to nothing."""
-    rpm.expandMacro(f"%define {name}() %{{nil}}")
+    rpm.expandMacro(f"%global {name}() %{{nil}}")
 
 
 def setup_builtin_macros():
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pld-gitolite.git/commitdiff/8f877e3c8156afe6aa95661570e0a8b3f2a4145b



More information about the pld-cvs-commit mailing list