# # 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/ # %define skip_python2 1 %define skip_python36 1 %define skip_python38 1 %define skip_python39 1 %define skip_python311 1 %define skip_python312 1 %{?sle15_python_module_pythons} Name: python-glad2 Version: 2.0.6 Release: 1.1 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 * Wed Jun 19 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 2023 ecsos - Add %%{?sle15_python_module_pythons} * Tue Feb 28 2023 Callum Farmer - Correct BR from python3-jinja2 to python3-Jinja2, fixes dependency resolving on older distros * Wed Oct 26 2022 Niklas Haas - Add missing run-time dependency on python-setuptools * Wed Oct 26 2022 Niklas Haas - Update to glad v2.0.1 * Fri Oct 21 2022 Niklas Haas - Initial package, based upon the initial release of glad v2.0.0