From 0fe71962b8370deb474edace766eefde7673bfda Mon Sep 17 00:00:00 2001 From: stevenpritchard Date: Mon, 16 Jun 2008 19:24:04 +0000 Subject: [PATCH] Only use --nodeps if we're only building a source rpm. --- Changes | 4 ++++ cpanspec | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Changes b/Changes index 312d500..6fc2c78 100644 --- a/Changes +++ b/Changes @@ -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. diff --git a/cpanspec b/cpanspec index 3b91448..9cbc368 100755 --- a/cpanspec +++ b/cpanspec @@ -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";