forked from pool/python-PyMuPDF
Accepting request 884308 from home:jayvdb:branches:devel:languages:python
- Update to v1.18.11 OBS-URL: https://build.opensuse.org/request/show/884308 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=32
This commit is contained in:
3
PyMuPDF-1.18.11.tar.gz
Normal file
3
PyMuPDF-1.18.11.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cf624a35bce04db20a0504cf98de44dd6eddf553a67dd890770fbb0f3323f07e
|
||||
size 313977
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:cb6ba6c5038ce590a088b9bf320c6e9ce714c1fa304181ece8b551d8589a8b21
|
||||
size 308451
|
@@ -1,3 +1,34 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 10 12:56:40 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- Update to v1.18.11
|
||||
* Improved layout of source distribution material.
|
||||
* Stabilized Linux distribution detection for generating PyMuPDF
|
||||
from sources.
|
||||
* Page.get_xobjects delivers the result of Document.get_page_xobjects.
|
||||
* Page.get_image_info delivers meta information for all images shown
|
||||
on the page.
|
||||
* Tools.mupdf_display_warnings allows setting on / off the display
|
||||
of MuPDF-generated warnings. The default is off.
|
||||
* Document.ez_save convenience alias of :meth:`Document.save`
|
||||
with some different defaults.
|
||||
* Image extractions of document pages now also contain the image's
|
||||
**transformation matrix**. This concerns `Page.get_image_bbox`
|
||||
and the DICT, JSON, RAWDICT, and RAWJSON variants of `Page.get_text`.
|
||||
- from v1.18.10
|
||||
* Added old aliases for `DisplayList.get_pixmap` and
|
||||
`DisplayList.get_textpage`.
|
||||
* Stabilized removal of JavaScript objects with `Document.scrub`.
|
||||
* Removed a loop in the reworked `TextWriter.fill_textbox`.
|
||||
* `Document.xref_get_keys` and `Document.xref_get_key` to also allow
|
||||
accessing the PDF trailer dictionary. This can be done by using
|
||||
`-1` as the xref number argument.
|
||||
* Added a number of functions for reconstructing the quads for text
|
||||
lines, spans and characters extracted by `Page.get_text` options
|
||||
"dict" and "rawdict".
|
||||
* Added `Tools.unset_quad_corrections` to suppress character quad
|
||||
corrections (occasionally required for erroneous fonts).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 27 00:04:25 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
@@ -24,8 +55,8 @@ Sat Feb 27 00:04:25 UTC 2021 - John Vandenberg <jayvdb@gmail.com>
|
||||
of the `warn` parameter to no longer print a warning message
|
||||
in overflow situations.
|
||||
* Added a utility function `recover_quad`, which computes the
|
||||
quadrilateral of a span. This function can be used when
|
||||
quadrilaterals for text extracted with the "dict" or "rawdict"
|
||||
quadrilateral of a span. This function can be used for correctly
|
||||
marking text extracted with the "dict" or "rawdict"
|
||||
options of `Page.get_text`.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
@@ -17,11 +17,11 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
# Python 2 build fails always
|
||||
# Python 3 only syntax
|
||||
%define skip_python2 1
|
||||
%define pypi_name PyMuPDF
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.18.9
|
||||
Version: 1.18.11
|
||||
Release: 0
|
||||
Summary: Python binding for MuPDF, a PDF and XPS viewer
|
||||
License: AGPL-3.0-only
|
||||
@@ -29,7 +29,9 @@ Group: Development/Libraries/Python
|
||||
URL: https://github.com/pymupdf/PyMuPDF
|
||||
Source: https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module distro}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc
|
||||
BuildRequires: jbig2dec-devel
|
||||
@@ -56,6 +58,7 @@ book formats. PyMuPDF can also access files with extensions *.pdf,
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pypi_name}-%{version}
|
||||
dos2unix README.md changes.rst
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -I/usr/include/freetype2"
|
||||
@@ -63,10 +66,10 @@ export CFLAGS="%{optflags} -I/usr/include/freetype2"
|
||||
|
||||
%install
|
||||
%python_install
|
||||
rm %{buildroot}%{_prefix}/{COPYING,README.md,changes.rst}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
# https://github.com/pymupdf/PyMuPDF/issues/1002 requests a better test sequence
|
||||
cd /tmp
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'import fitz'
|
||||
|
||||
|
Reference in New Issue
Block a user