[med-svn] [pycorrfit] 01/03: d/rules: make use of DEB_SOURCE

Andreas Tille tille at debian.org
Thu Jun 22 08:46:31 UTC 2017


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

tille pushed a commit to branch master
in repository pycorrfit.

commit 48ccc0278ccfe2f22a7d145295cc6d643736b515
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jun 22 10:10:43 2017 +0200

    d/rules: make use of DEB_SOURCE
---
 debian/changelog | 1 +
 debian/rules     | 7 +++----
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index a72a98e..d9b9323 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ pycorrfit (1.0.0+dfsg-1) UNRELEASED; urgency=medium
   * d/watch: version=4
   * update Build-Depends from latex-xcolor to texlive-latex-recommended
     Closes: #865244
+  * d/rules: make use of DEB_SOURCE
 
  -- Andreas Tille <tille at debian.org>  Thu, 22 Jun 2017 09:21:00 +0200
 
diff --git a/debian/rules b/debian/rules
index 2eb324b..9cb1707 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,6 @@ TEXDOC=PyCorrFit_doc.tex
 BIBDOC=PyCorrFit_doc.aux
 DOCDIR=doc
 PDF=PyCorrFit_doc.pdf
-pkg := $(shell dpkg-parsechangelog --show-field=Source)
 
 %:
 	dh $@ --with python2 --buildsystem=pybuild
@@ -28,11 +27,11 @@ override_dh_auto_build:
 	dh_auto_build
 
 override_dh_install:
-	rm --verbose $(CURDIR)/debian/$(pkg)/usr/lib/python2.7/dist-packages/pycorrfit/readfiles/read_pt3_scripts/LICENSE
+	find $(CURDIR)/debian/$() -name LICENSE -delete
 	dh_install
 	mv debian/pycorrfit.xpm \
-		debian/$(pkg)/usr/share/pixmaps
-	chmod -R 644 debian/$(pkg)/usr/share/doc/$(pkg)/examples/external_model_functions/
+		debian/$(DEB_SOURCE)/usr/share/pixmaps
+	chmod -R 644 debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/examples/external_model_functions/
 
 override_dh_compress:
 	dh_compress -Xsample_sessions -Xexternal_model_functions

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/pycorrfit.git



More information about the debian-med-commit mailing list