diff -pruN 20100117-1.1/debian/changelog 20100117-1.2/debian/changelog
--- 20100117-1.1/debian/changelog	2018-05-20 19:22:27.000000000 +0000
+++ 20100117-1.2/debian/changelog	2025-09-04 16:35:18.000000000 +0000
@@ -1,3 +1,10 @@
+libjpedal-jbig2-java (20100117-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Move away from deprecated CDBS
+
+ -- Alexandre Detiste <tchet@debian.org>  Thu, 04 Sep 2025 18:35:18 +0200
+
 libjpedal-jbig2-java (20100117-1.1) unstable; urgency=high
 
   * Non-maintainer upload.
diff -pruN 20100117-1.1/debian/compat 20100117-1.2/debian/compat
--- 20100117-1.1/debian/compat	2018-05-20 19:20:29.000000000 +0000
+++ 20100117-1.2/debian/compat	1970-01-01 00:00:00.000000000 +0000
@@ -1 +0,0 @@
-9
diff -pruN 20100117-1.1/debian/control 20100117-1.2/debian/control
--- 20100117-1.1/debian/control	2018-05-20 19:20:29.000000000 +0000
+++ 20100117-1.2/debian/control	2025-09-04 16:35:18.000000000 +0000
@@ -2,12 +2,13 @@ Source: libjpedal-jbig2-java
 Section: java
 Priority: extra
 Maintainer: Steffen Moeller <moeller@debian.org>
-Build-Depends: debhelper (>= 9), cdbs, default-jdk
+Build-Depends: debhelper-compat (= 13), default-jdk
 Standards-Version: 3.9.3
 Homepage: http://www.jpedal.org/support_JBIG.php
 
 Package: libjpedal-jbig2-java
 Architecture: all
+Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: default-jre-headless
 Description: library for accession of large images
diff -pruN 20100117-1.1/debian/rules 20100117-1.2/debian/rules
--- 20100117-1.1/debian/rules	2018-05-20 19:19:32.000000000 +0000
+++ 20100117-1.2/debian/rules	2025-09-04 16:35:18.000000000 +0000
@@ -1,14 +1,16 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-include /usr/share/cdbs/1/rules/debhelper.mk
+export DH_VERBOSE=1
 
-build/libjpedal-jbig2-java::
-	javac -Xlint:unchecked `find org -name *.java`
+%:
+	dh $@
 
-install/libjpedal-jbig2-java::
-	jar cf $(CURDIR)/debian/libjpedal-jbig2-java/usr/share/java/jbig2.jar `find . -name "*.class"`
+execute_after_dh_auto_build:
+	javac -Xlint:unchecked `find org -name *.java`
 
-clean::
-	find org -name "*.class" | xargs -r rm
+override_dh_auto_install:
+	jar cf debian/libjpedal-jbig2-java/usr/share/java/jbig2.jar `find . -name "*.class"`
 
+execute_after_dh_clean:
+	find org -name "*.class" -delete
