Fix the path to rpm.

This commit is contained in:
stevenpritchard
2006-05-16 00:12:02 +00:00
parent 2ccb07fad3
commit cf1a9dd0d7
3 changed files with 6 additions and 2 deletions

View File

@@ -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

3
TODO
View File

@@ -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.

View File

@@ -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");