Blame pgzero.spec

abc8349
Name:           pgzero
6e511bc
Version:        1.2
e051698
Release:        3%{?dist}
abc8349
Summary:        A zero-boilerplate 2D games framework
abc8349
abc8349
License:        LGPLv3 and ASL 2.0 and CC-BY-SA and CC0 and MIT and OFL
abc8349
# pgzero module and runner under LGPLv3
abc8349
# examples/basic/fonts/Cherry_Cream_Soda and Roboto_Condensed under ASL 2.0
abc8349
# examples/lander/lander.py under CC-BY-SA
abc8349
# examples/basic/fonts/bubblegum_sans.ttf under CC0
abc8349
# examples/memory/ under MIT
abc8349
# examples/basic/fonts/Boogaloo and Bubblegum_Sans under OFL
abc8349
URL:            http://pypi.python.org/pypi/pgzero
6e511bc
Source0:        https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
abc8349
BuildArch:      noarch
abc8349
 
abc8349
BuildRequires:  python3-devel
abc8349
BuildRequires:  python3-setuptools
abc8349
BuildRequires:  python3-pygame
6e511bc
BuildRequires:  python3-numpy
abc8349
abc8349
%{?python_provide:%python_provide python3-%{name}}
abc8349
 
abc8349
Requires:       python3-pygame
abc8349
Requires:       python3-setuptools
6e511bc
Requires:       python3-numpy
abc8349
abc8349
%description
abc8349
Pygame Zero A zero boilerplate games programming framework for Python 3, based
abc8349
on Pygame. Pygame Zero consists of a runner pgzrun that will run a
abc8349
Pygame Zero script with a full game loop and a range of useful builtins.
abc8349
abc8349
%prep
abc8349
%autosetup -n %{name}-%{version}
abc8349
# Remove bundled egg-info
abc8349
rm -rf %{name}.egg-info
abc8349
abc8349
%build
abc8349
%py3_build
abc8349
abc8349
%install
abc8349
%py3_install
abc8349
abc8349
%check
abc8349
# Some tests cannot be run in a headles environment without display
abc8349
rm test/test_screen.py test/test_actor.py test/test_sound_formats.py
6e511bc
# test_tone.py is broken https://github.com/lordmauve/pgzero/issues/66
6e511bc
sed -i -e 's/from tone/from pgzero.tone/' test/test_tone.py
6e511bc
sed -i -e 's/valid note, /valid note. /' test/test_tone.py
6e511bc
%{__python3} -m unittest discover test/
abc8349
abc8349
%files
abc8349
%license COPYING
abc8349
%doc README.txt examples
abc8349
%{_bindir}/pgzrun
abc8349
%{python3_sitelib}/%{name}
6e511bc
%{python3_sitelib}/pgzrun.py
6e511bc
%{python3_sitelib}/__pycache__/*
abc8349
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
abc8349
abc8349
%changelog
e051698
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-3
e051698
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e051698
ef1f2b6
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.2-2
ef1f2b6
- Rebuilt for Python 3.7
ef1f2b6
6e511bc
* Mon Feb 26 2018 Lumir Balhar <lbalhar@redhat.com> - 1.2-1
6e511bc
- New upstream version
6e511bc
ff06fb4
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
ff06fb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ff06fb4
abc8349
* Sun Aug 20 2017 Lumir Balhar <lbalhar@redhat.com> - 1.1-1
abc8349
- Initial package.