From 01e052bd2e363e2484e8b7479d517618c359e34e Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@debian.org>
Date: Fri, 26 Nov 2021 13:14:39 +0100
Subject: [PATCH] Remove dbg package and prepare upload

---
 debian/changelog                           | 10 ++++++++--
 debian/control                             | 20 +++-----------------
 debian/rules                               |  3 +--
 debian/tests/run-testsuite-if-acls-enabled |  2 --
 debian/tests/simple                        |  1 -
 5 files changed, 12 insertions(+), 24 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2b59825..1e34ecd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,12 +1,18 @@
-python-pylibacl (0.6.0-2) UNRELEASED; urgency=medium
+python-pylibacl (0.6.0-2) unstable; urgency=medium
 
+  [ Debian Janitor ]
   * Remove constraints unnecessary since buster:
     + python-pylibacl-doc: Drop versioned constraint on python-pylibacl in
       Replaces.
     + python-pylibacl-doc: Drop versioned constraint on python-pylibacl in
       Breaks.
 
- -- Debian Janitor <janitor@jelmer.uk>  Sun, 17 Oct 2021 00:39:34 -0000
+  [ Iustin Pop ]
+  * Drop the debug package; no reverse dependencies, so this is
+    straightforward (Closes: #994365).
+  * Bump standards version (no changes).
+
+ -- Iustin Pop <iustin@debian.org>  Fri, 26 Nov 2021 13:13:53 +0100
 
 python-pylibacl (0.6.0-1) unstable; urgency=low
 
diff --git a/debian/control b/debian/control
index ea509f8..1f2594b 100644
--- a/debian/control
+++ b/debian/control
@@ -3,9 +3,9 @@ Section: python
 Priority: optional
 Maintainer: Iustin Pop <iustin@debian.org>
 Build-Depends: debhelper-compat (= 13), dh-python,
- python3-all, python3-all-dev, python3-all-dbg,
+ python3-all, python3-all-dev,
  libacl1-dev, python3-setuptools, python3-sphinx
-Standards-Version: 4.5.1
+Standards-Version: 4.6.0.1
 Homepage: https://pylibacl.k1024.org/
 Vcs-Browser: https://salsa.debian.org/debian/python-pylibacl
 Vcs-Git: https://salsa.debian.org/debian/python-pylibacl.git
@@ -15,7 +15,7 @@ Package: python3-pylibacl
 Architecture: any
 Depends: ${python3:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Provides: ${python3:Provides}
-Suggests: python3-pylibacl-dbg, python-pylibacl-doc
+Suggests: python-pylibacl-doc
 Multi-Arch: same
 Description: module for manipulating POSIX.1e ACLs (Python3 version)
  pylibacl is a Python interface to the libacl library. It allows
@@ -24,20 +24,6 @@ Description: module for manipulating POSIX.1e ACLs (Python3 version)
  .
  This package contains the library for Python 3.
 
-Package: python3-pylibacl-dbg
-Section: debug
-Architecture: any
-Depends: python3-pylibacl (= ${binary:Version}), python3-dbg,
- ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
-Provides: ${python3:Provides}
-Multi-Arch: same
-Description: module for manipulating POSIX.1e ACLs (Python3 debug extension)
- pylibacl is a Python interface to the libacl library. It allows
- manipulation of the POSIX.1e-compliant filesystem ACLs present
- in some operating systems (GNU/Linux included).
- .
- This package contains the library for the Python 3 debug interpreter.
-
 Package: python-pylibacl-doc
 Architecture: all
 Section: doc
diff --git a/debian/rules b/debian/rules
index 2b999bb..02fe6db 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,10 +27,9 @@ override_dh_auto_clean:
 	$(MAKE) clean
 
 override_dh_strip:
-	dh_strip -ppython3-pylibacl --dbg-package=python3-pylibacl-dbg
+	dh_strip -ppython3-pylibacl
 
 override_dh_installdocs:
-	dh_installdocs --link-doc=python3-pylibacl -ppython3-pylibacl-dbg
 	dh_installdocs -A --remaining-packages README.md
 
 override_dh_installchangelogs:
diff --git a/debian/tests/run-testsuite-if-acls-enabled b/debian/tests/run-testsuite-if-acls-enabled
index f1d3c42..5251ba3 100755
--- a/debian/tests/run-testsuite-if-acls-enabled
+++ b/debian/tests/run-testsuite-if-acls-enabled
@@ -9,8 +9,6 @@ if setfacl -m u:root:r "$TESTFILE"; then
   export TEST_DIR="$AUTOPKGTEST_TMP"
   echo "* testing Python 3"
   python3 tests/test_acls.py
-  echo "* testing Python 3 debug package"
-  python3-dbg tests/test_acls.py
 else
   echo "Temporary directory '$AUTOPKGTEST_TMP' doesn't have extended attributes enabled"
   echo "Skipping the tests :("
diff --git a/debian/tests/simple b/debian/tests/simple
index 9133887..e2ad64e 100755
--- a/debian/tests/simple
+++ b/debian/tests/simple
@@ -1,4 +1,3 @@
 #!/bin/sh
 
 python3 -c 'import posix1e; print(posix1e)'
-python3-dbg -c 'import posix1e; print(posix1e)'
-- 
2.39.5