Blame pgzero.spec

abc8349
Name:           pgzero
abc8349
Version:        1.1
abc8349
Release:        1%{?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
abc8349
Source0:        https://bitbucket.org/lordmauve/%{name}/get/%{version}.tar.gz#/%{name}-%{version}.tar.gz
abc8349
BuildArch:      noarch
abc8349
 
abc8349
BuildRequires:  python3-devel
abc8349
BuildRequires:  python3-setuptools
abc8349
BuildRequires:  python3-pygame
abc8349
abc8349
%{?python_provide:%python_provide python3-%{name}}
abc8349
 
abc8349
Requires:       python3-pygame
abc8349
Requires:       python3-setuptools
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
abc8349
%{__python3} -m unittest
abc8349
abc8349
%files
abc8349
%license COPYING
abc8349
%doc README.txt examples
abc8349
%{_bindir}/pgzrun
abc8349
%{python3_sitelib}/%{name}
abc8349
%{python3_sitelib}/%{name}-%{version}-py?.?.egg-info
abc8349
abc8349
%changelog
abc8349
* Sun Aug 20 2017 Lumir Balhar <lbalhar@redhat.com> - 1.1-1
abc8349
- Initial package.