You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-glad2/python-glad2.spec

62 lines
1.3 KiB

%global srcname glad2
Name: python-%{srcname}
Version: 2.0.8
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 -l glad
%files -n %{srcname}
%doc README.md
%license LICENSE
%{_bindir}/glad
%files -n python3-%{srcname} -f %{pyproject_files}
%changelog
%autochangelog