Only use --nodeps if we're only building a source rpm.

This commit is contained in:
stevenpritchard
2008-06-16 19:24:04 +00:00
parent 36bae4ff8d
commit 0fe71962b8
2 changed files with 7 additions and 3 deletions

View File

@@ -1,3 +1,7 @@
1.77 2008-06-16
* Only use --nodeps if we're only building a source rpm.
1.76 2008-06-16
* Drop dependency on Module::CoreList and just fetch the list from rpm.

View File

@@ -10,10 +10,10 @@
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# $Id: cpanspec,v 1.61 2008/06/16 18:43:22 stevenpritchard Exp $
# $Id: cpanspec,v 1.62 2008/06/16 19:24:04 stevenpritchard Exp $
our $NAME="cpanspec";
our $VERSION='1.76';
our $VERSION='1.77';
=head1 NAME
@@ -351,7 +351,7 @@ sub build_rpm($) {
"--define", "_builddir $dir",
"--define", "_srcrpmdir $dir",
"--define", "_rpmdir $dir",
"--nodeps", ($buildrpm ? "-ba" : "-bs"),
($buildrpm ? "-ba" : ("-bs", "--nodeps")),
$spec) != 0) {
if ($? == -1) {
die "Failed to execute $rpmbuild: $!\n";