forked from pool/python-opengl-accelerate
Accepting request 1290576 from devel:languages:python
- Switch to pyproject macros. OBS-URL: https://build.opensuse.org/request/show/1290576 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-opengl-accelerate?expand=0&rev=16
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 4 05:28:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Switch to pyproject macros.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 28 15:37:20 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@@ -24,13 +24,14 @@ Version: %{_version}
|
||||
Release: 0
|
||||
Summary: Acceleration for python-opengl
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://pyopengl.sourceforge.net
|
||||
Source0: %{tarname}-%{_version}.tar.gz
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module opengl >= %{version}}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module numpy-devel if (%python-base without python36-base)}
|
||||
@@ -56,10 +57,10 @@ rmdir accelerate
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
@@ -69,6 +70,6 @@ export CFLAGS="%{optflags} -DGLX_GLXEXT_LEGACY"
|
||||
%license license.txt
|
||||
%doc README.md
|
||||
%{python_sitearch}/OpenGL_accelerate/
|
||||
%{python_sitearch}/PyOpenGL_accelerate-*-py%{python_version}.egg-info
|
||||
%{python_sitearch}/[Pp]y[Oo]pen[Gg][Ll]_accelerate-%{version}.dist-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user