Elliott Sales de Andrade 2 years ago
parent 3fc3a2b60a
commit b2ea9b6563

1
.gitignore vendored

@ -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

@ -0,0 +1 @@
SHA512 (glad2-2.0.2.tar.gz) = 0685c91bfdcddd686662023da09feabe8e0ed13e9162125156f6c0fb29b1a2a68026969e9b2748130721f7819db40f758bd162087f735ced0540f97ed1e88014
Loading…
Cancel
Save