From 1b2013f38e42859f58b4d45873edc333c5ec333b Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Wed, 23 Oct 2019 16:36:25 +0200 Subject: [PATCH] Update to release 1.4.6 Also, update upstream release URL --- pyglet-get-tarball.sh | 8 +++++--- python-pyglet.spec | 14 +++++++++----- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/pyglet-get-tarball.sh b/pyglet-get-tarball.sh index de413fd..67f4148 100644 --- a/pyglet-get-tarball.sh +++ b/pyglet-get-tarball.sh @@ -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 diff --git a/python-pyglet.spec b/python-pyglet.spec index ab02d39..981ce85 100644 --- a/python-pyglet.spec +++ b/python-pyglet.spec @@ -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 - 1.4.6-1 +- Update to release 1.4.6 +- Update upstream release URL + * Thu Oct 03 2019 Miro HronĨok - 1.4.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018)