diff --git a/PyMuPDF-1.14.16.tar.gz b/PyMuPDF-1.14.16.tar.gz deleted file mode 100644 index d79b48b..0000000 --- a/PyMuPDF-1.14.16.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:268bc7ca88f16ad1179967bae49b666738e4beb4497c951205e9bf813ad008f6 -size 6905953 diff --git a/PyMuPDF-1.14.18.tar.gz b/PyMuPDF-1.14.18.tar.gz new file mode 100644 index 0000000..05bca42 --- /dev/null +++ b/PyMuPDF-1.14.18.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b0a430d58b5ab742bd2d769f1562706f868b67db7d7cbd310bb5e4853c1427e +size 6859137 diff --git a/fix-library-linking.patch b/fix-library-linking.patch index 3da9217..74b1a5c 100644 --- a/fix-library-linking.patch +++ b/fix-library-linking.patch @@ -6,7 +6,7 @@ diff -rub PyMuPDF-1.14.10.orig/setup.py PyMuPDF-1.14.10/setup.py "mupdf", #'crypto', #openssl is required by mupdf on archlinux - #'jbig2dec', 'openjp2', 'jpeg', 'freetype', -+ 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'harfbuzz', ++ 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'harfbuzz', 'png16', "mupdf-third", ], # the libraries to link with ) diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 0170e94..207bd85 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -1,3 +1,30 @@ +------------------------------------------------------------------- +Thu Jul 18 08:02:49 UTC 2019 - Yunhe Guo + +- Version 1.14.18 + * Update README.md + +------------------------------------------------------------------- +Sat Jul 6 07:58:25 UTC 2019 - Yunhe Guo + +- Version 1.14.17 + * Added method Document.fullcopyPage to make full page copies within + a PDF (not just copied references as Document.copyPage does). + * Changed methods Page.getPixmap, Document.getPagePixmap to now use + alpha=False as default. + * Changed text extraction: the span dictionary now (again) contains + its rectangle under the bbox key. + * Changed methods Document.movePage and Document.copyPage to use + direct functions instead of wrapping Document.select - similar to + Document.deletePage in v1.14.16. + * The GitHub repo no longer contains interface files generated by SWIG + (fitz.py, fitz_wrap.c). This allows easier tracking of inter-version + source differences which is needed by providers of various Linux + platforms. The PyPI source distribution still has the previous + structure which includes those generated files. +- Add swig and libpng16 build requires +- Removed Python2 package since upstream doesn't support it anymore. + ------------------------------------------------------------------- Sun Jun 2 12:38:08 UTC 2019 - Jan Engelhardt diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 8153ddf..46bc549 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -17,9 +17,11 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +# Upstream doesn't support Python 2 anymore. +%define skip_python2 1 %define pypi_name PyMuPDF Name: python-%{pypi_name} -Version: 1.14.16 +Version: 1.14.18 Release: 0 Summary: Python binding for MuPDF, a PDF and XPS viewer License: GPL-3.0-only AND AGPL-3.0-only @@ -32,13 +34,15 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: gcc BuildRequires: jbig2dec-devel -BuildRequires: mupdf-devel-static +BuildRequires: mupdf-devel-static >= 1.14.0 BuildRequires: pkgconfig BuildRequires: python-rpm-macros +BuildRequires: swig BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libopenjp2) +BuildRequires: pkgconfig(libpng16) BuildRequires: pkgconfig(zlib) %python_subpackages