forked from pool/python-PyMuPDF
Accepting request 692955 from home:guoyunhe
- Version 1.14.14 * Fix bug in Link target point calculation - Version 1.14.13 * For binary, memory-based input to most methods, now alsoio.BytesIO objects are accepted. * Fixed a bug not correctly showing inserted images with maintained aspect ratio. - For earlier changelog, see https://github.com/pymupdf/PyMuPDF/releases OBS-URL: https://build.opensuse.org/request/show/692955 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyMuPDF?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
PyMuPDF-1.14.14.tar.gz
Normal file
3
PyMuPDF-1.14.14.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6f607cf7bdbf4a2830c6d0f3cd2148cf8ee6a510c25d8d07761569548a7c28fe
|
||||||
|
size 6773869
|
12
fix-library-linking.patch
Normal file
12
fix-library-linking.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff -rub PyMuPDF-1.14.10.orig/setup.py PyMuPDF-1.14.10/setup.py
|
||||||
|
--- PyMuPDF-1.14.10.orig/setup.py 2019-03-10 19:00:25.000000000 +0200
|
||||||
|
+++ PyMuPDF-1.14.10/setup.py 2019-03-11 11:50:03.288295091 +0200
|
||||||
|
@@ -15,7 +15,7 @@
|
||||||
|
libraries=[
|
||||||
|
"mupdf",
|
||||||
|
#'crypto', #openssl is required by mupdf on archlinux
|
||||||
|
- #'jbig2dec', 'openjp2', 'jpeg', 'freetype',
|
||||||
|
+ 'jbig2dec', 'openjp2', 'jpeg', 'freetype', 'harfbuzz',
|
||||||
|
"mupdf-third",
|
||||||
|
], # the libraries to link with
|
||||||
|
)
|
15
python-PyMuPDF.changes
Normal file
15
python-PyMuPDF.changes
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 10 13:17:25 UTC 2019 - Yunhe Guo <i@guoyunhe.me>
|
||||||
|
|
||||||
|
- Version 1.14.14
|
||||||
|
* Fix bug in Link target point calculation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 8 18:38:22 UTC 2019 - Yunhe Guo <i@guoyunhe.me>
|
||||||
|
|
||||||
|
- Version 1.14.13
|
||||||
|
* For binary, memory-based input to most methods, now alsoio.BytesIO objects
|
||||||
|
are accepted.
|
||||||
|
* Fixed a bug not correctly showing inserted images with maintained aspect
|
||||||
|
ratio.
|
||||||
|
- For earlier changelog, see https://github.com/pymupdf/PyMuPDF/releases
|
73
python-PyMuPDF.spec
Normal file
73
python-PyMuPDF.spec
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-PyMuPDF
|
||||||
|
#
|
||||||
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
|
||||||
|
%define pypi_name PyMuPDF
|
||||||
|
|
||||||
|
Name: python-%{pypi_name}
|
||||||
|
Version: 1.14.14
|
||||||
|
Release: 0
|
||||||
|
Summary: Python binding for MuPDF - a lightweight PDF and XPS viewer
|
||||||
|
License: GPL-3.0 and AGPL-3.0
|
||||||
|
Group: Development/Languages/Python
|
||||||
|
URL: https://github.com/rk700/PyMuPDF
|
||||||
|
Source0: %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
|
||||||
|
Patch1: fix-library-linking.patch
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: zlib-devel
|
||||||
|
BuildRequires: mupdf-devel-static
|
||||||
|
BuildRequires: libjpeg-devel
|
||||||
|
BuildRequires: openjpeg2-devel
|
||||||
|
BuildRequires: jbig2dec-devel
|
||||||
|
BuildRequires: freetype-devel
|
||||||
|
BuildRequires: harfbuzz-devel
|
||||||
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
|
||||||
|
This is PyMuPDF, a Python binding for MuPDF - a lightweight PDF and XPS
|
||||||
|
viewer. MuPDF can access files in PDF, XPS, OpenXPS, epub, comic and fiction
|
||||||
|
book formats, and it is known for its top performance and high rendering
|
||||||
|
quality. With PyMuPDF you therefore can also access files with extensions
|
||||||
|
*.pdf, *.xps, *.oxps, *.epub, *.cbz or *.fb2 from your Python scripts.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{pypi_name}-%{version}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
# Remove export CFLAGS=... for noarch packages (unneeded)
|
||||||
|
export CFLAGS="%{optflags}"
|
||||||
|
%python_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%license COPYING
|
||||||
|
%doc README.md doc/PyMuPDF.pdf
|
||||||
|
# For arch-specific packages: sitearch
|
||||||
|
%{python_sitearch}/*
|
||||||
|
|
||||||
|
%changelog
|
Reference in New Issue
Block a user