From 07d1d483c325173187ed10f1b367978c12bba7819b68f9a9de36c125d3b7e91b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 17:19:51 +0000 Subject: [PATCH] Clean up the SPEC file OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=4 --- python-PySDL2.spec | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) 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