From d2182403dfaa8a166623b3c344de01d6ad069d1b7c8031006b11df997f8b1330 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 29 Aug 2023 06:53:54 +0000 Subject: [PATCH] - Update to 2.0.9: * Changes and Improvements + Initialize AudioDriver when media module is imported, prevent pause on first sound playback. + New TextureArrayBin class for managing TextureArray based atlases. + text: Caret supports RGBA color, in line with other pyglet objects. + gui: Add alpha value to the Caret's default color. + shapes: Allow checking if a point is in a shape, using the in operator + Add missing OpenGL extensions + Add support for FFmpeg 6.0 + Sprite width & height properties are now settable, allowing scaling by pixels + app: Passing None to pyglet.app.run will disable automatic Window redraws. + window: Add a Window.draw method to help when manually scheduling Window redraws. + shapes: Add a border thickness setter to BorderedRectangle * Bugfixes + Fix numerous bugs remaining with IncrementalTextLayout, with translation, caret, etc. #786 + shader: add missing sampler type definitions. + Fix broken struct format strings in png and ttf decoders. + text: Clear Group cache when a Layout's Group is changed. + Fix incorrect string formatting in the timer.py example. + input: ensure Xinput controllers dispatch events on the main thread * Switch to pyproject macros. * Remove unneeded futures module from {Build,}Requires. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=46 --- pyglet-2.0.5.zip | 3 --- pyglet-2.0.9.zip | 3 +++ python-pyglet.changes | 31 +++++++++++++++++++++++++++++++ python-pyglet.spec | 17 +++++++++-------- 4 files changed, 43 insertions(+), 11 deletions(-) delete mode 100644 pyglet-2.0.5.zip create mode 100644 pyglet-2.0.9.zip diff --git a/pyglet-2.0.5.zip b/pyglet-2.0.5.zip deleted file mode 100644 index dd99c08..0000000 --- a/pyglet-2.0.5.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c47ff4eded95104d030e0697eedd6082b61dc987460bbca83ec47b6e7cbfd38a -size 6492747 diff --git a/pyglet-2.0.9.zip b/pyglet-2.0.9.zip new file mode 100644 index 0000000..eca8dca --- /dev/null +++ b/pyglet-2.0.9.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0922e42f2d258505678e2f4a355c5476c1a6352c3f3a37754042ddb7e7cf72f +size 6525060 diff --git a/python-pyglet.changes b/python-pyglet.changes index 237809c..76f9be4 100644 --- a/python-pyglet.changes +++ b/python-pyglet.changes @@ -1,3 +1,34 @@ +------------------------------------------------------------------- +Tue Aug 29 06:52:57 UTC 2023 - Steve Kowalik + +- Update to 2.0.9: + * Changes and Improvements + + Initialize AudioDriver when media module is imported, prevent pause + on first sound playback. + + New TextureArrayBin class for managing TextureArray based atlases. + + text: Caret supports RGBA color, in line with other pyglet objects. + + gui: Add alpha value to the Caret's default color. + + shapes: Allow checking if a point is in a shape, using the in operator + + Add missing OpenGL extensions + + Add support for FFmpeg 6.0 + + Sprite width & height properties are now settable, allowing scaling by + pixels + + app: Passing None to pyglet.app.run will disable automatic Window + redraws. + + window: Add a Window.draw method to help when manually scheduling + Window redraws. + + shapes: Add a border thickness setter to BorderedRectangle + * Bugfixes + + Fix numerous bugs remaining with IncrementalTextLayout, with + translation, caret, etc. #786 + + shader: add missing sampler type definitions. + + Fix broken struct format strings in png and ttf decoders. + + text: Clear Group cache when a Layout's Group is changed. + + Fix incorrect string formatting in the timer.py example. + + input: ensure Xinput controllers dispatch events on the main thread +* Switch to pyproject macros. +* Remove unneeded futures module from {Build,}Requires. + ------------------------------------------------------------------- Thu May 4 19:33:34 UTC 2023 - Dirk Müller diff --git a/python-pyglet.spec b/python-pyglet.spec index 883b955..588e31f 100644 --- a/python-pyglet.spec +++ b/python-pyglet.spec @@ -28,18 +28,18 @@ %bcond_with test %bcond_with gtk2 %endif -%define skip_python2 1 %bcond_with pytest_helpers Name: python-pyglet -Version: 2.0.5 +Version: 2.0.9 Release: 0 Summary: Windowing and multimedia library License: BSD-3-Clause AND MIT -Group: Development/Languages/Python URL: https://github.com/pyglet/pyglet Source0: https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-%{version}.zip Source1: %{name}-rpmlintrc +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: dos2unix BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -47,7 +47,6 @@ BuildRequires: unzip Requires: Mesa-dri Requires: libxcb-glx0 Requires: python-Pillow -Requires: python-future Requires: python-pypng Recommends: alsa-lib Recommends: fontconfig @@ -60,7 +59,6 @@ Recommends: gtk2 %endif %if %{with test} BuildRequires: %{python_module Pillow} -BuildRequires: %{python_module future} BuildRequires: %{python_module pytest} BuildRequires: Mesa-dri BuildRequires: alsa-lib @@ -93,6 +91,9 @@ developing games and other visually-rich applications. %prep %autosetup -p1 -n pyglet-%{version} +# Broken, we shall fall back +rm pyproject.toml + # Windows only, and is a vendored module rm pyglet/font/win32*.py @@ -174,10 +175,10 @@ rm tests/base/test_interactive_test_base.py find pyglet -name "*.py" -exec dos2unix "{}" "+" %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %{python_expand pkgdocdir=%{_docdir}/$(cat _current_flavor)-pyglet @@ -246,6 +247,6 @@ fi %license LICENSE %doc README.md RELEASE_NOTES examples %{python_sitelib}/pyglet -%{python_sitelib}/pyglet-%{version}-py*.egg-info +%{python_sitelib}/pyglet-%{version}.dist-info %changelog