diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 52f282e..5c1d554 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue May 10 00:26:53 UTC 2022 - Matej Cepl + +- Clean up SPEC file. +- Switch to pip/wheel-based build. + ------------------------------------------------------------------- Sun Mar 6 12:27:52 UTC 2022 - Hsiu-Ming Chang @@ -360,7 +366,7 @@ Sat Apr 10 12:56:40 UTC 2021 - John Vandenberg * 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 - Revised License to be AGPL-3.0-only @@ -386,8 +392,8 @@ Sat Feb 27 00:04:25 UTC 2021 - John Vandenberg 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 for correctly - marking text extracted with the "dict" or "rawdict" + quadrilateral of a span. This function can be used when + quadrilaterals for text extracted with the "dict" or "rawdict" options of `Page.get_text`. ------------------------------------------------------------------- @@ -424,7 +430,7 @@ Mon Feb 8 06:24:36 UTC 2021 - John Vandenberg * Added :meth:`Document.has_annots and Document.has_links to check whether these object types are present anywhere in a PDF. * Added expert low-level functions to simplify inquiry and - modification of PDF object sources: + modification of PDF object sources: + Document.xref_get_keys lists the keys of object `xref` + Document.xref_get_key returns type and content of a key + Document.xref_set_key modifies the key's value @@ -607,6 +613,15 @@ Mon Feb 8 06:24:36 UTC 2021 - John Vandenberg now automatically set from the respective Pixmap.xres and Pixmap.yres values +------------------------------------------------------------------- +Sat Dec 12 13:56:56 UTC 2020 - Matej Cepl + +- update to 1.18.4: + - Improved PDF Optional Content support + - Started overhaul of method and attribute naming + - Introduced support of Popup annotations + - Implemented other bug fixes. + ------------------------------------------------------------------- Wed Sep 23 12:34:51 UTC 2020 - Dirk Mueller @@ -639,7 +654,7 @@ Fri Mar 27 09:27:34 UTC 2020 - Marketa Calabkova * Added method which returns a list of Form XObjects of the page. * Added advanced graphics features to control the anti-aliasing values * Added :meth:`Document.scrub` which removes potentially sensitive data from a PDF. - * Changed text marker annotations to accept parameters beyond just + * Changed text marker annotations to accept parameters beyond just quadrilaterals such that now text lines between two given points can be marked. * Added :meth:`Annot.setBlendMode` to set the annotation's blend mode. @@ -654,7 +669,7 @@ Tue Feb 25 12:22:02 UTC 2020 - Yunhe Guo Wed Jan 15 11:54:42 UTC 2020 - Marketa Calabkova - update to 1.16.10 - * PyMuPDF can also be used as a module in the commandline using + * PyMuPDF can also be used as a module in the commandline using "python -m fitz" * Support for Python 3.4 has been dropped. @@ -665,7 +680,7 @@ Wed Oct 2 11:25:50 UTC 2019 - Yunhe Guo * significant performance improvements for dict / rawdict text extraction * Page.getText() now support text extraction for "blocks" and - "words" + "words" ------------------------------------------------------------------- Tue Sep 17 21:26:39 UTC 2019 - Yunhe Guo diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 71296a6..1f35158 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -1,7 +1,7 @@ # -# spec file for package python-PyMuPDF +# spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -# Python 3 only syntax +# Python 2 build fails always %define skip_python2 1 %define pypi_name PyMuPDF Name: python-%{pypi_name} @@ -29,10 +29,11 @@ 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 pip} BuildRequires: %{python_module setuptools} -BuildRequires: dos2unix +BuildRequires: %{python_module wheel} BuildRequires: fdupes +BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: jbig2dec-devel BuildRequires: mupdf-devel-static < 1.20.0 @@ -40,6 +41,7 @@ BuildRequires: mupdf-devel-static >= 1.19.0 BuildRequires: openSUSE-release BuildRequires: pkgconfig BuildRequires: python-rpm-macros +BuildRequires: swig BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(gumbo) BuildRequires: pkgconfig(harfbuzz) @@ -56,24 +58,24 @@ book formats. PyMuPDF can also access files with extensions *.pdf, *.xps, *.oxps, *.epub, *.cbz or *.fb2 from Python scripts. %prep -%setup -q -n %{pypi_name}-%{version} -dos2unix README.md changes.txt +%autosetup -p1 -n %{pypi_name}-%{version} %build -%python_build +export CFLAGS="%{optflags} -I/usr/include/freetype2" +%pyproject_wheel %install -%python_install +%pyproject_install %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' %files %{python_files} %license COPYING -%doc README.md changes.txt -%{python_sitearch}/* +%doc README.md +%{python_sitearch}/PyMuPDF-%{version}*-info +%{python_sitearch}/fitz %changelog