Files
desktop/python-glad2/python-glad2.spec
2026-03-20 14:41:50 +08:00

49 lines
1.2 KiB
RPMSpec

%define pythons python3
Name: python-glad2
Version: 2.0.8
Release: 0
Summary: Command line utility to load/generate multi-language GL/GLES/EGL/GLX/WGL code
License: MIT
URL: https://github.com/Dav1dde/glad
Source0: https://files.pythonhosted.org/packages/source/g/glad2/glad2-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-pip
BuildRequires: python3-setuptools > 61.0
BuildRequires: python3-wheel
Requires: python3-Jinja2
Provides: glad
Obsoletes: python311-glad2 < %{version}
Obsoletes: python312-glad2 < %{version}
Obsoletes: python313-glad2 < %{version}
BuildArch: noarch
%description
Glad is a command line utility to generate GL/GLES/EGL/GLX/WGL loader code
based on the official specifications for using as bundled source code with
apps.
%prep
%autosetup -n glad2-%{version}
sed -Ei "1{\@%{_bindir}/env python@d}" glad/__main__.py
%build
%pyproject_wheel
%install
%pyproject_install
%fdupes %{buildroot}%{python3_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{_bindir}/glad
%{python3_sitelib}/glad/
%{python3_sitelib}/glad2-%{version}*.*-info
%changelog