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-%{**}}
|
%{?!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
|
||||||
|
Reference in New Issue
Block a user