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