pymupdf (1.17.4+ds1-2) unstable; urgency=medium
authorBastian Germann <bastiangermann@fishpost.de>
Sun, 23 Aug 2020 19:15:38 +0000 (20:15 +0100)
committerBastian Germann <bastiangermann@fishpost.de>
Sun, 23 Aug 2020 19:15:38 +0000 (20:15 +0100)
  * Team upload

  [ Nicholas D Steeves ]
  * Mention PyMuPDF in long description so that a user who 'apt search
    pymupdf' will discover this package.

  [ Bastian Germann ]
  * Fix imports and shared libs for non-Linux platforms
  * Clean generated files

  [ Sergio Durigan Junior ]
  * d/control: Bump debhelper-compat to 13.
  * d/control: Remove duplicate field "Priority" from python3-fitz.

[dgit import unpatched pymupdf 1.17.4+ds1-2]

15 files changed:
1  2 
debian/changelog
debian/clean
debian/control
debian/copyright
debian/patches/docs
debian/patches/fiximport
debian/patches/libs
debian/patches/non-linux
debian/patches/series
debian/python3-fitz.lintian-overrides
debian/rules
debian/salsa-ci.yml
debian/source/format
debian/tests/control
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a1dba00ea5c773a55770f0a6757a9482d426b57b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,61 @@@
++pymupdf (1.17.4+ds1-2) unstable; urgency=medium
++
++  * Team upload
++
++  [ Nicholas D Steeves ]
++  * Mention PyMuPDF in long description so that a user who 'apt search
++    pymupdf' will discover this package.
++
++  [ Bastian Germann ]
++  * Fix imports and shared libs for non-Linux platforms
++  * Clean generated files
++
++  [ Sergio Durigan Junior ]
++  * d/control: Bump debhelper-compat to 13.
++  * d/control: Remove duplicate field "Priority" from python3-fitz.
++
++ -- Bastian Germann <bastiangermann@fishpost.de>  Sun, 23 Aug 2020 21:15:38 +0200
++
++pymupdf (1.17.4+ds1-1) unstable; urgency=medium
++
++  * Team upload
++  * Use debhelper provided python3:Provides
++  * Set Built-Using according to Policy 7.8 (Closes: #959958)
++  * Update upstream copyright info
++  * New upstream version 1.17.4+ds1
++  * Refresh docs patch
++  * Let dependency fit the new mupdf version
++  * Add build dependency libmujs-dev
++  * Add mujs to libs patch
++
++ -- Bastian Germann <bastiangermann@fishpost.de>  Fri, 07 Aug 2020 13:03:11 +0200
++
++pymupdf (1.16.11-1) unstable; urgency=medium
++
++  [ Johannes 'josch' Schauer ]
++  * New upstream version 1.16.11 (closes: #950639)
++  * Bump Standards-Version to 4.5.0
++  * add debian/salsa-ci.yml
++  * debian/control: b-d on libpython3-all-dev instead of libpython3-dev
++  * debian/copyright: remove unused files from Files-Excluded
++  * add autopkgtest
++  * add patch fiximport
++  * debian/control: add Rules-Requires-Root: no
++  * debian/tests/control: chdir to / to not use fitz module from unpacked
++    sources
++  * add debian/python3-fitz.lintian-overrides
++  * debian/watch: add repacksuffix
++  * debian/watch: don't run uupdate
++
++  [ Bastian Germann ]
++  * Drop non-existing examples
++  * Exclude 1.16.11 files
++  * Add docs patch
++
++ -- Johannes 'josch' Schauer <josch@debian.org>  Sun, 23 Feb 2020 21:05:36 +0100
++
++pymupdf (1.14.16-1) unstable; urgency=medium
++
++  * Initial release. (Closes: #930761)
++
++ -- Johannes 'josch' Schauer <josch@debian.org>  Sat, 22 Jun 2019 04:02:32 +0200
diff --cc debian/clean
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..c13eed2488bded34049ef9931e006a33cd8e9978
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++fitz/fitz.py
++fitz/fitz_wrap.c
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..365bdee5b0887a6f3eb9a1905263e592683dfafe
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,26 @@@
++Source: pymupdf
++Section: python
++Priority: optional
++Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
++Uploaders: Johannes 'josch' Schauer <josch@debian.org>
++Homepage: https://github.com/pymupdf/PyMuPDF
++Vcs-Browser: https://salsa.debian.org/python-team/modules/pymupdf
++Vcs-Git: https://salsa.debian.org/python-team/modules/pymupdf.git
++Standards-Version: 4.5.0
++Build-Depends: debhelper-compat (= 13), dh-python, python3-setuptools, python3-all, libpython3-all-dev, libmupdf-dev (>= 1.17.0), libmujs-dev, libjbig2dec-dev, libjpeg-dev, libfreetype6-dev, libpng-dev, libopenjp2-7-dev, libharfbuzz-dev, swig
++Rules-Requires-Root: no
++
++Package: python3-fitz
++Architecture: any
++Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}
++Provides: ${python3:Provides}
++Built-Using: ${Built-Using}
++Description: Python binding for MuPDF
++ Allows one to access files in PDF, XPS, OpenXPS, CBZ, EPUB, and FB2 (e-books)
++ formats, and it is known for its top performance and high rendering quality.
++ .
++ PDF manipulation and generation functions are available, including metadata
++ and bookmark maintenance, document restructuring, annotation / link handling
++ and document or page creation.
++ .
++ This package contains PyMuPDF.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6f7955b9dc91fc622516129c66a25b79dda7e4a6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,40 @@@
++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: PyMuPDF
++Upstream-Contact: Jorj X. McKie <jorj.x.mckie@outlook.de>
++Source: https://github.com/pymupdf/PyMuPDF/
++Files-Excluded: docs/_static
++                fitz/_config.h
++
++# upstream's clarification that indeed all material is GPL-3+ can be
++# found in this comment and the ones that follow:
++# https://github.com/pymupdf/PyMuPDF/issues/312#issuecomment-504641426
++Files: *
++Copyright: 2012-2018 Ruikai Liu <lrk700@gmail.com>
++           2015-2020 Jorj X. McKie <jorj.x.mckie@outlook.de>
++License: GPL-3+
++
++Files: debian/*
++Copyright: 2019 Johannes 'josch' Schauer <josch@debian.org>
++License: GPL-3+
++
++License: GPL-3+
++ This program is free software; you can redistribute it
++ and/or modify it under the terms of the GNU 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 General Public License for more
++ details.
++ .
++ You should have received a copy of the GNU General Public
++ License along with this package; if not, write to the Free
++ Software Foundation, Inc., 51 Franklin St, Fifth Floor,
++ Boston, MA  02110-1301 USA
++ .
++ On Debian systems, the full text of the GNU General Public
++ License version 3 can be found in the file
++ `/usr/share/common-licenses/GPL-3'.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bcae9172b4d0f979226f8ec1a3842e52a446de4b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,21 @@@
++Description: [PATCH] Prevent docs build warnings
++
++diff --git a/docs/conf.py b/docs/conf.py
++index 1175edf..e726f8d 100644
++--- a/docs/conf.py
+++++ b/docs/conf.py
++@@ -128,12 +128,12 @@ html_theme_options = {
++ # The name of an image file (within the static path) to use as favicon of the
++ # docs.  This file should be a Windows icon file (.ico) being 16x16 or 32x32
++ # pixels large.
++-html_favicon = "Pymupdf.ico"
+++html_favicon = "PyMuPDF.ico"
++ 
++ # Add any paths that contain custom static files (such as style sheets) here,
++ # relative to this directory. They are copied after the builtin static files,
++ # so a file named "default.css" will overwrite the builtin "default.css".
++-html_static_path = ["_static"]
+++html_static_path = []
++ 
++ # Add any extra paths that contain custom files (such as robots.txt or
++ # .htaccess) here, relative to this directory. These files are copied
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..f0b63980991dcec560eefd4395718ff976a807f3
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,17 @@@
++Author: Johannes 'josch' Schauer <josch@debian.org>
++Description: add additional import statement as otherwise you'd get:
++ Traceback (most recent call last):
++   File "<string>", line 1, in <module>
++   File "[...]/src/fitz/__init__.py", line 3, in <module>
++     from fitz.fitz import *
++ ModuleNotFoundError: No module named 'fitz.fitz'
++
++--- a/fitz/__init__.py
+++++ b/fitz/__init__.py
++@@ -1,5 +1,6 @@
++ from __future__ import absolute_import, print_function
++ import sys
+++import fitz.fitz as fitz
++ from fitz.fitz import *
++ 
++ # define the supported colorspaces for convenience
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ad847db160b27c1f10d1afbebcacc237ea56154f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,13 @@@
++Description: Link shared library with additional libs
++
++--- a/setup.py
+++++ b/setup.py
++@@ -25,7 +25,7 @@ if sys.platform.startswith("linux"):
++             "mupdf",
++             #'crypto', #openssl is required by mupdf on archlinux
++             #'jbig2dec', 'openjp2', 'jpeg', 'freetype',
++-            "mupdf-third",
+++            "mujs", "harfbuzz", "jbig2dec", "jpeg", "freetype", "png16", "openjp2"
++         ],  # the libraries to link with
++     )
++ elif sys.platform.startswith(("darwin", "freebsd")):
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..96c62bdac47ed3763b1d71d932c6b32d5962060f
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,21 @@@
++Description: Fix imports and shared libs for non-Linux platforms
++
++--- a/setup.py
+++++ b/setup.py
++@@ -53,13 +53,13 @@ else:
++         "fitz._fitz",
++         ["fitz/fitz.i"],
++         include_dirs=[  # we need the path of the MuPDF's headers
+++            "/usr/include/mupdf",
++             "./mupdf/include",
++             "./mupdf/include/mupdf",
++         ],
++         libraries=[  # these are needed in Windows
++-            "libmupdf",
++-            "libresources",
++-            "libthirdparty",
+++            "mupdf",
+++            "mujs", "harfbuzz", "jbig2dec", "jpeg", "freetype", "png16", "openjp2",
++         ],
++         extra_link_args=["/NODEFAULTLIB:MSVCRT"],
++         # x86 dir of libmupdf.lib etc.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..634a1222f68b47aacb94cc51688ea9a86744caa9
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++docs
++libs
++fiximport
++non-linux
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6d8bb89b458dfd1774199566494200c6d6960c6a
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,5 @@@
++# all false positives
++python3-fitz: spelling-error-in-binary usr/lib/python3/dist-packages/fitz/_fitz.cpython-*.so SyLES Styles
++python3-fitz: spelling-error-in-binary usr/lib/python3/dist-packages/fitz/_fitz.cpython-*.so Yau You
++python3-fitz: spelling-error-in-binary usr/lib/python3/dist-packages/fitz/_fitz.cpython-*.so moR more
++python3-fitz: spelling-error-in-binary usr/lib/python3/dist-packages/fitz/_fitz.cpython-*.so pres press
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..2f8d25f47eb82eba7d73065b4e92d26f6ebbaccc
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,11 @@@
++#!/usr/bin/make -f
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++DPKG_EXPORT_BUILDFLAGS = 1
++include /usr/share/dpkg/buildflags.mk
++
++override_dh_gencontrol:
++      dh_gencontrol -- -VBuilt-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W libmupdf-dev)"
++
++%:
++      dh $@ --buildsystem=pybuild --with python3
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..892f3cd2be815819a02e598dd22372bcc9af7f6c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++include:
++ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
++ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..6882132be77f0b38b8f140d2762d7f8f1692a65c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++Test-Command: env --chdir=/ python3 -c "import fitz"
++Restrictions: allow-stderr
++Depends: python3-fitz
++Features: test-name=python3-fitz
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9feeac52d1b253b1ee5a9b1cfc6d222d4c880b1e
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,4 @@@
++version=4
++opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%PyMuPDF-$1.tar.gz%,dversionmangle=s/\+ds\d*$//,repacksuffix=+ds1" \
++             https://github.com/pymupdf/PyMuPDF/tags \
++             (?:.*?/)?v?(\d[\d.]*)\.tar\.gz