summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
Diffstat (limited to 'Build')
-rw-r--r--Build/Rpm.pm14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/Rpm.pm b/Build/Rpm.pm
index d9c6028..47cb9e7 100644
--- a/Build/Rpm.pm
+++ b/Build/Rpm.pm
@@ -436,6 +436,20 @@ reexpand:
$hasif = 1;
next;
}
+ if ($line =~ /^\s*%ifhostarch(.*)$/) {
+ my $hostarch = $macros{'hostarch'} || 'unknown';
+ my @hostarchs = grep {$_ eq $hostarch} split(/\s+/, $1);
+ $skip = 1 if !@hostarchs;
+ $hasif = 1;
+ next;
+ }
+ if ($line =~ /^\s*%ifnhostarch(.*)$/) {
+ my $hostarch = $macros{'hostarch'} || 'unknown';
+ my @hostarchs = grep {$_ eq $hostarch} split(/\s+/, $1);
+ $skip = 1 if @hostarchs;
+ $hasif = 1;
+ next;
+ }
if ($line =~ /^\s*%ifos(.*)$/) {
my $os = $macros{'_target_os'} || 'unknown';
my @oss = grep {$_ eq $os} split(/\s+/, $1);