diff --git a/libwebp150.patch b/libwebp150.patch new file mode 100644 index 0000000..bae6ffd --- /dev/null +++ b/libwebp150.patch @@ -0,0 +1,26 @@ +Index: pillow-11.1.0/Tests/test_file_webp_animated.py +=================================================================== +--- pillow-11.1.0.orig/Tests/test_file_webp_animated.py ++++ pillow-11.1.0/Tests/test_file_webp_animated.py +@@ -52,8 +52,8 @@ def test_write_animation_L(tmp_path: Pat + if is_big_endian(): + version = features.version_module("webp") + assert version is not None +- if parse_version(version) < parse_version("1.2.2"): +- pytest.skip("Fails with libwebp earlier than 1.2.2") ++ if parse_version(version) < parse_version("1.2.2") or parse_version(version) > parse_version("1.4.0"): ++ pytest.skip("Fails with libwebp earlier than 1.2.2 and greater than 1.4.0") + orig.seek(orig.n_frames - 1) + im.seek(im.n_frames - 1) + orig.load() +@@ -79,8 +79,8 @@ def test_write_animation_RGB(tmp_path: P + if is_big_endian(): + version = features.version_module("webp") + assert version is not None +- if parse_version(version) < parse_version("1.2.2"): +- pytest.skip("Fails with libwebp earlier than 1.2.2") ++ if parse_version(version) < parse_version("1.2.2") or parse_version(version) > parse_version("1.4.0"): ++ pytest.skip("Fails with libwebp earlier than 1.2.2 and greater than 1.4.0") + im.seek(1) + im.load() + assert_image_equal(im, frame2.convert("RGBA")) diff --git a/python-Pillow.changes b/python-Pillow.changes index ca17e89..76c9f80 100644 --- a/python-Pillow.changes +++ b/python-Pillow.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Mar 24 12:38:24 UTC 2025 - Markéta Machová + +- Add patch libwebp150.patch to skip tests failing on s390x + * reported: https://github.com/python-pillow/Pillow/issues/8831 + ------------------------------------------------------------------- Mon Jan 13 08:31:53 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-Pillow.spec b/python-Pillow.spec index 965f38a..fa7d898 100644 --- a/python-Pillow.spec +++ b/python-Pillow.spec @@ -24,6 +24,8 @@ Summary: Python Imaging Library (Fork) License: HPND URL: https://python-pillow.org/ Source: https://files.pythonhosted.org/packages/source/p/pillow/pillow-%{version}.tar.gz +# PATCH-FIX-UPSTREAM as per https://github.com/python-pillow/Pillow/issues/8831 +Patch: libwebp150.patch BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module olefile} BuildRequires: %{python_module pip}