## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec %global srcname glad Name: python-%{srcname} Version: 2.0.2 Release: %autorelease Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator # Mostly MIT, ASL 2.0 for Khronos and EGL specifications/headers. License: MIT and ASL 2.0 URL: https://github.com/Dav1dde/glad Source0: %{url}/archive/v%{version}%{?prerelease}/%{srcname}-%{version}%{?prerelease}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %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: python3dist(glad2) %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} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3dist(setuptools) %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} # Remove bundled egg-info rm -rf %{srcname}.egg-info # Fix shebang sed -i -e '/^#!\//, 1d' %{srcname}/__main__.py %build %py3_build %install %py3_install %files -n %{srcname} %{_bindir}/glad %files -n python3-%{srcname} %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}2-%{version}-py%{python3_version}.egg-info %changelog * Thu Nov 03 2022 Nicolas Chauvet 2.0.2-1 - Update to 2.0.2 * Fri Jul 22 2022 Fedora Release Engineering 0.1.36-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint 0.1.36-3 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 0.1.36-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Mon Dec 27 2021 Elliott Sales de Andrade 0.1.36-1 - Update to latest version; fixes rhbz#2035055 * Wed Dec 22 2021 Elliott Sales de Andrade 0.1.35-1 - Update to latest version (#2034714) * Fri Jul 23 2021 Fedora Release Engineering - 0.1.34-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.1.34-3 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.1.34-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Sep 07 2020 Elliott Sales de Andrade - 0.1.34-1 - Update to latest version (#1876669) * Wed Jul 29 2020 Fedora Release Engineering - 0.1.33-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 0.1.33-4 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 0.1.33-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Oct 03 2019 Miro Hrončok - 0.1.33-2 - Rebuilt for Python 3.8.0rc1 (#1748018) * Fri Aug 23 2019 Elliott Sales de Andrade - 0.1.33-1 - Update to latest version * Mon Aug 19 2019 Miro Hrončok - 0.1.31-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.1.31-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Tue Jul 16 2019 Elliott Sales de Andrade - 0.1.31-1 - Update to latest version * Fri Jun 14 2019 Elliott Sales de Andrade - 0.1.30-1 - Initial package.