forked from pool/python-PyMuPDF
Compare commits
8 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 951a26c3fb | |||
| caa8009e5f | |||
| 44eb431210 | |||
| 0447bdd29a | |||
| 8ac880d25f | |||
| 0128ad6047 | |||
| 3798726895 | |||
| 56fa267d56 |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f815741a435c62a0036bbcbf5fa6c533567bd69c5338d413714fc57b22db93e0
|
|
||||||
size 59631033
|
|
||||||
3
PyMuPDF-1.26.5.tar.gz
Normal file
3
PyMuPDF-1.26.5.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eb1392545c2753b70f62f9dc6b68f585c14b25f859b2867166fc8281340a37f4
|
||||||
|
size 92533280
|
||||||
3
mupdf-1.26.10-source.tar.gz
Normal file
3
mupdf-1.26.10-source.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1653f35bd8fbd970f05523efdc7f86e41e9728e2564a3295296e03cf59a51437
|
||||||
|
size 64530548
|
||||||
@@ -1,3 +1,71 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Oct 21 22:07:42 UTC 2025 - Giacomo Comes <gcomes.obs@gmail.com>
|
||||||
|
|
||||||
|
- Update to version 1.26.5:
|
||||||
|
* Use MuPDF-1.26.10.
|
||||||
|
* Fixed issues:
|
||||||
|
* Fixed #2883
|
||||||
|
* Fixed #4507
|
||||||
|
* Fixed #4613
|
||||||
|
* Fixed #4700
|
||||||
|
* Fixed #4716
|
||||||
|
* Other:
|
||||||
|
* Supported Python versions are now 3.9-3.14.
|
||||||
|
* We now define all class methods explicitly instead of with dynamic assignment; this improves type hints.
|
||||||
|
* Removed pymupdf.utils.Shape class, was duplicate of pymupdf.Shape.
|
||||||
|
* Allow use of cibuildwheel to build and test on Pyodide.
|
||||||
|
* Fixed various Pyodide bugs.
|
||||||
|
* In documentation, added section about Linux wheels and glibc compatibility.
|
||||||
|
* Improved documentation of pymupdf.open()'s arg.
|
||||||
|
* Retrospectively mark 4544 <https://github.com/pymupdf/PyMuPDF/issues/4544>_ as fixed in 1.26.4.
|
||||||
|
- Update to version 1.26.4:
|
||||||
|
- Update to version 1.26.3:
|
||||||
|
- Update to version 1.26.1:
|
||||||
|
- Update to version 1.26.0:
|
||||||
|
- Update to version 1.25.5:
|
||||||
|
- Update to version 1.25.4:
|
||||||
|
- Update to version 1.25.3:
|
||||||
|
- Update to version 1.25.2:
|
||||||
|
- Update to version 1.25.1:
|
||||||
|
- Update to version 1.25.0:
|
||||||
|
- Update to version 1.24.14:
|
||||||
|
...
|
||||||
|
- Update to version 1.24.0:
|
||||||
|
- Update to version 1.23.26:
|
||||||
|
...
|
||||||
|
- Update to version 1.23.0:
|
||||||
|
- Update to version 1.22.5:
|
||||||
|
- Update to version 1.22.3:
|
||||||
|
- Update to version 1.22.2:
|
||||||
|
- Update to version 1.22.1:
|
||||||
|
- Update to version 1.22.0:
|
||||||
|
* many many changes, see:
|
||||||
|
https://github.com/pymupdf/PyMuPDF/blob/main/changes.txt
|
||||||
|
- Add mupdf source tarball (previously bundled with PyMuPDF)
|
||||||
|
- Add BuildRequires: clang19-devel python3-clang19
|
||||||
|
- Add %define pythons python313
|
||||||
|
* build as app not module since the required python3-clangxx
|
||||||
|
is available only for python 3.13
|
||||||
|
- created devel package
|
||||||
|
- added CFLAGS option -ffat-lto-objects (rpmlint request)
|
||||||
|
- fix boo#1252103
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 2 09:15:44 UTC 2025 - Max Lin <mlin@suse.com>
|
||||||
|
|
||||||
|
- Fix packaging for Leap 16
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Apr 1 10:55:47 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Fix packaging with new setuptools
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 17 09:06:01 UTC 2025 - Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
- Compile everything with -DNDEBUG to fix reference to undefined symbols
|
||||||
|
- Compile mupdf with %optflags
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 13 14:54:54 UTC 2023 - ecsos <ecsos@opensuse.org>
|
Wed Dec 13 14:54:54 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file
|
# spec file for package python-PyMuPDF
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -19,19 +19,25 @@
|
|||||||
# Python 2 build fails always
|
# Python 2 build fails always
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
%define pypi_name PyMuPDF
|
%define pypi_name PyMuPDF
|
||||||
|
%define mupdf_version 1.26.10
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
|
#python3-clangxx is only available for python 3.13
|
||||||
|
%define pythons python313
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 1.21.1
|
Version: 1.26.5
|
||||||
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: AGPL-3.0-only
|
License: AGPL-3.0-only
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
URL: https://github.com/pymupdf/PyMuPDF
|
URL: https://github.com/pymupdf/PyMuPDF
|
||||||
Source: https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/P/PyMuPDF/PyMuPDF-%{version}.tar.gz
|
||||||
|
Source1: mupdf-%{mupdf_version}-source.tar.gz
|
||||||
|
BuildRequires: %{python_module certifi}
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: clang19-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
@@ -39,6 +45,7 @@ BuildRequires: jbig2dec-devel
|
|||||||
BuildRequires: openSUSE-release
|
BuildRequires: openSUSE-release
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: python3-clang19
|
||||||
BuildRequires: swig
|
BuildRequires: swig
|
||||||
BuildRequires: pkgconfig(freetype2)
|
BuildRequires: pkgconfig(freetype2)
|
||||||
BuildRequires: pkgconfig(harfbuzz)
|
BuildRequires: pkgconfig(harfbuzz)
|
||||||
@@ -56,11 +63,21 @@ MuPDF can access files in PDF, XPS, OpenXPS, epub, comic and fiction
|
|||||||
book formats. PyMuPDF can also access files with extensions *.pdf,
|
book formats. PyMuPDF can also access files with extensions *.pdf,
|
||||||
*.xps, *.oxps, *.epub, *.cbz or *.fb2 from Python scripts.
|
*.xps, *.oxps, *.epub, *.cbz or *.fb2 from Python scripts.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Python binding for MuPDF
|
||||||
|
Group: Development/Libraries/Python
|
||||||
|
Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Devel package for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n %{pypi_name}-%{version}
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
||||||
|
cp %{SOURCE1} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -I/usr/include/freetype2"
|
export CFLAGS="%{optflags} -ffat-lto-objects -I/usr/include/freetype2 -DNDEBUG"
|
||||||
|
export ARCHFLAGS="%{optflags}"
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@@ -70,11 +87,18 @@ export CFLAGS="%{optflags} -I/usr/include/freetype2"
|
|||||||
%check
|
%check
|
||||||
cd /tmp
|
cd /tmp
|
||||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'import fitz'
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'import fitz'
|
||||||
|
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'import pymupdf'
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitearch}/PyMuPDF-%{version}*-info
|
%{python_sitearch}/[Pp]y[Mm]u[Pp][Dd][Ff]-%{version}*info
|
||||||
%{python_sitearch}/fitz/
|
%{python_sitearch}/fitz/
|
||||||
|
%{python_sitearch}/pymupdf/
|
||||||
|
%{_bindir}/pymupdf
|
||||||
|
%exclude %{python_sitearch}/pymupdf/mupdf-devel/
|
||||||
|
|
||||||
|
%files %{python_files devel}
|
||||||
|
%{python_sitearch}/pymupdf/mupdf-devel/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user