14
0
forked from pool/python-pyglet
Files
python-pyglet/python-pyglet.spec

93 lines
3.0 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pyglet
#
Accepting request 576825 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.3.1 + Bugfixes * #158 Fix mouse events in mouse exclusive mode on Windows. * #105 Crashes in PulseAudio; * #163 Workaround for running inside Spyder; * #45 Expose viewport size for use on HiDPI screens; * #15 Respect keyboard layout on macOS; - Update to version 1.3.0 * The entire codebase is now compatible with both Python 2 and Python 3 without the need for 2to3. + New features * The procedural audio module is now more usable. This module allows synthesis of basic waveforms, such as sine, square, triangle, sawtooth, and simple FM (two operator sine). In addition, several basic amplitude envelopes are now available to apply to generated audio. These include ADSR, linear decay, tremolo, and flat envelopes. + Improvements * Improved font rendering for fonts with negative bearing (#99) * Sprites now have `scale_x` and `scale_y` attributes, allowing for aspect ratio changes. The existing `scale` attribute sets the overall scaling, and functions as before. * Sprites have a new `update` method which allows simultaneous changing of position, scale, and rotation. This reduces some overhead when changing multiple attributes at once. * The pyglet.resource module now defaults to a 2048x2048 texture for it's internal texture atlas, but will fall back to the maximum available size that the GPU can provide. * All modern joysticks and game controllers should now be detected on Linux and Windows. * Refactored and reimplemented pyglet.media. Many improvements to stability. Different drivers should now behave more similar. * WM_CLASS hints are now set on Linux. On modern Linux desktop environments and window managers, this allows for proper tracking of pyglet applications. Previously, pyglet apps may show up as "Unknown" under the active window list in the environment. The window class hints are set to the same name as the Window caption, but will fall back to "pyglet" if the Window caption contains non-ascii characters. * Vastly improved documentation and programming guide. + Bugfixes * Limit the minimum window size 1x1 pixel, preventing an OpenGL exception when resizing (#49). * Font module no longer leaks memory when text is changed (#66). * Fix crash on Python 2 when sys.argv[0] has non-ASCII characters (#74). * Windows: Fix crash when opening multiple windows in succession (#81). * Windows: Fix local font loading (#100). * Windows: Italic fonts no longer render parts of their neighbors. * Prevent memory leak from orphaned StreamingSources in long running applications (#103). * Windows: Fix kerning regression (#115) * Windows: Window.set_icon no longer fails when given a Texture instead of ImageData (#136) - Remove upstream-included pyglet-1.2.4-add-wmclass.patch OBS-URL: https://build.opensuse.org/request/show/576825 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=14
2018-02-14 17:55:38 +00:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pyglet
Version: 1.3.2
Release: 0
Summary: Windowing and multimedia library
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://bitbucket.org/pyglet/pyglet
Source0: https://files.pythonhosted.org/packages/source/p/pyglet/pyglet-%{version}.tar.gz
Source1: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE pyglet-1.2.4-fix-image-import.patch -- fix "import Image"
Patch0: pyglet-1.2.4-fix-image-import.patch
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: alsa-devel
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: fontconfig-devel
BuildRequires: freetype2-devel
BuildRequires: gtk2-devel
BuildRequires: openal-soft-devel
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(x11)
Requires: alsa-devel
Requires: fontconfig-devel
Requires: freetype2-devel
Requires: gtk2-devel
Requires: openal-soft-devel
Accepting request 576825 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.3.1 + Bugfixes * #158 Fix mouse events in mouse exclusive mode on Windows. * #105 Crashes in PulseAudio; * #163 Workaround for running inside Spyder; * #45 Expose viewport size for use on HiDPI screens; * #15 Respect keyboard layout on macOS; - Update to version 1.3.0 * The entire codebase is now compatible with both Python 2 and Python 3 without the need for 2to3. + New features * The procedural audio module is now more usable. This module allows synthesis of basic waveforms, such as sine, square, triangle, sawtooth, and simple FM (two operator sine). In addition, several basic amplitude envelopes are now available to apply to generated audio. These include ADSR, linear decay, tremolo, and flat envelopes. + Improvements * Improved font rendering for fonts with negative bearing (#99) * Sprites now have `scale_x` and `scale_y` attributes, allowing for aspect ratio changes. The existing `scale` attribute sets the overall scaling, and functions as before. * Sprites have a new `update` method which allows simultaneous changing of position, scale, and rotation. This reduces some overhead when changing multiple attributes at once. * The pyglet.resource module now defaults to a 2048x2048 texture for it's internal texture atlas, but will fall back to the maximum available size that the GPU can provide. * All modern joysticks and game controllers should now be detected on Linux and Windows. * Refactored and reimplemented pyglet.media. Many improvements to stability. Different drivers should now behave more similar. * WM_CLASS hints are now set on Linux. On modern Linux desktop environments and window managers, this allows for proper tracking of pyglet applications. Previously, pyglet apps may show up as "Unknown" under the active window list in the environment. The window class hints are set to the same name as the Window caption, but will fall back to "pyglet" if the Window caption contains non-ascii characters. * Vastly improved documentation and programming guide. + Bugfixes * Limit the minimum window size 1x1 pixel, preventing an OpenGL exception when resizing (#49). * Font module no longer leaks memory when text is changed (#66). * Fix crash on Python 2 when sys.argv[0] has non-ASCII characters (#74). * Windows: Fix crash when opening multiple windows in succession (#81). * Windows: Fix local font loading (#100). * Windows: Italic fonts no longer render parts of their neighbors. * Prevent memory leak from orphaned StreamingSources in long running applications (#103). * Windows: Fix kerning regression (#115) * Windows: Window.set_icon no longer fails when given a Texture instead of ImageData (#136) - Remove upstream-included pyglet-1.2.4-add-wmclass.patch OBS-URL: https://build.opensuse.org/request/show/576825 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=14
2018-02-14 17:55:38 +00:00
Requires: python-Pillow
Requires: config(Mesa)
Requires: pkgconfig(gl)
Requires: pkgconfig(glu)
Requires: pkgconfig(x11)
BuildArch: noarch
Accepting request 576825 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.3.1 + Bugfixes * #158 Fix mouse events in mouse exclusive mode on Windows. * #105 Crashes in PulseAudio; * #163 Workaround for running inside Spyder; * #45 Expose viewport size for use on HiDPI screens; * #15 Respect keyboard layout on macOS; - Update to version 1.3.0 * The entire codebase is now compatible with both Python 2 and Python 3 without the need for 2to3. + New features * The procedural audio module is now more usable. This module allows synthesis of basic waveforms, such as sine, square, triangle, sawtooth, and simple FM (two operator sine). In addition, several basic amplitude envelopes are now available to apply to generated audio. These include ADSR, linear decay, tremolo, and flat envelopes. + Improvements * Improved font rendering for fonts with negative bearing (#99) * Sprites now have `scale_x` and `scale_y` attributes, allowing for aspect ratio changes. The existing `scale` attribute sets the overall scaling, and functions as before. * Sprites have a new `update` method which allows simultaneous changing of position, scale, and rotation. This reduces some overhead when changing multiple attributes at once. * The pyglet.resource module now defaults to a 2048x2048 texture for it's internal texture atlas, but will fall back to the maximum available size that the GPU can provide. * All modern joysticks and game controllers should now be detected on Linux and Windows. * Refactored and reimplemented pyglet.media. Many improvements to stability. Different drivers should now behave more similar. * WM_CLASS hints are now set on Linux. On modern Linux desktop environments and window managers, this allows for proper tracking of pyglet applications. Previously, pyglet apps may show up as "Unknown" under the active window list in the environment. The window class hints are set to the same name as the Window caption, but will fall back to "pyglet" if the Window caption contains non-ascii characters. * Vastly improved documentation and programming guide. + Bugfixes * Limit the minimum window size 1x1 pixel, preventing an OpenGL exception when resizing (#49). * Font module no longer leaks memory when text is changed (#66). * Fix crash on Python 2 when sys.argv[0] has non-ASCII characters (#74). * Windows: Fix crash when opening multiple windows in succession (#81). * Windows: Fix local font loading (#100). * Windows: Italic fonts no longer render parts of their neighbors. * Prevent memory leak from orphaned StreamingSources in long running applications (#103). * Windows: Fix kerning regression (#115) * Windows: Window.set_icon no longer fails when given a Texture instead of ImageData (#136) - Remove upstream-included pyglet-1.2.4-add-wmclass.patch OBS-URL: https://build.opensuse.org/request/show/576825 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=14
2018-02-14 17:55:38 +00:00
%python_subpackages
%description
Accepting request 576825 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.3.1 + Bugfixes * #158 Fix mouse events in mouse exclusive mode on Windows. * #105 Crashes in PulseAudio; * #163 Workaround for running inside Spyder; * #45 Expose viewport size for use on HiDPI screens; * #15 Respect keyboard layout on macOS; - Update to version 1.3.0 * The entire codebase is now compatible with both Python 2 and Python 3 without the need for 2to3. + New features * The procedural audio module is now more usable. This module allows synthesis of basic waveforms, such as sine, square, triangle, sawtooth, and simple FM (two operator sine). In addition, several basic amplitude envelopes are now available to apply to generated audio. These include ADSR, linear decay, tremolo, and flat envelopes. + Improvements * Improved font rendering for fonts with negative bearing (#99) * Sprites now have `scale_x` and `scale_y` attributes, allowing for aspect ratio changes. The existing `scale` attribute sets the overall scaling, and functions as before. * Sprites have a new `update` method which allows simultaneous changing of position, scale, and rotation. This reduces some overhead when changing multiple attributes at once. * The pyglet.resource module now defaults to a 2048x2048 texture for it's internal texture atlas, but will fall back to the maximum available size that the GPU can provide. * All modern joysticks and game controllers should now be detected on Linux and Windows. * Refactored and reimplemented pyglet.media. Many improvements to stability. Different drivers should now behave more similar. * WM_CLASS hints are now set on Linux. On modern Linux desktop environments and window managers, this allows for proper tracking of pyglet applications. Previously, pyglet apps may show up as "Unknown" under the active window list in the environment. The window class hints are set to the same name as the Window caption, but will fall back to "pyglet" if the Window caption contains non-ascii characters. * Vastly improved documentation and programming guide. + Bugfixes * Limit the minimum window size 1x1 pixel, preventing an OpenGL exception when resizing (#49). * Font module no longer leaks memory when text is changed (#66). * Fix crash on Python 2 when sys.argv[0] has non-ASCII characters (#74). * Windows: Fix crash when opening multiple windows in succession (#81). * Windows: Fix local font loading (#100). * Windows: Italic fonts no longer render parts of their neighbors. * Prevent memory leak from orphaned StreamingSources in long running applications (#103). * Windows: Fix kerning regression (#115) * Windows: Window.set_icon no longer fails when given a Texture instead of ImageData (#136) - Remove upstream-included pyglet-1.2.4-add-wmclass.patch OBS-URL: https://build.opensuse.org/request/show/576825 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=14
2018-02-14 17:55:38 +00:00
Pyglet provides an object-oriented programming interface for
developing games and other visually-rich applications.
%prep
%setup -q -n pyglet-%{version}
%patch0
# Can't be used for commercial purposes
rm -r examples/noisy/
# Convert to unix line end
find -name "*.py" -exec dos2unix "{}" "+"
%build
%python_build
%install
%python_install
%{python_expand cp -Lr examples examples_%{$python_bin_suffix}
find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/python$|#!%{__$python}|" {} \;
find examples_%{$python_bin_suffix} -name "*.py" -exec sed -i "s|^#!/usr/bin/env python$|#!%{__$python}|" {} \;
%fdupes examples_%{$python_bin_suffix}
%fdupes %{buildroot}%{$python_sitelib}
}
%files %{python_files}
%defattr(-,root,root,-)
Accepting request 576825 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.3.1 + Bugfixes * #158 Fix mouse events in mouse exclusive mode on Windows. * #105 Crashes in PulseAudio; * #163 Workaround for running inside Spyder; * #45 Expose viewport size for use on HiDPI screens; * #15 Respect keyboard layout on macOS; - Update to version 1.3.0 * The entire codebase is now compatible with both Python 2 and Python 3 without the need for 2to3. + New features * The procedural audio module is now more usable. This module allows synthesis of basic waveforms, such as sine, square, triangle, sawtooth, and simple FM (two operator sine). In addition, several basic amplitude envelopes are now available to apply to generated audio. These include ADSR, linear decay, tremolo, and flat envelopes. + Improvements * Improved font rendering for fonts with negative bearing (#99) * Sprites now have `scale_x` and `scale_y` attributes, allowing for aspect ratio changes. The existing `scale` attribute sets the overall scaling, and functions as before. * Sprites have a new `update` method which allows simultaneous changing of position, scale, and rotation. This reduces some overhead when changing multiple attributes at once. * The pyglet.resource module now defaults to a 2048x2048 texture for it's internal texture atlas, but will fall back to the maximum available size that the GPU can provide. * All modern joysticks and game controllers should now be detected on Linux and Windows. * Refactored and reimplemented pyglet.media. Many improvements to stability. Different drivers should now behave more similar. * WM_CLASS hints are now set on Linux. On modern Linux desktop environments and window managers, this allows for proper tracking of pyglet applications. Previously, pyglet apps may show up as "Unknown" under the active window list in the environment. The window class hints are set to the same name as the Window caption, but will fall back to "pyglet" if the Window caption contains non-ascii characters. * Vastly improved documentation and programming guide. + Bugfixes * Limit the minimum window size 1x1 pixel, preventing an OpenGL exception when resizing (#49). * Font module no longer leaks memory when text is changed (#66). * Fix crash on Python 2 when sys.argv[0] has non-ASCII characters (#74). * Windows: Fix crash when opening multiple windows in succession (#81). * Windows: Fix local font loading (#100). * Windows: Italic fonts no longer render parts of their neighbors. * Prevent memory leak from orphaned StreamingSources in long running applications (#103). * Windows: Fix kerning regression (#115) * Windows: Window.set_icon no longer fails when given a Texture instead of ImageData (#136) - Remove upstream-included pyglet-1.2.4-add-wmclass.patch OBS-URL: https://build.opensuse.org/request/show/576825 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyglet?expand=0&rev=14
2018-02-14 17:55:38 +00:00
%doc LICENSE NOTICE README RELEASE_NOTES
%doc examples_%{python_bin_suffix}
%{python_sitelib}/pyglet
%{python_sitelib}/pyglet-%{version}-py*.egg-info
%changelog