diff --git a/.gitignore b/.gitignore index d1b7169..b5b3ee8 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,6 @@ /pyglet-1.5.11-repacked.tar.gz /pyglet-1.5.16.tar.gz /pyglet-1.5.16-repacked.tar.gz +/pyglet-1.5.23-repacked.tar.gz +/pyglet-1.5.27-repacked.tar.gz +/pyglet-2.0.10-repacked.tar.gz diff --git a/pyglet-1.5.16-backport-pr-469.patch b/pyglet-1.5.16-backport-pr-469.patch deleted file mode 100644 index e2ef360..0000000 --- a/pyglet-1.5.16-backport-pr-469.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Naur pyglet-1.5.16-original/tests/unit/media/test_synthesis.py pyglet-1.5.16/tests/unit/media/test_synthesis.py ---- pyglet-1.5.16-original/tests/unit/media/test_synthesis.py 2021-04-13 05:57:56.000000000 -0400 -+++ pyglet-1.5.16/tests/unit/media/test_synthesis.py 2021-10-10 14:46:08.063474857 -0400 -@@ -1,4 +1,5 @@ - import unittest -+import wave - - from ctypes import sizeof - from io import BytesIO -@@ -79,9 +80,8 @@ - source_name = self.source_class.__name__.lower() - filename = "synthesis_{0}_{1}_{2}_1ch.wav".format(source_name, sample_size, sample_rate) - -- with open(get_test_data_file('media', filename), 'rb') as f: -- # discard the wave header: -- loaded_bytes = f.read()[44:] -+ with wave.open(get_test_data_file('media', filename)) as f: -+ loaded_bytes = f.readframes(-1) - source.seek(0) - generated_data = source.get_audio_data(source._max_offset) - bytes_buffer = BytesIO(generated_data.data).getvalue() diff --git a/python-pyglet.spec b/python-pyglet.spec index b2efcd7..6f56fa7 100644 --- a/python-pyglet.spec +++ b/python-pyglet.spec @@ -4,11 +4,11 @@ %bcond_without tests Name: python-%{srcname} -Version: 1.5.16 -Release: 4%{?dist} +Version: 2.0.10 +Release: 9%{?dist} Summary: A cross-platform windowing and multimedia library for Python -License: BSD +License: BSD-3-Clause URL: http://www.pyglet.org/ # The upstream tarball includes some non-free files in the examples and tests, @@ -20,10 +20,6 @@ URL: http://www.pyglet.org/ Source0: %{versionedname}-repacked.tar.gz Source1: pyglet-get-tarball.sh -# Backport upstream patch for big-endian support to remove ExcludeArch: -# https://github.com/pyglet/pyglet/pull/469 -Patch0: pyglet-1.5.16-backport-pr-469.patch - # Note that unbundling pypng removes "PNGImageDecoder", which is normally # available for advanced use cases. Instead of: # img = image.load(fname, decoder=PNGImageDecoder) # don't use! @@ -45,9 +41,20 @@ BuildRequires: pyproject-rpm-macros %if %{with tests} BuildRequires: /usr/bin/xvfb-run mesa-dri-drivers BuildRequires: python3-pytest +# These two for gdkpixbuf2 tests +BuildRequires: gtk2-devel +BuildRequires: gdk-pixbuf2-devel # libpurple has sound files unbundled in the repacked tarball BuildRequires: libpurple +# These tests fail in koji, likely due to missing devices +#BuildRequires: openal-soft +# These are not specified by upstream +BuildRequires: python3-gobject +# Some tests fail if this is present +# https://github.com/pyglet/pyglet/issues/875 +#BuildRequires: python3-pytest-asyncio %endif +Requires: python3-gobject %global _description %{expand: @@ -131,26 +138,89 @@ ln -s %{_datadir}/sounds/purple/*.wav tests/data/media/ # Interactive tests are skipped for obvious reasons. # Media player tests are skipped -- we don't have PulseAudio running. # test_find_font_match & test_have_font skipped -- they look for a font named 'arial' -# test_freetype_face tests are is skipped -- they depend on non-free font we remove +# test_font & test_freetype_face tests are skipped -- they depend on non-free font we remove +# test_push_handlers_instance has broken mocking: https://github.com/pyglet/pyglet/issues/606 +# GdkPixBufTest.test_load_animation uses dinosaur.gif which we remove %pytest \ -vv \ --non-interactive \ --ignore=tests/interactive \ --ignore=tests/integration/media \ -m 'not (requires_user_action or requires_user_validation or only_interactive)' \ - -k 'not (test_find_font_match or test_have_font or test_freetype_face)' \ + -k 'not (test_find_font_match or test_font or test_have_font or test_freetype_face or test_openal_listener or test_push_handlers_instance)' \ + --deselect tests/integration/image/test_gdkpixbuf2.py::GdkPixBufTest::test_load_animation \ tests %endif %files -n python3-%{srcname} -f %%{pyproject_files} %license LICENSE -%doc README.md -%doc RELEASE_NOTES -%doc NOTICE +%doc README.md RELEASE_NOTES %changelog +* Fri Sep 19 2025 Python Maint - 2.0.10-9 +- Rebuilt for Python 3.14.0rc3 bytecode + +* Sat Aug 23 2025 Orion Poplawski - 2.0.10-8 +- Add BR/R on python3-gobject, skip openal test (FTBFS rhbz#2379002) + +* Fri Aug 15 2025 Python Maint - 2.0.10-7 +- Rebuilt for Python 3.14.0rc2 bytecode + +* Fri Jul 25 2025 Fedora Release Engineering - 2.0.10-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Tue Jun 03 2025 Python Maint - 2.0.10-5 +- Rebuilt for Python 3.14 + +* Sat Jan 18 2025 Fedora Release Engineering - 2.0.10-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Fri Jul 19 2024 Fedora Release Engineering - 2.0.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 2.0.10-2 +- Rebuilt for Python 3.13 + +* Sat Feb 17 2024 Orion Poplawski - 2.0.10-1 +- Update to 2.0.10 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.5.27-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.5.27-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 1.5.27-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Sat Jun 17 2023 Orion Poplawski - 1.5.27-1 +- Update to 1.5.27 +- Add patch for Python 3.12 support +- Use SPDX License + +* Fri Jun 16 2023 Python Maint - 1.5.23-5 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.5.23-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.5.23-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.5.23-2 +- Rebuilt for Python 3.11 + +* Thu Apr 28 2022 Petr Viktorin - 1.5.23-1 +- Update to 1.5.23 +- This version should not attempt to use the incompatible ffmpeg 5.0, + and fall back to another sound backend if available. + Resolves: RHBZ#2075965 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.5.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Sun Oct 10 2021 Benjamin A. Beasley - 1.5.16-4 - Backport upstream patch to fix ExcludeArch (fix RHBZ#1877849) diff --git a/sources b/sources index d83243d..7322f09 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyglet-1.5.16-repacked.tar.gz) = 70df7e9f5d5e8c26b040b187b605dd56d4a4c588b99261b68d4a84f5a6154c9b940c17a99ee375cef28ca3b537f85c4ad3937a1e8534a66d81292c9eac0870dd +SHA512 (pyglet-2.0.10-repacked.tar.gz) = 8c780913435b1c17e43dcc99e729a2ea5d6a6e734cce642b8da82547f734cc9ce43732257e4f241eb3803a9edc941a96a762e869043260ff15adc84ba5c6d813