summaryrefslogtreecommitdiffstats
path: root/t/02create_pkgs.t
diff options
context:
space:
mode:
Diffstat (limited to 't/02create_pkgs.t')
-rw-r--r--t/02create_pkgs.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/02create_pkgs.t b/t/02create_pkgs.t
index 81f282d6..507af0c4 100644
--- a/t/02create_pkgs.t
+++ b/t/02create_pkgs.t
@@ -62,7 +62,8 @@ sub rpmbuild {
my ($spec, $o_medium_name) = @_;
my $dir = getcwd();
- system_("rpmbuild --quiet --define 'rpm_version %(rpm -q --queryformat \"%{VERSION}\" rpm|sed -e \"s/\\\\.//g\")' --define '_topdir $dir/tmp' --define '_tmppath $dir/tmp' -bb --clean --nodeps $spec");
+ my ($target) = $spec =~ m!-(i586|x86_64)\.spec$!;
+ system_("rpmbuild --quiet --define 'rpm_version %(rpm -q --queryformat \"%{VERSION}\" rpm|sed -e \"s/\\\\.//g\")' --define '_topdir $dir/tmp' --define '_tmppath $dir/tmp' -bb --clean --nodeps ".($target ? "--target $target" : "")." $spec");
my ($name) = $spec =~ m!([^/]*)\.spec$!;