import #2154631
parent
3fc3a2b60a
commit
b2ea9b6563
@ -0,0 +1 @@
|
|||||||
|
/glad2-2.0.2.tar.gz
|
@ -0,0 +1,61 @@
|
|||||||
|
%global srcname glad2
|
||||||
|
|
||||||
|
Name: python-%{srcname}
|
||||||
|
Version: 2.0.2
|
||||||
|
Release: %autorelease
|
||||||
|
Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator
|
||||||
|
|
||||||
|
# Mostly MIT, Apache-2.0 for Khronos and EGL specifications/headers.
|
||||||
|
License: MIT and Apache-2.0
|
||||||
|
URL: https://github.com/Dav1dde/glad
|
||||||
|
Source0: %pypi_source %{srcname}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: python3-devel
|
||||||
|
|
||||||
|
%description
|
||||||
|
Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL
|
||||||
|
Loader made for your needs.
|
||||||
|
|
||||||
|
|
||||||
|
%package -n %{srcname}
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
Requires: python3-glad2 = %{version}-%{release}
|
||||||
|
|
||||||
|
%description -n %{srcname}
|
||||||
|
Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL
|
||||||
|
Loader made for your needs.
|
||||||
|
|
||||||
|
%package -n python3-%{srcname}
|
||||||
|
Summary: %{summary}
|
||||||
|
|
||||||
|
Conflicts: python3-glad
|
||||||
|
|
||||||
|
%description -n python3-%{srcname}
|
||||||
|
Glad uses the official Khronos-XML specs to generate a GL/GLES/EGL/GLX/WGL
|
||||||
|
Loader made for your needs.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n %{srcname}-%{version}
|
||||||
|
sed -i -e '1{\@^#!@d}' glad/__main__.py
|
||||||
|
|
||||||
|
%generate_buildrequires
|
||||||
|
%pyproject_buildrequires
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%pyproject_save_files glad
|
||||||
|
|
||||||
|
%files -n %{srcname}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%{_bindir}/glad
|
||||||
|
|
||||||
|
%files -n python3-%{srcname} -f %{pyproject_files}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
%autochangelog
|
Loading…
Reference in new issue