We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63b7ae2 commit 57421ddCopy full SHA for 57421dd
Build/Rpm.pm
@@ -330,6 +330,10 @@ sub builtinmacro {
330
$args[0] =~ s/ $//;
331
return $args[0];
332
}
333
+ if ($macname eq 'bcond') {
334
+ $macros->{"with_$args[0]"} = $args[1] if $args[1];
335
+ return '';
336
+ }
337
if ($macname eq 'bcond_with') {
338
$macros->{"with_$args[0]"} = 1 if exists $macros->{"_with_$args[0]"};
339
return '';
@@ -404,6 +408,7 @@ my %builtin_macros = (
404
408
'undefined' => \&builtinmacro,
405
409
'with' => \&builtinmacro,
406
410
'without' => \&builtinmacro,
411
+ 'bcond' => \&builtinmacro,
407
412
'bcond_with' => \&builtinmacro,
413
'bcond_without' => \&builtinmacro,
414
'expr' => \&builtinmacro,
0 commit comments