Commit 85d74f0e authored by SVN-Git Migration's avatar SVN-Git Migration

Merge SVN HEAD

parents 118934e0 dad8583a
pdfminer (20140328+dfsg-1) UNRELEASED; urgency=medium
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.
[ Daniele Tricoli ]
* New upstream release. (Closes: #741046, #794682)
* debian/compat
- Bump debhelper compatibility level to 9.
* debian/control
- Bump debhelper B-D to (>= 9).
- Bump Standards-Version to 3.9.6 (no changes needed).
- Add dh-python to B-D.
- Bump X-Python-Version to >= 2.6.
- Drop elinks-lite from B-D since it is a transitional package.
* debian/copyright
- Update Format URI.
- Update copyright years.
- Use Files-Excluded to remove non redistributable files and prebuilt
Python objects.
- Rename cmapsrc into cmaprsrc.
* debian/get-orig-source.sh
- Remove because superseded by Files-Excluded in debian/copyright.
* debian/manpages/latin2ascii.1.xml
- Add manpage for latin2ascii.
* debian/patches/pickle-protocol2.diff
- Refresh.
* debian/patches/avoid-timestamped-gzip.patch
- Avoid timestamps in gzip-compressed file and use compressionlevel=9 to
reduce data size.
* debian/python-pdfminer.docs
- Remove README.txt since not shipped anymore.
* debian/python-pdfminer.install
- Add /usr/bin/latin2ascii.
* debian/{python-pdfminer.install,rules}
- Don't recreate cmap/__init__.py since pdfminer.cmap is not a
Python package anymore.
* debian/rules
- Use uscan inside get-orig-source target.
- Disable tests inside samples directory since they are failing also
upstream.
* debian/watch
- Use pypi.debian.net redirector.
-- Daniele Tricoli <eriol@mornie.org> Thu, 24 Sep 2015 15:31:24 +0200
pdfminer (20110515+dfsg-1) unstable; urgency=low
* New upstream release
......
......@@ -3,19 +3,21 @@ Section: python
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Uploaders: Daniele Tricoli <eriol@mornie.org>
Build-Depends: debhelper (>= 7.0.50~),
docbook-xml,
docbook-xsl,
elinks-lite | elinks,
libxml2-utils,
python-all (>= 2.6.6-3~),
python-nose,
xsltproc,
X-Python-Version: >= 2.4
Standards-Version: 3.9.2
Build-Depends:
debhelper (>= 9),
dh-python,
docbook-xml,
docbook-xsl,
elinks,
libxml2-utils,
python-all (>= 2.6.6-3~),
python-nose,
xsltproc,
X-Python-Version: >= 2.6
Standards-Version: 3.9.6
Homepage: http://www.unixuser.org/~euske/python/pdfminer/
Vcs-Svn: svn://svn.debian.org/python-modules/packages/pdfminer/trunk/
Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pdfminer/trunk/
Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/pdfminer/trunk/
Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/pdfminer/trunk/
Package: python-pdfminer
Architecture: all
......
Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: PDFminer
Upstream-Contact: Yusuke Shinyama <yusuke@cs.nyu.edu>
Source: http://pypi.python.org/pypi/pdfminer/
Files-Excluded: samples/nonfree/* pdfminer/*.pyc
Comment:
All but trivial test PDF documents were removed from the sources/ directory
because of lack of source code for them.
......@@ -26,10 +27,10 @@ License: Expat
SOFTWARE.
Files: *
Copyright: 2004-2011, Yusuke Shinyama <yusuke@cs.nyu.edu>
Copyright: 2004-2013, Yusuke Shinyama <yusuke@cs.nyu.edu>
License: Expat
Files: cmapsrc/*.txt
Files: cmaprsrc/*.txt
Copyright: 1990-2010, Adobe Systems Incorporated
License: BSD-Adobe
Redistribution and use in source and binary forms, with or without
......@@ -121,5 +122,5 @@ License: public-domain
Files: debian/*
Copyright: 2010, Jakub Wilk <jwilk@debian.org>
2011, Daniele Tricoli <eriol@mornie.org>
2011-2014 Daniele Tricoli <eriol@mornie.org>
License: Expat
set -e
export TAR_OPTIONS="--owner root --group root --mode a+rX"
export GZIP="-9n"
pwd=$(pwd)
version="$1"
if [ -z "$version" ]
then
printf 'Usage: %s <version>\n' "$0"
exit 1
fi
cd "$(dirname "$0")/../"
tmpdir=$(mktemp -d get-orig-source.XXXXXX)
uscan --noconf --force-download --rename --download-version="$version" --destdir="$tmpdir"
cd "$tmpdir"
tar -xzf pdfminer_*.orig.tar.gz
rm *.tar.gz
# Remove test documents without source:
rm -Rf pdfminer-*/samples/nonfree/
# Remove byte-compiled files
find pdfminer-* -name '*.py[co]' -delete
mv pdfminer-*/ "pdfminer-$version.orig"
tar -czf "$pwd/pdfminer_$version+dfsg.orig.tar.gz" pdfminer-*.orig/
cd ..
rm -Rf "$tmpdir"
# vim:ts=4 sw=4 et
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "http://www.docbook.org/xml/4.5/docbookx.dtd">
<refentry>
<refentryinfo>
<title>PDFMiner Manual</title>
<productname>latin2ascii</productname>
<authorgroup>
<author>
<firstname>Daniele</firstname>
<surname>Tricoli</surname>
<contrib>Wrote this manual page for the Debian system.</contrib>
<address><email>eriol@mornie.org</email></address>
</author>
<author>
<firstname>Yusuke</firstname>
<surname>Shinyama</surname>
<contrib>Author of PDFMiner and its original HTML documentation.</contrib>
<address><email>yusuke@cs.nyu.edu</email></address>
</author>
</authorgroup>
</refentryinfo>
<refmeta>
<refentrytitle>latin2ascii</refentrytitle>
<manvolnum>1</manvolnum>
</refmeta>
<refnamediv>
<refname>latin2ascii</refname>
<refpurpose>converts Latin-1 characters into ASCII</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>latin2ascii</command>
<arg choice='opt' rep='repeat'><replaceable>option</replaceable></arg>
<arg choice='plain' rep='repeat'><replaceable>file</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsection>
<title>Description</title>
<para>
<command>latin2ascii</command> converts Latin-1 characters into ASCII
using an in-house mapping table.
</para>
</refsection>
<refsection>
<title>Options</title>
<variablelist>
<varlistentry>
<term><option>-c <replaceable>codec</replaceable></option></term>
<listitem>
<para>
Specifies input file codec.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>See also</title>
<para>
<citerefentry><refentrytitle>pdf2txt</refentrytitle><manvolnum>1</manvolnum></citerefentry>
</para>
</refsection>
</refentry>
Description: Avoid timestamps in gzip-compressed file and use
compressionlevel=9 to reduce data size.
Author: Daniele Tricoli <eriol@mornie.org>
Forwarded: https://github.com/euske/pdfminer/pull/119
Last-Update: 2015-08-17
--- a/tools/conv_cmap.py
+++ b/tools/conv_cmap.py
@@ -180,16 +180,22 @@
fname = '%s.pickle.gz' % enc
path = os.path.join(outdir, fname)
print >>sys.stderr, 'writing: %r...' % path
- fp = gzip.open(path, 'wb')
- converter.dump_cmap(fp, enc)
- fp.close()
+ with open(path, 'wb') as fp:
+ # with statement support for GzipFile is available only from Python
+ # 2.7
+ fgz = gzip.GzipFile('', 'wb', 9, fp, 0.)
+ converter.dump_cmap(fgz, enc)
+ fgz.close()
fname = 'to-unicode-%s.pickle.gz' % regname
path = os.path.join(outdir, fname)
print >>sys.stderr, 'writing: %r...' % path
- fp = gzip.open(path, 'wb')
- converter.dump_unicodemap(fp)
- fp.close()
+ with open(path, 'wb') as fp:
+ # with statement support for GzipFile is available only from Python
+ # 2.7
+ fgz = gzip.GzipFile('', 'wb', 9, fp, 0.)
+ converter.dump_unicodemap(fgz)
+ fgz.close()
return
if __name__ == '__main__': sys.exit(main(sys.argv))
......@@ -3,12 +3,21 @@ Author: Jakub Wilk <jwilk@debian.org>
--- a/tools/conv_cmap.py
+++ b/tools/conv_cmap.py
@@ -148,7 +148,7 @@
CID2UNICHR_H=cid2unichr_h,
CID2UNICHR_V=cid2unichr_v,
)
- fp.write(pickle.dumps(data))
+ fp.write(pickle.dumps(data, protocol=2))
fp.close()
@@ -135,7 +135,7 @@
IS_VERTICAL=self.is_vertical.get(enc, False),
CODE2CID=self.code2cid.get(enc),
)
- fp.write(pickle.dumps(data))
+ fp.write(pickle.dumps(data, protocol=2))
return
return 0
def dump_unicodemap(self, fp):
@@ -143,7 +143,7 @@
CID2UNICHR_H=self.cid2unichr_h,
CID2UNICHR_V=self.cid2unichr_v,
)
- fp.write(pickle.dumps(data))
+ fp.write(pickle.dumps(data, protocol=2))
return
# main
python2.diff
pickle-protocol-2.diff
avoid-timestamped-gzip.patch
/usr/bin/pdf2txt
/usr/bin/dumppdf
/usr/bin/latin2ascii
/usr/lib/python*/*-packages/pdfminer-*.egg-info
/usr/lib/python*/*-packages/pdfminer/*.py
/usr/lib/python*/*-packages/pdfminer/cmap/*.py
......@@ -7,7 +7,6 @@ upstream_version = $(shell cd $(here) && dpkg-parsechangelog | sed -n -r -e '/^V
override_dh_auto_build:
$(MAKE) cmap
dh_auto_build
echo '#' > pdfminer/cmap/__init__.py
.PHONY: override_dh_install
override_dh_install:
......@@ -19,17 +18,22 @@ override_dh_installman:
$(MAKE) -C debian/manpages/
dh_installman
# Disable tests inside samples directory since they are failing also
# upstream:
# https://github.com/euske/pdfminer/issues/115
.PHONY: override_dh_auto_test
override_dh_auto_test:
ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
set -e -x; \
for python in $(shell pyversions -r); do \
$$python /usr/bin/nosetests --with-doctest --verbose pdfminer/*.py; \
$(MAKE) -C samples clean; \
$(MAKE) -C samples PYTHON=$$python CMP="diff -u" HTMLS_NONFREE= TEXTS_NONFREE= XMLS_NONFREE= test; \
done
endif
.PHONY: get-orig-source
get-orig-source:
uscan --verbose --force-download --repack
.PHONY: override_dh_installchangelogs
override_dh_installchangelogs:
elinks -config-file /dev/null -dump -no-numbering -no-references docs/index.html \
......@@ -37,10 +41,6 @@ override_dh_installchangelogs:
> docs/changelog
dh_installchangelogs docs/changelog
.PHONY:
get-orig-source:
sh -x $(here)/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 $(@) --with python2 -Spython_distutils
......
version=3
opts=dversionmangle=s/\+dfsg// \
http://pypi.python.org/packages/source/p/pdfminer/pdfminer-([0-9.]+(?:p[0-9.]+)?)[.]tar[.]gz
opts=uversionmangle=s/(rc|a|b|c)/~$1/,dversionmangle=s/\+dfsg\d*$//,repacksuffix=+dfsg \
http://pypi.debian.net/pdfminer/pdfminer-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment