From 756cf60deb9b8fc6be32b3bb037f59a267ccfb1a Mon Sep 17 00:00:00 2001 From: tigro Date: Mon, 15 Jan 2024 10:39:31 +0300 Subject: [PATCH] import python-glad2-2.0.4-3.el9 --- .gitignore | 1 + .python-glad2.metadata | 1 + SPECS/python-glad2.spec | 90 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 .gitignore create mode 100644 .python-glad2.metadata create mode 100644 SPECS/python-glad2.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4a51611 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glad2-2.0.4.tar.gz diff --git a/.python-glad2.metadata b/.python-glad2.metadata new file mode 100644 index 0000000..9657f50 --- /dev/null +++ b/.python-glad2.metadata @@ -0,0 +1 @@ +3accf5d68724cae963ace4f35aa7d6e761a0d1d5 SOURCES/glad2-2.0.4.tar.gz diff --git a/SPECS/python-glad2.spec b/SPECS/python-glad2.spec new file mode 100644 index 0000000..eb64fa1 --- /dev/null +++ b/SPECS/python-glad2.spec @@ -0,0 +1,90 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.3.5) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 3; + 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 + +Name: python-%{srcname} +Version: 2.0.4 +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 +* Mon Jan 15 2024 Arkady L. Shane - 2.0.4-3 +- Rebuilt for MSVSphere 9.3 + +* 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