Use lsb-rpmbuild, not lsb-rpm. Closes: #667044

Note that lsb-rpm has been dropped from rpm in Debian unstable. So
this changes nothing really; it already fell back to rpmbuild.

And I can find no mention of either lsb-rpm or lsb-rpmbuild in the LSB
spec, although I didn't look very hard.
This commit is contained in:
Joey Hess
2012-04-04 13:36:18 -04:00
parent 3faa48b23f
commit f717997da1
2 changed files with 10 additions and 4 deletions

View File

@@ -96,8 +96,8 @@ sub revert {
=item build
Uses the parent's build method. If a lsb-rpm is available, uses it to build
the package.
Uses the parent's build method. If a lsb-rpmbuild is available, uses it to
build the package.
=cut
@@ -105,8 +105,8 @@ sub build {
my $this=shift;
my $buildcmd=shift || 'rpmbuild';
foreach (split(/:/,$ENV{PATH})) {
if (-x "$_/lsb-rpm") {
$buildcmd='lsb-rpm';
if (-x "$_/lsb-rpmbuild") {
$buildcmd='lsb-rpmbuild';
last;
}
}