14
0
forked from pool/python-PySDL2
2018-12-04 17:19:51 +00:00
committed by Git OBS Bridge
parent 6f18e5493d
commit 07d1d483c3

View File

@@ -19,28 +19,27 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
# Can't be properly tested without full desktop system # Can't be properly tested without full desktop system
%bcond_with test %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 Name: python-PySDL2
Version: 0.9.6 Version: 0.9.6
Release: 0 Release: 0
Summary: Python SDL2 bindings Summary: Python SDL2 bindings
License: SUSE-Public-Domain License: SUSE-Public-Domain
Group: Development/Languages/Python 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 Source: https://files.pythonhosted.org/packages/source/P/PySDL2/PySDL2-%{version}.tar.gz
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros 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
Requires: SDL2_ttf Requires: SDL2_ttf
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages
%description %description
@@ -75,8 +74,8 @@ popd
%endif %endif
%files %{python_files} %files %{python_files}
%defattr(-,root,root,-) %license COPYING.txt
%doc AUTHORS.txt COPYING.txt README.rst %doc AUTHORS.txt README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog