From fad8ae8ca35d9e0ee10fe3b295e42bdd70d47f92f055acca8e327e8096b80733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 18 Jul 2019 08:07:22 +0000 Subject: [PATCH 1/2] Accepting request 716213 from home:guoyunhe:branches:devel:languages:python Version 1.14.18. Drop Python 2 package. OBS-URL: https://build.opensuse.org/request/show/716213 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=11 --- PyMuPDF-1.14.16.tar.gz | 3 --- PyMuPDF-1.14.18.tar.gz | 3 +++ fix-library-linking.patch | 2 +- python-PyMuPDF.changes | 27 +++++++++++++++++++++++++++ python-PyMuPDF.spec | 8 ++++++-- 5 files changed, 37 insertions(+), 6 deletions(-) delete mode 100644 PyMuPDF-1.14.16.tar.gz create mode 100644 PyMuPDF-1.14.18.tar.gz 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 From 52c3d487317bffc14d898c270f1643cd8afffd7700fdead4c64c9a241d1cb0a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Tue, 30 Jul 2019 14:14:27 +0000 Subject: [PATCH 2/2] Accepting request 719817 from home:pgajdos - version update to 1.14.19 * minor fixes * added method to check PDF signature status (#326) OBS-URL: https://build.opensuse.org/request/show/719817 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=12 --- PyMuPDF-1.14.18.tar.gz | 3 --- PyMuPDF-1.14.19.tar.gz | 3 +++ python-PyMuPDF.changes | 7 +++++++ python-PyMuPDF.spec | 5 ++++- 4 files changed, 14 insertions(+), 4 deletions(-) delete mode 100644 PyMuPDF-1.14.18.tar.gz create mode 100644 PyMuPDF-1.14.19.tar.gz diff --git a/PyMuPDF-1.14.18.tar.gz b/PyMuPDF-1.14.18.tar.gz deleted file mode 100644 index 05bca42..0000000 --- a/PyMuPDF-1.14.18.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b0a430d58b5ab742bd2d769f1562706f868b67db7d7cbd310bb5e4853c1427e -size 6859137 diff --git a/PyMuPDF-1.14.19.tar.gz b/PyMuPDF-1.14.19.tar.gz new file mode 100644 index 0000000..2cebf22 --- /dev/null +++ b/PyMuPDF-1.14.19.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4a01c8e42abfbaaa4a78fc43cac43194d08772f0ee6cfd13d6668c1f096f9b9 +size 6857054 diff --git a/python-PyMuPDF.changes b/python-PyMuPDF.changes index 207bd85..3fa1a13 100644 --- a/python-PyMuPDF.changes +++ b/python-PyMuPDF.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Jul 30 11:17:47 UTC 2019 - pgajdos@suse.com + +- version update to 1.14.19 + * minor fixes + * added method to check PDF signature status (#326) + ------------------------------------------------------------------- Thu Jul 18 08:02:49 UTC 2019 - Yunhe Guo diff --git a/python-PyMuPDF.spec b/python-PyMuPDF.spec index 46bc549..27e0b4b 100644 --- a/python-PyMuPDF.spec +++ b/python-PyMuPDF.spec @@ -21,7 +21,7 @@ %define skip_python2 1 %define pypi_name PyMuPDF Name: python-%{pypi_name} -Version: 1.14.18 +Version: 1.14.19 Release: 0 Summary: Python binding for MuPDF, a PDF and XPS viewer License: GPL-3.0-only AND AGPL-3.0-only @@ -64,6 +64,9 @@ export CFLAGS="%{optflags}" %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} +%check +# no upstream tests + %files %{python_files} %license COPYING %doc README.md doc/PyMuPDF.pdf