diff --git a/python-PySDL2.spec b/python-PySDL2.spec index 4f429bc..c7dfe68 100644 --- a/python-PySDL2.spec +++ b/python-PySDL2.spec @@ -19,28 +19,27 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} # Can't be properly tested without full desktop system %bcond_with test +%if %{with test} +%define X_display ":98" +BuildRequires: %{python_module pytest} +BuildRequires: SDL2 +BuildRequires: SDL2_ttf +BuildRequires: xorg-x11-server +%endif Name: python-PySDL2 Version: 0.9.6 Release: 0 Summary: Python SDL2 bindings License: SUSE-Public-Domain Group: Development/Languages/Python -Url: https://github.com/marcusva/py-sdl2 +URL: https://github.com/marcusva/py-sdl2 Source: https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -%if %{with test} -BuildRequires: %{python_module pytest} -BuildRequires: SDL2 -BuildRequires: SDL2_ttf -BuildRequires: xorg-x11-server -%define X_display ":98" -%endif Requires: SDL2 Requires: SDL2_ttf BuildArch: noarch - %python_subpackages %description @@ -75,8 +74,8 @@ popd %endif %files %{python_files} -%defattr(-,root,root,-) -%doc AUTHORS.txt COPYING.txt README.rst +%license COPYING.txt +%doc AUTHORS.txt README.rst %{python_sitelib}/* %changelog