[packages/rpm-build-tools] - drop conditional macros for now

arekm arekm at pld-linux.org
Tue Feb 25 10:50:26 CET 2014


commit 7f70edcdb38a670377b0f1c5537ab56b31740b1c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Feb 25 10:50:24 2014 +0100

    - drop conditional macros for now

 pldnotify.awk | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/pldnotify.awk b/pldnotify.awk
index 59c4ec5..4438f60 100755
--- a/pldnotify.awk
+++ b/pldnotify.awk
@@ -491,6 +491,8 @@ function subst_defines(var,defs) {
 		for (j in defs) {
 			gsub("%{" j "}", defs[j], var)
 			gsub("%" j , defs[j], var)
+			# conditional macros like %{?patchlevel:.5} - drop these for now
+			gsub("%{\?" j ":.*?}", "", var)
 		}
 		if (var==oldvar) {
 			if (DEBUG) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/7f70edcdb38a670377b0f1c5537ab56b31740b1c



More information about the pld-cvs-commit mailing list