Control: tags -1 patch

Please find a debdiff attached that implements this.
diff -Nru fortunes-bg-1.4+nmu2/changelog fortunes-bg-1.4+nmu3/changelog
--- fortunes-bg-1.4+nmu2/changelog      2024-12-30 22:50:19.000000000 +0100
+++ fortunes-bg-1.4+nmu3/changelog      2026-08-05 22:33:26.000000000 +0200
@@ -1,3 +1,11 @@
+fortunes-bg (1.4+nmu3) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Convert to use debhelper, closes: #1142003.
+  * Correct typo in INSTALL.
+
+ -- Bastian Germann <[email protected]>  Wed, 05 Aug 2026 22:33:26 +0200
+
 fortunes-bg (1.4+nmu2) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru fortunes-bg-1.4+nmu2/control fortunes-bg-1.4+nmu3/control
--- fortunes-bg-1.4+nmu2/control        2024-12-30 22:49:44.000000000 +0100
+++ fortunes-bg-1.4+nmu3/control        2026-08-05 16:30:35.000000000 +0200
@@ -4,6 +4,7 @@
 Priority: optional
 Rules-Requires-Root: no
 Standards-Version: 4.5.0
+Build-Depends: debhelper-compat (= 14)
 Build-Depends-Indep: fortune-mod (>= 9708-36)
 
 Package: fortunes-bg
diff -Nru fortunes-bg-1.4+nmu2/fortunes-bg.install 
fortunes-bg-1.4+nmu3/fortunes-bg.install
--- fortunes-bg-1.4+nmu2/fortunes-bg.install    1970-01-01 01:00:00.000000000 
+0100
+++ fortunes-bg-1.4+nmu3/fortunes-bg.install    2026-08-05 22:33:26.000000000 
+0200
@@ -0,0 +1 @@
+bg/* usr/share/games/fortunes/bg/
diff -Nru fortunes-bg-1.4+nmu2/INSTALL fortunes-bg-1.4+nmu3/INSTALL
--- fortunes-bg-1.4+nmu2/INSTALL        2004-11-09 02:40:28.000000000 +0100
+++ fortunes-bg-1.4+nmu3/INSTALL        2026-08-05 22:33:26.000000000 +0200
@@ -1,4 +1,4 @@
-You only have to copy as root the directory bg/ in its rignt place:
+You only have to copy as root the directory bg/ to its right place:
 
        cp -r bg/ /usr/share/games/fortunes/
 
diff -Nru fortunes-bg-1.4+nmu2/rules fortunes-bg-1.4+nmu3/rules
--- fortunes-bg-1.4+nmu2/rules  2024-12-30 22:49:07.000000000 +0100
+++ fortunes-bg-1.4+nmu3/rules  2026-08-05 22:33:26.000000000 +0200
@@ -1,30 +1,11 @@
 #!/usr/bin/make -f
 
-SHELL = /bin/bash
-
-package = fortunes-bg
-
 source = bgauthors intauthors bgproverb intproverb history others
 compiled = $(source:%=%.dat)
 u8 = $(source:%=%.u8)
 
-FORTUNEROOT=/usr/share/games/fortunes
-
-BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
-
-build-indep: $(compiled) $(u8)
-       $(checkdir)
-       rm -r bg/
-       mkdir bg
-       cp -d $(source) $(compiled) $(u8) bg/
-
-build-arch:
-       $(checkdir)
-
-build: build-indep build-arch
-
-install: build
-       cp -r bg/ $(FORTUNEROOT)/
+%:
+       dh $@ --without=single-binary
 
 %.dat: %
        strfile $<
@@ -32,36 +13,13 @@
 %.u8: %
        ln -s $< $@
 
-clean:
-       $(checkdir)
-       -rm -rf *~ tmp files* substvars
+override_dh_auto_build: $(compiled) $(u8)
+       -mkdir bg
+       cp -d $(source) $(compiled) $(u8) bg/
+
+override_dh_auto_clean:
+       -rm -rf bg/
        -rm -f *.dat *.u8
 
-binary-indep:  build-indep
-       $(checkdir)
-       -rm -rf tmp
-       install -d tmp/DEBIAN
-       install -d tmp/usr/share/doc/$(package)
-       cp copyright tmp/usr/share/doc/$(package)
-       cp changelog tmp/usr/share/doc/$(package)/changelog
-       gzip -9nv tmp/usr/share/doc/$(package)/changelog
-       install -d tmp/usr/share/games/fortunes/bg/
-       cp -d $(source) $(compiled) $(u8) tmp/usr/share/games/fortunes/bg/
-       dpkg-gencontrol -isp
-       chmod -R go=rX,u=rwX tmp
-       find debian/tmp -newermt '$(BUILD_DATE)' -print0 | \
-               xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
-       dpkg-deb --root-owner-group --build tmp ..
-
-binary-arch:   build-arch
-
-define checkdir
-       test -f bgauthors -a -f debian/rules
-endef
-
-binary: binary-indep binary-arch
-
-
-.PHONY: build-arch build-indep build \
-       binary binary-arch binary-indep \
-       clean
+override_dh_auto_install:
+override_dh_auto_test:

Reply via email to