diff --git a/Changes b/Changes index decad5a..fb0c6cf 100644 --- a/Changes +++ b/Changes @@ -3,6 +3,7 @@ * Fix $summary modification. * Strip leading [Vv]\.? from spec Version. * Add --epoch option. +* rpm is in /bin, not /usr/bin. 1.65 2006-04-26 diff --git a/TODO b/TODO index 27720d0..d67fa18 100644 --- a/TODO +++ b/TODO @@ -22,3 +22,6 @@ from the module itself. * Do a better job of detecting scripts in the package. + +* Check the search path for rpm, rpmbuild, etc. instead of hard-coding + paths. diff --git a/cpanspec b/cpanspec index 4f20bfe..34afd90 100755 --- a/cpanspec +++ b/cpanspec @@ -10,7 +10,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # -# $Id: cpanspec,v 1.25 2006/05/15 23:32:46 stevenpritchard Exp $ +# $Id: cpanspec,v 1.26 2006/05/16 00:12:03 stevenpritchard Exp $ our $NAME="cpanspec"; our $VERSION='1.66'; @@ -311,7 +311,7 @@ sub build_rpm($) { my $spec=shift; my $dir=getcwd(); - my $rpm=(-x "/usr/bin/rpmbuild" ? "/usr/bin/rpmbuild" : "/usr/bin/rpm"); + my $rpm=(-x "/usr/bin/rpmbuild" ? "/usr/bin/rpmbuild" : "/bin/rpm"); verbose("Building " . ($buildrpm ? "rpms" : "source rpm") . " from $spec");