Deb.pm: Use dh sequencer in rules file; bump debhelper requirement to 10+

This commit is contained in:
Boyuan Yang
2020-03-29 00:07:47 -04:00
parent 88a0008668
commit 9b5622f8f2
2 changed files with 17 additions and 30 deletions

View File

@@ -459,7 +459,7 @@ sub prep {
# Use debhelper v7 # Use debhelper v7
open (OUT, ">$dir/debian/compat") || die "$dir/debian/compat: $!"; open (OUT, ">$dir/debian/compat") || die "$dir/debian/compat: $!";
print OUT "7\n"; print OUT "10\n";
close OUT; close OUT;
# A minimal rules file. # A minimal rules file.
@@ -471,48 +471,35 @@ sub prep {
PACKAGE=\$(shell dh_listpackages) PACKAGE=\$(shell dh_listpackages)
build: %:
dh_testdir dh $@
clean: override_dh_clean:
dh_testdir
dh_testroot
dh_clean -d dh_clean -d
binary-indep: build override_dh_auto_configure:
binary-arch: build override_dh_auto_build:
dh_testdir
dh_testroot
dh_prep
dh_installdirs
dh_installdocs override_dh_auto_install:
dh_installchangelogs # Copy the packages's files.
# Copy the packages's files.
find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \\ find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \\
xargs -0 -r -i cp -a {} debian/\$(PACKAGE) xargs -0 -r -i cp -a {} debian/\$(PACKAGE)
# #
# If you need to move files around in debian/\$(PACKAGE) or do some # If you need to move files around in debian/\$(PACKAGE) or do some
# binary patching, do it here # binary patching, do it here
# #
override_dh_strip:
# This has been known to break on some wacky binaries. # This has been known to break on some wacky binaries.
# dh_strip # dh_strip
dh_compress
$fixpermscomment dh_fixperms override_dh_fixperms:
dh_makeshlibs $fixpermscomment dh_fixperms
dh_installdeb
-dh_shlibdeps override_dh_shlibdeps:
dh_gencontrol -dh_shlibdeps
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary
EOF EOF
close OUT; close OUT;
$this->do("chmod", 755, "$dir/debian/rules"); $this->do("chmod", 755, "$dir/debian/rules");

2
debian/control vendored
View File

@@ -10,7 +10,7 @@ Homepage: http://kitenet.net/~joey/code/alien/
Package: alien Package: alien
Architecture: all Architecture: all
Depends: debhelper (>= 7), ${misc:Depends}, ${perl:Depends}, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio Depends: debhelper (>= 10), ${misc:Depends}, ${perl:Depends}, rpm (>= 2.4.4-2), dpkg-dev, make, cpio, rpm2cpio
Suggests: patch, bzip2, lintian, lzma Suggests: patch, bzip2, lintian, lzma
Description: convert and install rpm and other packages Description: convert and install rpm and other packages
Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages Alien allows you to convert LSB, Red Hat, Stampede and Slackware Packages