Skip to content

Commit

Permalink
Support %bcond of rpm 4.17.1
Browse files Browse the repository at this point in the history
build#971
  • Loading branch information
adrianschroeter committed Mar 20, 2024
1 parent 63b7ae2 commit 57421dd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Build/Rpm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ sub builtinmacro {
$args[0] =~ s/ $//;
return $args[0];
}
if ($macname eq 'bcond') {
$macros->{"with_$args[0]"} = $args[1] if $args[1];
return '';
}
if ($macname eq 'bcond_with') {
$macros->{"with_$args[0]"} = 1 if exists $macros->{"_with_$args[0]"};
return '';
Expand Down Expand Up @@ -404,6 +408,7 @@ my %builtin_macros = (
'undefined' => \&builtinmacro,
'with' => \&builtinmacro,
'without' => \&builtinmacro,
'bcond' => \&builtinmacro,
'bcond_with' => \&builtinmacro,
'bcond_without' => \&builtinmacro,
'expr' => \&builtinmacro,
Expand Down

0 comments on commit 57421dd

Please sign in to comment.