Bump debhelper compatibility level to 7
authorStephane Glondu <steph@glondu.net>
Tue, 8 Jul 2008 12:33:09 +0000 (14:33 +0200)
committerStephane Glondu <steph@glondu.net>
Tue, 8 Jul 2008 18:11:31 +0000 (20:11 +0200)
 * use debian/clean for cleaning upstream files
 * make explicit sourcedir in dh_install calls
 * dh_clean -k -> dh_prep

debian/changelog
debian/clean [new file with mode: 0644]
debian/compat
debian/control
debian/rules

index 9b563561404dd00695324f223a4ae4be76b08846..be38b65273de500becfb4ac0b1434b805b2c7f45 100644 (file)
@@ -1,8 +1,10 @@
 ocaml (3.10.2-4) UNRELEASED; urgency=low
 
   * Switching packaging to git (from svn)
+  * Bump debhelper compatibility level to 7, and use debian/clean feature
+    of dh_clean
 
- -- Stephane Glondu <steph@glondu.net>  Tue, 08 Jul 2008 11:15:35 +0200
+ -- Stephane Glondu <steph@glondu.net>  Tue, 08 Jul 2008 14:30:11 +0200
 
 ocaml (3.10.2-3) unstable; urgency=low
 
diff --git a/debian/clean b/debian/clean
new file mode 100644 (file)
index 0000000..e2d10dd
--- /dev/null
@@ -0,0 +1,13 @@
+_boot_log1
+_boot_log2
+_log
+byterun/libcamlrun_shared.so
+camlp4/config/Makefile
+camlp4/config/Makefile.cnf
+config/Makefile
+config/m.h
+config/s.h
+debian/README.labltk
+driver/ocamlcomp.sh
+emacs/ocamltags
+myocamlbuild_config.ml
index 7ed6ff82de6bcc2a78243fc9c54d3ef5ac14da69..7f8f011eb73d6043d2e6db9d2c101195ae2801f2 100644 (file)
@@ -1 +1 @@
-5
+7
index 4d803c0d9437889e4b86e6287a38dc0bc64117c4..fe68c8878d7243c40d6ee07736cd80116a13abfc 100644 (file)
@@ -3,7 +3,7 @@ Section: devel
 Priority: optional
 Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
 Uploaders: Sven Luther <luther@debian.org>, Stefano Zacchiroli <zack@debian.org>, Julien Cristau <julien.cristau@ens-lyon.org>, Samuel Mimram <smimram@debian.org>, Sylvain Le Gall <gildor@debian.org>, Ralf Treinen <treinen@debian.org>
-Build-Depends: debhelper (>> 5.0.0), tcl8.4-dev, tk8.4-dev, libncurses5-dev, libgdbm-dev, dpatch, bzip2, docbook-xml, docbook-utils, gcc-4.2 [arm]
+Build-Depends: debhelper (>= 7), tcl8.4-dev, tk8.4-dev, libncurses5-dev, libgdbm-dev, dpatch, bzip2, docbook-xml, docbook-utils, gcc-4.2 [arm]
 Standards-Version: 3.7.3
 Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocaml.git
 Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocaml.git
index 07e0a7644fcf35e0ac7bd43b57bed3d0dd5c5ab6..bb60df8364b7006427ffd25a29866f5db9b489a1 100755 (executable)
@@ -146,15 +146,11 @@ clean: abi-sed unpatch
            mv -f debian/config.orig.$$ext config/gnu/config.$$ext; \
          fi; \
        done
-       # File not cleaned by upstream
-       -$(RM) _boot_log1
-       -$(RM) _boot_log2
-       -$(RM) _log
-       -$(RM) myocamlbuild_config.ml
+       # Files not cleaned by upstream (most of them are cleaned
+       # using debian/clean feature of dh_clean in debhelper 7)
        -$(RM) ocaml-$(OCAMLABI)
-       -$(RM) byterun/libcamlrun_shared.so
 
-       dh_clean debian/README.labltk camlp4/config/Makefile.cnf camlp4/config/Makefile config/m.h config/s.h config/Makefile emacs/ocamltags driver/ocamlcomp.sh
+       dh_clean
        debian/rules abi-sed-clean
        -$(RM) debian/$(SRCTARBALL)
 
@@ -162,7 +158,7 @@ install: install-indep install-arch
 install-indep: build-indep
        dh_testdir
        dh_testroot
-       dh_clean -k -i
+       dh_prep -i
        dh_installdirs -i
 
        # Install Emacs files
@@ -173,12 +169,12 @@ install-indep: build-indep
        fi
        $(MAKE) -C emacs SCRIPTDIR=$(CURDIR)/debian/ocaml-mode/usr/bin install-ocamltags
 
-       dh_install -i
+       dh_install --sourcedir=. -i
 
 install-arch: build-arch
        dh_testdir
        dh_testroot
-       dh_clean -k -a
+       dh_prep -a
        dh_installdirs -a
 
        # Let's install ocaml first.
@@ -280,7 +276,7 @@ install-arch: build-arch
        cp debian/ocaml-nox.override debian/ocaml-nox/usr/share/lintian/overrides/ocaml-nox
 
        chmod +x debian/cdbs/ocamldoc-api-ref-config
-       dh_install -a
+       dh_install --sourcedir=. -a
 
 # Must not depend on anything. This is to be called by
 # binary-arch/binary-multi in another 'make' thread.