forked from pool/python-PySDL2
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PySDL2?expand=0&rev=4
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user