Update to upstream 1.3.0

This commit is contained in:
Petr Viktorin 2018-01-26 17:26:00 +01:00
commit c5fe240ebf
4 changed files with 16 additions and 9 deletions

View file

@ -1,12 +1,12 @@
%global with_python3 1
%global srcname pyglet
%global srcversion 1.2.4
%global srcversion 1.3.0
%global versionedname %{srcname}-%{srcversion}
Name: python-%{srcname}
Version: %{srcversion}
Release: 5%{?dist}
Release: 1%{?dist}
Summary: A cross-platform windowing and multimedia library for Python
License: BSD
@ -15,7 +15,7 @@ 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 pyglet-1.2.1
# $ bash pyglet-get-tarball.sh pyglet-1.3.0
# See the script for details.
Source0: %{versionedname}-repacked.tar.gz
Source1: pyglet-get-tarball.sh
@ -46,6 +46,7 @@ Summary: A cross-platform windowing and multimedia library for Python 3
Requires: python2
Requires: python2-pillow%{?_isa}
Requires: python2-future
# The libraries are imported dynamically using ctypes, so rpm can't find them.
Requires: libGL
@ -71,6 +72,7 @@ Summary: A cross-platform windowing and multimedia library for Python 3
Requires: python3
Requires: python3-pillow%{?_isa}
Requires: python3-future
# The libraries are imported dynamically using ctypes, so rpm can't find them.
Requires: libGL
@ -97,6 +99,9 @@ pyglet might be seen as an alternative to PyGame.
rm pyglet/image/codecs/png.py
rm pyglet/extlibs/png.py
# The future library can be unbundled (upstream even does it for the wheel distribution)
rm -r pyglet/extlibs/future
# Get rid of hashbang lines. This is a library, it has no executable scripts.
# Also remove Windows newlines
find . -name '*.py' | xargs sed --in-place -e's|#!/usr/bin/\(env \)\?python||;s/\r//'
@ -129,17 +134,15 @@ popd
%files -n python2-%{srcname}
%license LICENSE
%doc CHANGELOG
%doc README
%doc NOTICE
%doc PKG-INFO
%{python_sitelib}/%{versionedname}-py2.7.egg-info
%{python_sitelib}/%{srcname}
%{python2_sitelib}/%{versionedname}-py2.7.egg-info
%{python2_sitelib}/%{srcname}
%if 0%{?with_python3}
%files -n python3-%{srcname}
%license LICENSE
%doc CHANGELOG
%doc README
%doc NOTICE
%doc PKG-INFO
@ -149,6 +152,9 @@ popd
%changelog
* Fri Jan 26 2018 Petr Viktorin <pviktori@redhat.com> - 1.3.0-1
- Update to upstream 1.3.0
* Thu Aug 10 2017 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.4-5
- Use versioned python prefix for python-setuptools