[med-svn] [bedtools] 01/02: Use dh to easily enable unit tests at package build time
Andreas Tille
tille at debian.org
Fri May 23 21:08:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch debian/unstable
in repository bedtools.
commit 4b3e74a797b9fa959c939ada90aa8e57074b1267
Author: Andreas Tille <tille at debian.org>
Date: Fri May 9 10:38:18 2014 +0200
Use dh to easily enable unit tests at package build time
---
debian/changelog | 2 ++
debian/control | 4 +---
debian/rules | 19 ++++++++++++-------
3 files changed, 15 insertions(+), 10 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index f1fca9f..9c803d0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ bedtools (2.19.1-2) UNRELEASED; urgency=medium
* debian/tests/upstream: Use content from bedtools-test package to
actually run the test suite
Closes: #747337
+ * debian/rules: Use dh to easily enable unit tests at package build
+ time
-- Andreas Tille <tille at debian.org> Fri, 09 May 2014 09:48:05 +0200
diff --git a/debian/control b/debian/control
index 07cbf02..8850c11 100644
--- a/debian/control
+++ b/debian/control
@@ -4,9 +4,7 @@ Uploaders: Charles Plessy <plessy at debian.org>,
Andreas Tille <tille at debian.org>
Section: science
Priority: optional
-Build-Depends: cdbs,
- debhelper (>= 9),
- quilt,
+Build-Depends: debhelper (>= 9),
python,
zlib1g-dev
Standards-Version: 3.9.5
diff --git a/debian/rules b/debian/rules
index 1359f4a..b974d84 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,16 +2,21 @@
export DH_VERBOSE=1
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/makefile.mk
-include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+DEB_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION := $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION := $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
-DEB_DH_BUILDDEB_ARGS = -- -Z xz
+%:
+ dh $@
-DEB_INSTALL_CHANGELOGS_ALL := RELEASE_HISTORY
+override_dh_installchangelogs:
+ dh_installchangelogs RELEASE_HISTORY
+
+override_dh_install:
+ dh_install
+ rm -f $(CURDIR)/debian/$(DEBPKGNAME)/usr/bin/groupBy # distributed in the filo package.
get-orig-source:
uscan --no-symlink --force-download --download-version $(DEB_UPSTREAM_VERSION)
-binary-fixup/bedtools::
- rm $(CURDIR)/debian/bedtools/usr/bin/groupBy # distributed in the filo package.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/bedtools.git
More information about the debian-med-commit
mailing list