* Modified Rpm.pm to not bother with the scripts stanzas if there are

no scripts.
This commit is contained in:
joey
2000-12-08 23:11:19 +00:00
parent 7a17c46b36
commit dfab4e5831
2 changed files with 27 additions and 12 deletions

View File

@@ -255,18 +255,26 @@ sub prep {
print OUT "\%define _rpmdir ../\n"; # write rpm to current directory print OUT "\%define _rpmdir ../\n"; # write rpm to current directory
print OUT "\%define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\n"; print OUT "\%define _rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm\n";
print OUT "\n"; print OUT "\n";
print OUT "\%pre\n"; if ($this->preinst) {
print OUT $this->preinst."\n"; print OUT "\%pre\n";
print OUT "\n"; print OUT $this->preinst."\n";
print OUT "\%post\n"; print OUT "\n";
print OUT $this->postinst."\n"; }
print OUT "\n"; if ($this->postinst) {
print OUT "\%preun\n"; print OUT "\%post\n";
print OUT $this->prerm."\n"; print OUT $this->postinst."\n";
print OUT "\n"; print OUT "\n";
print OUT "\%postun\n"; }
print OUT $this->postrm."\n"; if ($this->prerm) {
print OUT "\n"; print OUT "\%preun\n";
print OUT $this->prerm."\n";
print OUT "\n";
}
if ($this->postun) {
print OUT "\%postun\n";
print OUT $this->postrm."\n";
print OUT "\n";
}
print OUT "\%description\n"; print OUT "\%description\n";
print OUT $this->description."\n"; print OUT $this->description."\n";
print OUT "\n"; print OUT "\n";

7
debian/changelog vendored
View File

@@ -1,3 +1,10 @@
alien (7.12) unstable; urgency=low
* Modified Rpm.pm to not bother with the scripts stanzas if there are
no scripts.
-- Joey Hess <joeyh@debian.org> Fri, 8 Dec 2000 14:50:51 -0800
alien (7.11) unstable; urgency=low alien (7.11) unstable; urgency=low
* Use ls -1 instead of plain ls when copying files to debian/tmp in rpm * Use ls -1 instead of plain ls when copying files to debian/tmp in rpm