Fix the path to rpm.
This commit is contained in:
1
Changes
1
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
|
||||
|
||||
|
||||
3
TODO
3
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.
|
||||
|
||||
4
cpanspec
4
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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user