diff --git a/base/python-glad2/python-glad2.spec b/base/python-glad2/python-glad2.spec new file mode 100644 index 0000000..5914e78 --- /dev/null +++ b/base/python-glad2/python-glad2.spec @@ -0,0 +1,104 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.6.1) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global srcname glad2 +#global python3_pkgversion 3 + + +Name: python-%{srcname} +Version: 2.0.5 +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: python%{python3_pkgversion}-devel +BuildRequires: pyproject-rpm-macros +BuildRequires: python%{python3_pkgversion}-pip +BuildRequires: python%{python3_pkgversion}-setuptools-wheel +BuildRequires: python%{python3_pkgversion}-wheel + +%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: python%{python3_pkgversion}-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 python%{python3_pkgversion}-%{srcname} +Summary: %{summary} + +Conflicts: python%{python3_pkgversion}-glad + +%description -n python%{python3_pkgversion}-%{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 + + +%build +%pyproject_wheel + +%install +%pyproject_install + +%files -n %{srcname} +%doc README.md +%license LICENSE +%{_bindir}/glad + +%files -n python%{python3_pkgversion}-%{srcname} +%{python3_sitelib}/glad +%{python3_sitelib}/%{srcname}-%{version}.dist-info + + +%changelog +## START: Generated by rpmautospec +* Sun Feb 04 2024 Elliott Sales de Andrade - 2.0.5-1 +- Update to latest version (#2262663) + +* Fri Jan 26 2024 Fedora Release Engineering - 2.0.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 2.0.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jul 21 2023 Fedora Release Engineering - 2.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 13 2023 Python Maint - 2.0.4-2 +- Rebuilt for Python 3.12 + +* Sun Feb 19 2023 Elliott Sales de Andrade - 2.0.4-1 +- Update to latest version (#2170962) + +* Fri Jan 20 2023 Fedora Release Engineering - 2.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jan 05 2023 Elliott Sales de Andrade - 2.0.3-1 +- Update to latest version (#2157949) + +* Wed Dec 21 2022 Elliott Sales de Andrade - 2.0.2-1 +- import #2154631 +## END: Generated by rpmautospec