[Python-modules-commits] r13316 - in packages/pdfminer/trunk/debian (5 files)
jwilk at users.alioth.debian.org
jwilk at users.alioth.debian.org
Tue Jun 8 11:44:53 UTC 2010
Date: Tuesday, June 8, 2010 @ 11:44:37
Author: jwilk
Revision: 13316
Strip non-DFSG-free test documents from the .orig.tar.gz. Run tests only on those files that are actually available.
Added:
packages/pdfminer/trunk/debian/patches/
packages/pdfminer/trunk/debian/patches/dfsg-testsuite.diff
packages/pdfminer/trunk/debian/patches/series
Modified:
packages/pdfminer/trunk/debian/changelog
packages/pdfminer/trunk/debian/rules
Modified: packages/pdfminer/trunk/debian/changelog
===================================================================
--- packages/pdfminer/trunk/debian/changelog 2010-06-08 11:39:38 UTC (rev 13315)
+++ packages/pdfminer/trunk/debian/changelog 2010-06-08 11:44:37 UTC (rev 13316)
@@ -1,5 +1,8 @@
-pdfminer (20100424-1) UNRELEASED; urgency=low
+pdfminer (20100424+dfsg-1) UNRELEASED; urgency=low
* Initial release (closes: #584555).
+ * Strip non-DFSG-free test documents from the .orig.tar.gz.
+ + Run tests only on those files that are actually available.
+ [dfsg-testsuite.diff]
- -- Jakub Wilk <jwilk at debian.org> Sat, 05 Jun 2010 12:41:38 +0200
+ -- Jakub Wilk <jwilk at debian.org> Tue, 08 Jun 2010 13:38:05 +0200
Added: packages/pdfminer/trunk/debian/patches/dfsg-testsuite.diff
===================================================================
--- packages/pdfminer/trunk/debian/patches/dfsg-testsuite.diff (rev 0)
+++ packages/pdfminer/trunk/debian/patches/dfsg-testsuite.diff 2010-06-08 11:44:37 UTC (rev 13316)
@@ -0,0 +1,53 @@
+Description:
+ Run tests only on those files that are actually present in the tarball.
+ This patch is required because several test documents were removed from the
+ Debian source package.
+Author: Jakub Wilk <jwilk at debian.org>
+Forwarded: no
+Last-Update: 2010-06-08
+
+--- pdfminer-20100424+dfsg.orig/samples/Makefile
++++ pdfminer-20100424+dfsg/samples/Makefile
+@@ -6,38 +6,10 @@ CMP=:
+ PYTHON=python
+ PDF2TXT=PYTHONPATH=.. $(PYTHON) ../tools/pdf2txt.py -Dx -p1
+
+-HTMLS= \
+- simple1.html \
+- simple2.html \
+- dmca.html \
+- f1040nr.html \
+- i1040nr.html \
+- jo.html \
+- kampo.html \
+- naacl06-shinyama.html \
+- nlp2004slides.html
+-
+-TEXTS= \
+- simple1.txt \
+- simple2.txt \
+- dmca.txt \
+- f1040nr.txt \
+- i1040nr.txt \
+- jo.txt \
+- kampo.txt \
+- naacl06-shinyama.txt \
+- nlp2004slides.txt
+-
+-XMLS= \
+- simple1.xml \
+- simple2.xml \
+- dmca.xml \
+- f1040nr.xml \
+- i1040nr.xml \
+- jo.xml \
+- kampo.xml \
+- naacl06-shinyama.xml \
+- nlp2004slides.xml
++PDFS = $(wildcard *.pdf)
++HTMLS = $(PDFS:.pdf=.html)
++TEXTS = $(PDFS:.pdf=.txt)
++XMLS= $(PDFS:.pdf=.xml)
+
+ test: htmls texts xmls
+
Added: packages/pdfminer/trunk/debian/patches/series
===================================================================
--- packages/pdfminer/trunk/debian/patches/series (rev 0)
+++ packages/pdfminer/trunk/debian/patches/series 2010-06-08 11:44:37 UTC (rev 13316)
@@ -0,0 +1 @@
+dfsg-testsuite.diff
Modified: packages/pdfminer/trunk/debian/rules
===================================================================
--- packages/pdfminer/trunk/debian/rules 2010-06-08 11:39:38 UTC (rev 13315)
+++ packages/pdfminer/trunk/debian/rules 2010-06-08 11:44:37 UTC (rev 13316)
@@ -1,5 +1,8 @@
#!/usr/bin/make -f
+SOURCE_DIR = $(dir $(firstword $(MAKEFILE_LIST)))/..
+UPSTREAM_VERSION = $(shell cd $(SOURCE_DIR) && dpkg-parsechangelog | sed -n -r -e '/^Version: ([0-9.]+)([+]dfsg).*/ { s//\1/; p; q; }')
+
.PHONY: override_dh_auto_build
override_dh_auto_build:
$(MAKE) cmap
@@ -32,6 +35,10 @@
> docs/changelog
dh_installchangelogs docs/changelog
+.PHONY:
+get-orig-source:
+ sh -x $(SOURCE_DIR)/debian/get-orig-source.sh $(UPSTREAM_VERSION)
+
.PHONY: build build-arch build-indep binary binary-arch binary-indep clean
build build-arch build-indep binary binary-indep clean:
dh $(@)
More information about the Python-modules-commits
mailing list