Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-PyMuPDF for openSUSE:Factory checked in at 2026-11-13 18:34:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-PyMuPDF (Old) and /work/SRC/openSUSE:Factory/.python-PyMuPDF.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-PyMuPDF" Fri Nov 13 18:34:21 2026 rev:35 rq:1397207 version:2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-PyMuPDF/python-PyMuPDF.changes 2026-09-19 22:20:57.316135803 +0200 +++ /work/SRC/openSUSE:Factory/.python-PyMuPDF.new.1251/python-PyMuPDF.changes 2026-11-13 18:38:26.229187711 +0100 @@ -1,0 +2,55 @@ +Fri Nov 13 01:17:09 UTC 2026 - Steve Kowalik <[email protected]> + +- Update to 2.1: + * Avoid eagerly initializing layout on import to reduce CPU and thread + overhead in spawned workers. + * Properly handle page-label prefixes containing '/', string escapes, or + UTF-16 text in get_label() and get_page_labels(). + * Scale character bbox height in Page.get_texttrace() using Y scale + instead of X scale. + * Reduced startup time using lazy internal import of large modules. + * Use MuPDF-1.28.6. + * Merged pymupdf4llm and pymupdf_layout into core pymupdf. + * Fixed dehyphenation regression present since 1.27.1. + * Preserve glyph positioning in clean_contents(sanitize=True) to avoid + duplicating overprinted leading glyphs. + * Preserve radio button groups in insert_file(...). + * Preserve annotation positions and visibility when using + Page.remove_rotation() on 90 or 270 degree rotated pages. + * Fixed memory leak in extractBLOCKS (_as_blocks) by releasing text + object references. + * Improved Page.remove_rotation() performance on pages with thousands of + links. + * Fixed infinite loop in get_pixmap() and get_text() on certain PDFs. + * Emit a DeprecationWarning instead of printing to console when + importing fitz. + * Handle cyclic Widget /Parent references without failing with a cycle + in resources error. + * Preserve 'sh' (shading) operators in Page.clip_to_rect(). + * Fixed stack-based buffer overflow in JM_set_annot_callout_line. + (CVE-2026-120752, bsc#1289443) + * Fixed pixmap export 'unmultiply' option so it takes effect. + * Report the correct start point in get_drawings() for subpaths + following an 're' operator with negative width/height. + * Fixed O(n^2) hang in get_pixmap() on tagged PDF pages with many MCIDs. + * Prevent Page.get_label() from raising IndexError when a page precedes + the first label definition. + * Remove text shown with the "'" operator after TL + Td in + apply_redactions(). + * Handle widgets whose /Parent does not list them in /Kids during + insert_pdf() without raising ValueError. + * Fixed Page.add_widget() support for radio buttons. + * Added support for form field hierarchies, radio button groups, and + widget aliases. + * Fixed builds with swig-4.5. + * Fixed Path Traversal and Arbitrary File Write in PyMuPDF CLI Font + Extraction. (CVE-2026-82035, bsc#1280486) + * Fixed ignoring aspect ratio for square images. + * Fixed potential SEGV in pymupdf.Page.get_cdrawings() if a callback + raises an exception. + * Fixed compatibility and use with Python 3.15 (supported Python + versions: 3.11-3.15). +- Drop CVE-2026-82035.patch as it is now included upstream. +- Run the testsuite, rather than just checking we can import modules. + +------------------------------------------------------------------- Old: ---- CVE-2026-82035.patch mupdf-1.28.2-source.tar.gz pymupdf-1.28.2.tar.gz New: ---- mupdf-1.28.6-source.tar.gz pymupdf-2.1.tar.gz ----------(Old B)---------- Old: versions: 3.11-3.15). - Drop CVE-2026-82035.patch as it is now included upstream. - Run the testsuite, rather than just checking we can import modules. ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-PyMuPDF.spec ++++++ --- /var/tmp/diff_new_pack.JAY096/_old 2026-11-13 18:38:30.573371511 +0100 +++ /var/tmp/diff_new_pack.JAY096/_new 2026-11-13 18:38:30.575371595 +0100 @@ -16,28 +16,20 @@ # -# Python 2 build fails always -%define skip_python2 1 -%define pypi_name pymupdf -%define mupdf_version 1.28.2 +%define mupdf_version 1.28.6 %{?sle15_python_module_pythons} %bcond_without libalternatives Name: python-PyMuPDF -Version: 1.28.2 +Version: 2.1 Release: 0 Summary: Python binding for MuPDF, a PDF and XPS viewer License: AGPL-3.0-only -Group: Development/Libraries/Python URL: https://github.com/pymupdf/PyMuPDF Source: https://files.pythonhosted.org/packages/source/P/PyMuPDF/pymupdf-%{version}.tar.gz -Source1: https://casper.mupdf.com/downloads/archive/mupdf-%{mupdf_version}-source.tar.gz -# PATCH-FIX-UPSTREAM CVE-2026-82035.patch bsc#1280486 -Patch0: CVE-2026-82035.patch -BuildRequires: %{python_module certifi} -BuildRequires: %{python_module devel} +Source1: https://mupdf.com/downloads/archive/mupdf-%{mupdf_version}-source.tar.gz +BuildRequires: %{python_module devel >= 3.11} BuildRequires: %{python_module pipcl} BuildRequires: %{python_module pip} -BuildRequires: %{python_module wheel} BuildRequires: alts BuildRequires: clang19-devel %if 0%{?suse_version} >= 1699 @@ -61,6 +53,18 @@ Requires: alts Provides: bundled(mupdf) = %version # mupdf has bundled() on its own, too, so kinda bad +# SECTION test requirements +BuildRequires: %{python_module certifi} +BuildRequires: %{python_module FontTools} +BuildRequires: %{python_module Pillow} +BuildRequires: %{python_module flake8} +BuildRequires: %{python_module mypy} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pylint} +BuildRequires: %{python_module pytest-asyncio} +BuildRequires: %{python_module pytest} +BuildRequires: codespell +# /SECTION %python_subpackages %description @@ -71,14 +75,13 @@ %package devel Summary: Python binding for MuPDF -Group: Development/Libraries/Python Requires: %{name} = %{version} %description devel Devel package for %{name}. %prep -%autosetup -p1 -n %{pypi_name}-%{version} +%autosetup -p1 -n pymupdf-%{version} cp %{SOURCE1} . %build @@ -86,27 +89,47 @@ export ARCHFLAGS="%{optflags}" # -D makes .a files deterministic export AR="ar -D" -# desperate attempt to make it build, dunno why it worked +# Otherwise, it tries to install pipcl directly export PYTHONPATH=%{python3_sitelib} %pyproject_wheel %install %pyproject_install %python_clone -a %{buildroot}%{_bindir}/pymupdf +%python_clone -a %{buildroot}%{_bindir}/pymupdf-config %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -cd /tmp -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'import fitz' -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -c 'import pymupdf' +export PYMUPDF_TEST_USE_4LLM=0 +export PYMUPDF_SYSINSTALL_ROOT='-' +# Expects to run in a git checkout +donttest="test_codespell or test_release_bug_template or test_open2" +# Assumes ubuntu, like GitHub Actions +donttest+=" or test_subset_fonts or test_spikes" +# No python-pymupdf-fonts +donttest+=" or test_fontarchive" +# No pymupdf4llm +donttest+=" or test_configuration_layout" +# Non-deterministic failures +donttest+=" or test_4125" +# Requires network +donttest+=" or test_5082 or test_4702 or test_4533 or test_4457" +donttest+=" or test_4445 or test_2791" +# Fails on 32 bit +if [ $(getconf LONG_BIT) -eq 32 ]; then + donttest+=" or test_2246 or test_4415 or test_4435 or test_4245" +fi +# test_tables.py expects results from the ONNX-backed pymupdf_layout engine +%pytest_arch --ignore tests/test_tables.py -k "not ($donttest)" %files %{python_files} %license COPYING %doc README.md -%{python_sitearch}/[Pp]y[Mm]u[Pp][Dd][Ff]-%{version}*info +%{python_sitearch}/[Pp]y[Mm]u[Pp][Dd][Ff]_lite-%{version}.dist-info %{python_sitearch}/fitz/ %{python_sitearch}/pymupdf/ %python_alternative %{_bindir}/pymupdf +%python_alternative %{_bindir}/pymupdf-config %exclude %{python_sitearch}/pymupdf/mupdf-devel/ %files %{python_files devel} ++++++ mupdf-1.28.2-source.tar.gz -> mupdf-1.28.6-source.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-PyMuPDF/mupdf-1.28.2-source.tar.gz /work/SRC/openSUSE:Factory/.python-PyMuPDF.new.1251/mupdf-1.28.6-source.tar.gz differ: char 5, line 1 ++++++ pymupdf-1.28.2.tar.gz -> pymupdf-2.1.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-PyMuPDF/pymupdf-1.28.2.tar.gz /work/SRC/openSUSE:Factory/.python-PyMuPDF.new.1251/pymupdf-2.1.tar.gz differ: char 5, line 1
