Update to 1.5.16
This commit is contained in:
parent
d336dbdaf5
commit
6ec4b2041c
4 changed files with 27 additions and 113 deletions
|
|
@ -4,8 +4,8 @@
|
|||
%bcond_without tests
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 1.5.11
|
||||
Release: 2%{?dist}
|
||||
Version: 1.5.16
|
||||
Release: 1%{?dist}
|
||||
Summary: A cross-platform windowing and multimedia library for Python
|
||||
|
||||
License: BSD
|
||||
|
|
@ -13,16 +13,22 @@ URL: http://www.pyglet.org/
|
|||
|
||||
# The upstream tarball includes some non-free files in the examples and tests,
|
||||
# and a patented texture compression algorithm.
|
||||
# Run the following (in rpmbuild/SOURCES) to generate the distributed tarball:
|
||||
# $ bash pyglet-get-tarball.sh 1.3.2
|
||||
# Run the following (in rpmbuild/SOURCES) to generate the distributed tarball
|
||||
# (the subcommand outputs a version number like 1.5.16):
|
||||
# $ bash pyglet-get-tarball.sh $(grep Version python-pyglet.spec|cut -c10-)
|
||||
# See the script for details.
|
||||
Source0: %{versionedname}-repacked.tar.gz
|
||||
Source1: pyglet-get-tarball.sh
|
||||
|
||||
# Remove usage of the deprecated `parser` module.
|
||||
# This makes pyglet compatible with Python 3.10a.
|
||||
# Merged upstream.
|
||||
Patch0: https://github.com/pyglet/pyglet/commit/e44509b5e4.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!
|
||||
# It is enough to let Pyglet choose an appropriate decoder with:
|
||||
# img = image.load(fname)
|
||||
# Pyglet docs even discourage hard-coding the decoder "unless your application
|
||||
# has to work around specific deficiences in an operating system decoder":
|
||||
# https://pyglet.readthedocs.io/en/latest/programming_guide/image.html?highlight=PILImageDecoder#loading-an-image
|
||||
# If you do find an issue with the default decoder on Fedora, file a bug.
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
|
|
@ -74,6 +80,9 @@ Requires: libGLU
|
|||
Requires: libX11
|
||||
Requires: fontconfig
|
||||
|
||||
# Needed for experimental headless mode; see: https://github.com/pyglet/pyglet/issues/51
|
||||
Suggests: libEGL
|
||||
|
||||
# Pillow is technically optional, but in Fedora we always pull it in.
|
||||
# It can open PNG images, so we can remove the bundled "png.py"
|
||||
Requires: python3-pillow
|
||||
|
|
@ -81,6 +90,7 @@ Requires: python3-pillow
|
|||
%if %{with tests}
|
||||
BuildRequires: libGL
|
||||
BuildRequires: libGLU
|
||||
BuildRequires: libEGL
|
||||
BuildRequires: libX11
|
||||
BuildRequires: fontconfig
|
||||
BuildRequires: python3-pillow
|
||||
|
|
@ -142,6 +152,12 @@ ln -s %{_datadir}/sounds/purple/*.wav tests/data/media/
|
|||
|
||||
|
||||
%changelog
|
||||
* Wed Apr 14 2021 Petr Viktorin <pviktori@redhat.com> - 1.5.16-1
|
||||
- Update to 1.5.16
|
||||
- Add a comment on how to handle unbundled "pypng"
|
||||
- Suggest libEGL for new headless mode (experimental, undocumented)
|
||||
- Remove patch that's now upstream
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.11-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue