From 8e8ef2b57cfc84a883c0d1fad8a07c1ceabba934a932337001fb8536866a7299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 25 Oct 2024 16:22:42 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main python-glad2 revision 7b5aea488cdb3363b228924246660d22 --- .gitattributes | 23 ++++++++++++++ glad2-2.0.6.tar.gz | 3 ++ python-glad2-rpmlintrc | 2 ++ python-glad2.changes | 42 ++++++++++++++++++++++++++ python-glad2.spec | 68 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 glad2-2.0.6.tar.gz create mode 100644 python-glad2-rpmlintrc create mode 100644 python-glad2.changes create mode 100644 python-glad2.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/glad2-2.0.6.tar.gz b/glad2-2.0.6.tar.gz new file mode 100644 index 0000000..e6f4cfa --- /dev/null +++ b/glad2-2.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08615aed3219ea1c77584bd5961d823bab226f8ac3831d09adf65c6fa877f8ec +size 573482 diff --git a/python-glad2-rpmlintrc b/python-glad2-rpmlintrc new file mode 100644 index 0000000..4b1114b --- /dev/null +++ b/python-glad2-rpmlintrc @@ -0,0 +1,2 @@ +addFilter("devel-file-in-non-devel-package .*/glad/generator/c/templates") +addFilter("devel-file-in-non-devel-package .*/glad/files/") diff --git a/python-glad2.changes b/python-glad2.changes new file mode 100644 index 0000000..17d8b24 --- /dev/null +++ b/python-glad2.changes @@ -0,0 +1,42 @@ +------------------------------------------------------------------- +Wed Jun 19 07:07:41 UTC 2024 - Dirk Müller + +- update to 2.0.6: + * Fix eglplatform in header only build not correctly replacing + the khrplatform include + * Fix compile warning when GLAD_GLES2_USE_SYSTEM_EGL=1 + * Fix: Use include instead of find_package for CMake config + * c: don't warn on undefined GLAD_GLES2_USE_SYSTEM_EGL +- update to 2.0.5: + * Fix missing Vulkan video headers + * Use FindPython instead of FindPythonInterp + * Add --version option to command-line interface + * Remove one duplicated check for glGetString(GL_VERSION) + * Fix extensions loading and parsing + * Provide CMake package + +------------------------------------------------------------------- +Wed Sep 20 13:53:18 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Tue Feb 28 16:39:19 UTC 2023 - Callum Farmer + +- Correct BR from python3-jinja2 to python3-Jinja2, fixes + dependency resolving on older distros + +------------------------------------------------------------------- +Wed Oct 26 13:20:55 UTC 2022 - Niklas Haas + +- Add missing run-time dependency on python-setuptools + +------------------------------------------------------------------- +Wed Oct 26 12:58:47 UTC 2022 - Niklas Haas + +- Update to glad v2.0.1 + +------------------------------------------------------------------- +Fri Oct 21 17:50:12 UTC 2022 - Niklas Haas + +- Initial package, based upon the initial release of glad v2.0.0 diff --git a/python-glad2.spec b/python-glad2.spec new file mode 100644 index 0000000..1f5deb3 --- /dev/null +++ b/python-glad2.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-glad2 +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?sle15_python_module_pythons} +Name: python-glad2 +Version: 2.0.6 +Release: 0 +Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator +License: MIT +URL: https://github.com/Dav1dde/glad +Source: https://files.pythonhosted.org/packages/source/g/glad2/glad2-%{version}.tar.gz +Source1: python-glad2-rpmlintrc +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module Jinja2} +# /SECTION +BuildRequires: fdupes +Requires: python-Jinja2 +Requires: python-setuptools +BuildArch: noarch +Requires(post): %{_sbindir}/update-alternatives +Requires(postun): %{_sbindir}/update-alternatives +%python_subpackages + +%description +Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator based on the official specifications. + +%prep +%setup -q -n glad2-%{version} + +%build +%python_build + +%install +find %(buildroot) -name 'glsc2.*' -delete # empty files +%python_install +%python_clone -a %{buildroot}%{_bindir}/glad +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%post +%python_install_alternative glad + +%postun +%python_uninstall_alternative glad + +%files %{python_files} +%doc README.md +%license LICENSE +%python_alternative %{_bindir}/glad +%{python_sitelib}/* + +%changelog