mirror of
https://github.com/Project-OSS-Revival/alien.git
synced 2026-04-24 14:00:17 +00:00
* When converting LSB packages, do not increment the release number.
* Use rpmbuild to build lsb packages, not rpm.
This commit is contained in:
@@ -306,6 +306,21 @@ the filename of the generated package.
|
|||||||
|
|
||||||
sub build {}
|
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
|
=item DESTROY
|
||||||
|
|
||||||
When an object is destroyed, it cleans some stuff up. In particular, if the
|
When an object is destroyed, it cleans some stuff up. In particular, if the
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ the package.
|
|||||||
|
|
||||||
sub build {
|
sub build {
|
||||||
my $this=shift;
|
my $this=shift;
|
||||||
my $buildcmd=shift || 'rpm';
|
my $buildcmd=shift || 'rpmbuild';
|
||||||
foreach (split(/:/,$ENV{PATH})) {
|
foreach (split(/:/,$ENV{PATH})) {
|
||||||
if (-x "$_/lsb-rpm") {
|
if (-x "$_/lsb-rpm") {
|
||||||
$buildcmd='lsb-rpm';
|
$buildcmd='lsb-rpm';
|
||||||
@@ -113,6 +113,14 @@ sub build {
|
|||||||
$this->SUPER::build($buildcmd);
|
$this->SUPER::build($buildcmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
=item incrementrelease
|
||||||
|
|
||||||
|
LSB package versions are not changed.
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
|
sub incrementrelease {}
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
=head1 AUTHOR
|
=head1 AUTHOR
|
||||||
|
|||||||
7
alien.pl
7
alien.pl
@@ -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
|
compliant, and it's rather unlikely they will unless you build them in the
|
||||||
lsbdev environment.
|
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
|
=item deb
|
||||||
|
|
||||||
For converting to (but not from) deb format, the gcc, make, debhelper,
|
For converting to (but not from) deb format, the gcc, make, debhelper,
|
||||||
@@ -458,9 +461,7 @@ foreach my $file (@ARGV) {
|
|||||||
|
|
||||||
# Increment release.
|
# Increment release.
|
||||||
unless (defined $keepversion) {
|
unless (defined $keepversion) {
|
||||||
$^W=0; # Shut of possible "is not numeric" warning.
|
$package->incrementrelease($versionbump);
|
||||||
$package->release($package->release + $versionbump);
|
|
||||||
$^W=1; # Re-enable warnings.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach my $format (keys %destformats) {
|
foreach my $format (keys %destformats) {
|
||||||
|
|||||||
4
debian/changelog
vendored
4
debian/changelog
vendored
@@ -3,8 +3,10 @@ alien (8.65) UNRELEASED; urgency=low
|
|||||||
* Fix alien's own spec file, s/Copyright/License/.
|
* Fix alien's own spec file, s/Copyright/License/.
|
||||||
* Add support for rpm scripts that use RPM_INSTALL_PREFIX, by setting
|
* Add support for rpm scripts that use RPM_INSTALL_PREFIX, by setting
|
||||||
RPM_INSTALL_PREFIX as part of the converted script. Closes: #400863
|
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
|
alien (8.64) unstable; urgency=low
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user