14
0

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
This commit is contained in:
Tomáš Chvátal
2019-07-18 08:07:22 +00:00
committed by Git OBS Bridge
parent 29e2b76839
commit fad8ae8ca3
5 changed files with 37 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:268bc7ca88f16ad1179967bae49b666738e4beb4497c951205e9bf813ad008f6
size 6905953

3
PyMuPDF-1.14.18.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b0a430d58b5ab742bd2d769f1562706f868b67db7d7cbd310bb5e4853c1427e
size 6859137

View File

@@ -6,7 +6,7 @@ diff -rub PyMuPDF-1.14.10.orig/setup.py PyMuPDF-1.14.10/setup.py
"mupdf", "mupdf",
#'crypto', #openssl is required by mupdf on archlinux #'crypto', #openssl is required by mupdf on archlinux
- #'jbig2dec', 'openjp2', 'jpeg', 'freetype', - #'jbig2dec', 'openjp2', 'jpeg', 'freetype',
+ 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'harfbuzz', + 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'harfbuzz', 'png16',
"mupdf-third", "mupdf-third",
], # the libraries to link with ], # the libraries to link with
) )

View File

@@ -1,3 +1,30 @@
-------------------------------------------------------------------
Thu Jul 18 08:02:49 UTC 2019 - Yunhe Guo <i@guoyunhe.me>
- Version 1.14.18
* Update README.md
-------------------------------------------------------------------
Sat Jul 6 07:58:25 UTC 2019 - Yunhe Guo <i@guoyunhe.me>
- 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 <jengelh@inai.de> Sun Jun 2 12:38:08 UTC 2019 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -17,9 +17,11 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Upstream doesn't support Python 2 anymore.
%define skip_python2 1
%define pypi_name PyMuPDF %define pypi_name PyMuPDF
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 1.14.16 Version: 1.14.18
Release: 0 Release: 0
Summary: Python binding for MuPDF, a PDF and XPS viewer Summary: Python binding for MuPDF, a PDF and XPS viewer
License: GPL-3.0-only AND AGPL-3.0-only License: GPL-3.0-only AND AGPL-3.0-only
@@ -32,13 +34,15 @@ BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc BuildRequires: gcc
BuildRequires: jbig2dec-devel BuildRequires: jbig2dec-devel
BuildRequires: mupdf-devel-static BuildRequires: mupdf-devel-static >= 1.14.0
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: swig
BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libopenjp2) BuildRequires: pkgconfig(libopenjp2)
BuildRequires: pkgconfig(libpng16)
BuildRequires: pkgconfig(zlib) BuildRequires: pkgconfig(zlib)
%python_subpackages %python_subpackages