[lbt] 04/09: debian/rules: use dh

Ralf Treinen treinen at moszumanska.debian.org
Tue Dec 6 08:14:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

treinen pushed a commit to branch master
in repository lbt.

commit badc7ae3f15992ba92d1e56d3ea9fff795f27131
Author: Ralf Treinen <treinen at free.fr>
Date:   Mon Dec 5 21:41:30 2016 +0100

    debian/rules: use dh
---
 debian/changelog |  3 ++-
 debian/rules     | 65 ++------------------------------------------------------
 2 files changed, 4 insertions(+), 64 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index b5e845b..f5d5852 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,9 @@ lbt (1.2.2-6) UNRELEASED; urgency=medium
   * install docs in /usr/share/docs/lbt:
     - added debian/lbt.docs
     - changed file location in lbt.doc-base
+  * debian/rules: rewrite, using dh
 
- -- Ralf Treinen <treinen at debian.org>  Mon, 05 Dec 2016 21:21:54 +0100
+ -- Ralf Treinen <treinen at debian.org>  Mon, 05 Dec 2016 21:40:53 +0100
 
 lbt (1.2.2-5) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index b132031..2d33f6a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,65 +1,4 @@
 #!/usr/bin/make -f
-# debian/rules for lbt
 
-#export DH_VERBOSE=1
-
-# workaround for gcc-4.0 bug on m68k
-export DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
-ifeq ($(DEB_HOST_ARCH),m68k)
-  OPTFLAGS = -O2
-else		
-  OPTFLAGS = -O3
-endif
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-  OPTFLAGS = -O0
-endif
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-  OPTFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-  INSTALL_PROGRAM += -s
-endif
-
-build: build-stamp
-
-build-stamp:
-	dh_testdir
-	$(MAKE) CFLAGS=${OPTFLAGS}
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp
-	[ ! -f Makefile ] || $(MAKE) reallyclean
-	dh_clean
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/lbt
-
-binary-indep: build install
-
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_installchangelogs
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+%:
+	dh $@

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/lbt.git



More information about the debian-science-commits mailing list