Drop debian/compat and switch to debhelper-compat approach
authorMichael Prokop <mika@grml.org>
Fri, 3 Jun 2022 14:44:53 +0000 (16:44 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 3 Jun 2022 14:46:13 +0000 (16:46 +0200)
Fixes:

| dh_clean
| dh_clean: error: Compatibility levels before 7 are no longer supported (level 5 requested)

Also replace `dh_clean -k` with `dh_prep`, to then fix:

| dh_clean -k
| dh_clean: warning: The -k option is not supported in compat 12; use dh_prep instead
| dh_clean: error: This feature was removed in compat 12.

debian/compat [deleted file]
debian/control
debian/rules

diff --git a/debian/compat b/debian/compat
deleted file mode 100644 (file)
index 7ed6ff8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-5
index 0c9bc9a..a71614b 100644 (file)
@@ -2,7 +2,7 @@ Source: grml-scripts-core
 Section: utils
 Priority: optional
 Maintainer: Michael Prokop <mika@grml.org>
-Build-Depends: debhelper (>= 5), dietlibc-dev
+Build-Depends: debhelper-compat (= 12), dietlibc-dev
 Standards-Version: 3.9.4
 Homepage: http://git.grml.org/?p=grml-scripts-core.git
 Vcs-git: git://git.grml.org/grml-scripts-core.git
index e3952c8..7bf915f 100755 (executable)
@@ -27,7 +27,7 @@ clean:
 install: build
        dh_testdir
        dh_testroot
-       dh_clean -k
+       dh_prep
        dh_installdirs
 
        # Add here commands to install the package into debian/grml-scripts-core.