[pybtex] 52/108: restored build with python-support

Daniel Stender stender at moszumanska.debian.org
Fri Jul 21 10:18:29 UTC 2017


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

stender pushed a commit to branch master
in repository pybtex.

commit bef4a07ba2675a2d1158f1e53021ad4468d479cf
Author: Daniel Stender <stender at debian.org>
Date:   Tue Mar 15 15:38:05 2011 +0000

    restored build with python-support
---
 debian/changelog |  8 ++------
 debian/control   |  5 ++---
 debian/rules     | 40 ++++++++++++++++++++++++++++++++++++++--
 3 files changed, 42 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fabd6f1..9918bcb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,16 +3,12 @@ pybtex (0.15-1) unstable; urgency=low
   * New maintainer (closes: #587423).
   * New upstream release
     + Changed license in debian/copyright from GPL-3 to EXPAT. 
-  * Changed to build with dh_python2
-    + Changed debian/rules to build with dh $@ --with python 2.
-    + Changed debian/control to X-Python-Version, added Breaks,
-      removed python-support build-dep.
-  * Changed debian/copyright
+   * Changed debian/copyright
     + to meet CANDIDATE DEP-5.
     + removed GPL-2+ license for database/convert/__main__.py.
   * Uploaded to Unstable.
   
- -- Daniel Stender <daniel at danielstender.com>  Tue, 15 Mar 2011 16:00:33 +0100
+ -- Daniel Stender <daniel at danielstender.com>  Tue, 15 Mar 2011 16:36:14 +0100
 
 pybtex (0.14-1) experimental; urgency=low
 
diff --git a/debian/control b/debian/control
index edf1b08..579507b 100644
--- a/debian/control
+++ b/debian/control
@@ -3,10 +3,10 @@ Section: tex
 Priority: optional
 Maintainer: Daniel Stender <daniel at danielstender.com>
 Uploaders: Python Applications Packaging Team <python-apps-team at lists.alioth.debian.org>
-Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.5),
+Build-Depends: debhelper (>= 7.0.50~), python-all (>= 2.5), python-support (>= 0.90),
   python-setuptools, python-nose, python-pyparsing, python-yaml,
   python-docutils, python-jinja2, python-pygments, elinks-lite | elinks
-X-Python-Version: >= 2.6
+XS-Python-Version: >= 2.6
 Standards-Version: 3.9.1
 Homepage: http://pybtex.sourceforge.net/
 Vcs-Svn: svn://svn.debian.org/python-apps/packages/pybtex/trunk/
@@ -18,7 +18,6 @@ Depends: ${misc:Depends}, ${python:Depends}, python-pyparsing
 Conflicts: pybliographer (<< 1.2.12-3.1~), texlive-binaries (<< 2009-5~),
   texlive-base-bin (<< 2009-5~)
 Recommends: python-yaml
-Breaks: ${python:Breaks}
 Description: BibTeX-compatible bibliography processor
  Pybtex reads citation information from a file and produces a formatted
  bibliography. BibTeX style files are supported. Alternatively it is
diff --git a/debian/rules b/debian/rules
index d421ef7..8f07b80 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,40 @@
 #!/usr/bin/make -f
-%:
-	dh $@ --with python2
 
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+	dh_auto_install
+	cd debian/pybtex/usr/bin && mv pybtex bibtex.pybtex
+	for module in tests docgen; do \
+	rm -Rf debian/pybtex/usr/lib/python*/*-packages/pybtex/$$module/; \
+	done
+	rm -f debian/pybtex/usr/lib/python*/*-packages/*.egg-info/requires.txt
+
+.PHONY: override_dh_installman
+override_dh_installman:
+	dh_installman
+	cd debian/pybtex/ && rename.ul pybtex bibtex.pybtex usr/share/man/man*/pybtex.[0-9]
+
+.PHONY: override_dh_auto_test
+override_dh_auto_test:
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
+	set -e; \
+	for python in $(shell pyversions -r); do \
+		$$python setup.py nosetests; \
+	done
+endif
+
+.PHONY: override_dh_installchangelogs
+override_dh_installchangelogs:
+	elinks -config-file /dev/null -dump -no-numbering -no-references docs/html/history.html \
+	| grep -A1000 ^Version \
+	| sed -e '/ *-\{50,\}- *$$/ { s///; q }' \
+	> docs/changelog
+	dh_installchangelogs docs/changelog
+
+.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
+build build-arch build-indep binary binary-indep clean:
+	dh $(@)
+# In order not to confuse lintian, binary-arch is a separate target:
+binary-arch:
+
+# vim:ts=4 sw=4 noet

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



More information about the debian-science-commits mailing list