Update to release 1.4.6

Also, update upstream release URL
This commit is contained in:
Petr Viktorin 2019-10-23 16:36:25 +02:00
commit 1b2013f38e
2 changed files with 14 additions and 8 deletions

View file

@ -1,9 +1,11 @@
#! /bin/bash
VERSIONEDNAME=$1
VERSION=$1
wget -N https://files.pythonhosted.org/packages/source/p/pyglet/${VERSIONEDNAME}.tar.gz
tar xzvf ${VERSIONEDNAME}.tar.gz
VERSIONEDNAME=pyglet-${VERSION}
ARCHIVENAME=${VERSIONEDNAME}.tar.gz
wget -N https://github.com/pyglet/pyglet/archive/v${VERSION}.tar.gz -O ${ARCHIVENAME}
tar xzvf ${ARCHIVENAME}
pushd ${VERSIONEDNAME}
rm -rvf examples # includes non-free artwork
rm -rvf tests # includes non-free font

View file

@ -1,10 +1,10 @@
%global srcname pyglet
%global srcversion 1.4.1
%global srcversion 1.4.6
%global versionedname %{srcname}-%{srcversion}
Name: python-%{srcname}
Version: %{srcversion}
Release: 4%{?dist}
Release: 1%{?dist}
Summary: A cross-platform windowing and multimedia library for Python
License: BSD
@ -13,7 +13,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.3.2
# $ bash pyglet-get-tarball.sh 1.3.2
# See the script for details.
Source0: %{versionedname}-repacked.tar.gz
Source1: pyglet-get-tarball.sh
@ -82,14 +82,18 @@ find . -name '*.py' | xargs sed --in-place -e's|#!/usr/bin/\(env \)\?python||;s/
%files -n python3-%{srcname}
%license LICENSE
%doc README
%doc README.md
%doc RELEASE_NOTES
%doc NOTICE
%doc PKG-INFO
%{python3_sitelib}/%{versionedname}-py%{python3_version}.egg-info
%{python3_sitelib}/%{srcname}
%changelog
* Wed Oct 23 2019 Petr Viktorin <pviktori@redhat.com> - 1.4.6-1
- Update to release 1.4.6
- Update upstream release URL
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.1-4
- Rebuilt for Python 3.8.0rc1 (#1748018)