* When converting LSB packages, do not increment the release number.

* Use rpmbuild to build lsb packages, not rpm.
This commit is contained in:
joey
2006-12-15 18:46:37 +00:00
parent c1a3316e71
commit 4697a558d0
4 changed files with 31 additions and 5 deletions

View File

@@ -306,6 +306,21 @@ the filename of the generated package.
sub build {}
=item incrementrelease
This method should increment the release field of the package by
the specified number.
=cut
sub incrementrelease {
my $this=shift;
my $number=shift;
$^W=0; # Shut of possible "is not numeric" warning.
$this->release($this->release + $number);
$^W=1; # Re-enable warnings.
}
=item DESTROY
When an object is destroyed, it cleans some stuff up. In particular, if the

View File

@@ -103,7 +103,7 @@ the package.
sub build {
my $this=shift;
my $buildcmd=shift || 'rpm';
my $buildcmd=shift || 'rpmbuild';
foreach (split(/:/,$ENV{PATH})) {
if (-x "$_/lsb-rpm") {
$buildcmd='lsb-rpm';
@@ -113,6 +113,14 @@ sub build {
$this->SUPER::build($buildcmd);
}
=item incrementrelease
LSB package versions are not changed.
=cut
sub incrementrelease {}
=back
=head1 AUTHOR

View File

@@ -50,6 +50,9 @@ No guarantees are made that the generated lsb packages will be fully LSB
compliant, and it's rather unlikely they will unless you build them in the
lsbdev environment.
Note that unlike other package formats, converting an LSB package to
another format will not cause its minor version number to be changed.
=item deb
For converting to (but not from) deb format, the gcc, make, debhelper,
@@ -458,9 +461,7 @@ foreach my $file (@ARGV) {
# Increment release.
unless (defined $keepversion) {
$^W=0; # Shut of possible "is not numeric" warning.
$package->release($package->release + $versionbump);
$^W=1; # Re-enable warnings.
$package->incrementrelease($versionbump);
}
foreach my $format (keys %destformats) {

4
debian/changelog vendored
View File

@@ -3,8 +3,10 @@ alien (8.65) UNRELEASED; urgency=low
* Fix alien's own spec file, s/Copyright/License/.
* Add support for rpm scripts that use RPM_INSTALL_PREFIX, by setting
RPM_INSTALL_PREFIX as part of the converted script. Closes: #400863
* When converting LSB packages, do not increment the release number.
* Use rpmbuild to build lsb packages, not rpm.
-- Joey Hess <joeyh@debian.org> Fri, 15 Dec 2006 13:31:54 -0500
-- Joey Hess <joeyh@debian.org> Fri, 15 Dec 2006 13:44:22 -0500
alien (8.64) unstable; urgency=low