summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorJohannes Schauer <josch@debian.org>2016-08-16 16:35:49 +0200
committerJohannes Schauer <josch@debian.org>2016-08-16 16:35:49 +0200
commitd3481fe48afe150f38f331048abe6452b8389723 (patch)
treeb08746f545ce585c9ecfd5632b14ddbfe791ce27 /debian
parent65960d846bed2bbc1a83269b715bb78e83e36478 (diff)
parent242e222297a3e2c3f78273645faaf63c4a8e238f (diff)
img2pdf (0.2.1-1) unstable; urgency=medium
* New upstream release (closes: #833376) [dgit import unpatched img2pdf 0.2.1-1]
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog18
-rw-r--r--debian/compat1
-rw-r--r--debian/control40
-rw-r--r--debian/copyright36
-rw-r--r--debian/img2pdf.install1
-rw-r--r--debian/img2pdf.manpages1
-rw-r--r--debian/python3-img2pdf.install1
-rw-r--r--debian/python3-jp2.substvars2
-rwxr-xr-xdebian/rules13
-rw-r--r--debian/source/format1
-rw-r--r--debian/watch4
11 files changed, 118 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..4f70610
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,18 @@
+img2pdf (0.2.1-1) unstable; urgency=medium
+
+ * New upstream release (closes: #833376)
+
+ -- Johannes Schauer <josch@debian.org> Tue, 16 Aug 2016 16:35:49 +0200
+
+img2pdf (0.2.0-2) unstable; urgency=medium
+
+ * Add missing dependency on python3-pkg-resources (Thanks, Sean Whitton for
+ the diff) (Closes: #818617).
+
+ -- Johannes Schauer <josch@debian.org> Sun, 03 Jul 2016 06:08:37 +0200
+
+img2pdf (0.2.0-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #742075)
+
+ -- Johannes Schauer <josch@debian.org> Tue, 09 Feb 2016 08:50:55 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..a9bbcfa
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,40 @@
+Source: img2pdf
+Maintainer: Johannes Schauer <josch@debian.org>
+Section: python
+Priority: optional
+Build-Depends: dh-python, python3-setuptools, python3-all, debhelper, python3-pil, python3-pdfrw, help2man, python3-pkg-resources
+Standards-Version: 3.9.6
+Homepage: https://gitlab.mister-muffin.de/josch/img2pdf
+
+Package: img2pdf
+Architecture: all
+Section: utils
+Depends: ${misc:Depends}, ${python3:Depends}, python3-img2pdf
+Description: Lossless conversion of raster images to PDF
+ This program will take a list of raster images and produce a PDF file with the
+ images embedded in it. JPEG and JPEG2000 images will be included without
+ recompression. Raster images in other formats will be included with zip/flate
+ encoding which usually leads to an increase in the resulting size because
+ formats like png compress better than PDF which just zip/flate compresses the
+ RGB data. As a result, this tool is able to losslessly wrap images into a PDF
+ container with a quality to filesize ratio that is typically better (in case
+ of JPEG and JPEG2000 images) or equal (in case of other formats) than that of
+ existing tools.
+
+Package: python3-img2pdf
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Suggests: python3-pdfrw
+Description: Lossless conversion of raster images to PDF
+ This module will take a list of raster images and produce a PDF file with the
+ images embedded in it. JPEG and JPEG2000 images will be included without
+ recompression. Raster images in other formats will be included with zip/flate
+ encoding which usually leads to an increase in the resulting size because
+ formats like png compress better than PDF which just zip/flate compresses the
+ RGB data. As a result, this module is able to losslessly wrap images into a
+ PDF container with a quality to filesize ratio that is typically better (in
+ case of JPEG and JPEG2000 images) or equal (in case of other formats) than
+ that of existing tools.
+ .
+ Img2pdf includes its own PDF writer but will use the pdfrw module if
+ available instead.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2458201
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,36 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: img2pdf
+Source: https://gitlab.mister-muffin.de/josch/img2pdf
+
+Files: *
+Copyright: 2014 Johannes Schauer <josch@debian.org>
+License: LGPL-3
+ This program is free software; you can redistribute it
+ and/or modify it under the terms of the Lesser GNU General Public
+ License as published by the Free Software Foundation version 3.
+ .
+ On Debian systems, the full text of the Lesser GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/LGPL-3'.
+
+Files: src/jp2.py
+Copyright:
+ 2014 Johannes Schauer <josch@debian.org>
+ KB / National Library of the Netherlands, Open Planets Foundation
+License: LGPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ .
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+ .
+ On Debian systems, the full text of the Lesser GNU General Public
+ License version 3 can be found in the file
+ `/usr/share/common-licenses/LGPL-3'.
diff --git a/debian/img2pdf.install b/debian/img2pdf.install
new file mode 100644
index 0000000..2f5f524
--- /dev/null
+++ b/debian/img2pdf.install
@@ -0,0 +1 @@
+usr/bin/img2pdf
diff --git a/debian/img2pdf.manpages b/debian/img2pdf.manpages
new file mode 100644
index 0000000..54b8e2b
--- /dev/null
+++ b/debian/img2pdf.manpages
@@ -0,0 +1 @@
+img2pdf.1
diff --git a/debian/python3-img2pdf.install b/debian/python3-img2pdf.install
new file mode 100644
index 0000000..6845771
--- /dev/null
+++ b/debian/python3-img2pdf.install
@@ -0,0 +1 @@
+usr/lib
diff --git a/debian/python3-jp2.substvars b/debian/python3-jp2.substvars
new file mode 100644
index 0000000..978fc8b
--- /dev/null
+++ b/debian/python3-jp2.substvars
@@ -0,0 +1,2 @@
+misc:Depends=
+misc:Pre-Depends=
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..43f4ec5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_clean:
+ rm -rf src/img2pdf.egg-info
+ rm -f img2pdf.1
+ dh_auto_clean
+
+override_dh_auto_build:
+ dh_auto_build
+ help2man --no-info --name="lossless conversion of raster images to pdf" ./src/img2pdf.py -o img2pdf.1
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d69d385
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/img2pdf/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/img2pdf/img2pdf-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))