Sync from SUSE:SLFO:Main python-glad2 revision 77bcbfa28764daba22cbaeb4df48f3c4
This commit is contained in:
BIN
glad2-2.0.6.tar.gz
(Stored with Git LFS)
BIN
glad2-2.0.6.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
glad2-2.0.8.tar.gz
(Stored with Git LFS)
Normal file
BIN
glad2-2.0.8.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
@@ -1,3 +1,31 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 18 07:35:58 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Restore mistakenly removed %python_subpackages macro that
|
||||
prevented package renaming as python3-glad2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 16 15:24:31 UTC 2025 - Atri Bhattacharya <badshah400@gmail.com>
|
||||
|
||||
- Update to version 2.0.8:
|
||||
* files: updates to latest specifications.
|
||||
* rust: replace static mut references with addr_of.
|
||||
* Replace setup.py with pyproject.toml [gh#Dav1dde/glad##490].
|
||||
- Rework package:
|
||||
* Drop support for multiple python versions and build only for
|
||||
default python3; this is a command line app, not a python
|
||||
library.
|
||||
* Switch to pyproject_* macros for build.
|
||||
* Keep zero-sized template code which is used and filled in when
|
||||
producing generated code.
|
||||
* Add Provides: glad to package.
|
||||
* Drop python-Jinja2 from BuildRequires; run-time but not build
|
||||
dependency.
|
||||
* Drop python-setuptools from Requires.
|
||||
* Delete unnecessary hashbang from a non-executable file.
|
||||
* Drop update-alternatives post scripts and related requires.
|
||||
* Add Obsoletes against current pythons packages.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 19 07:07:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-glad2
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,53 +16,49 @@
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
%define pythons python3
|
||||
Name: python-glad2
|
||||
Version: 2.0.6
|
||||
Version: 2.0.8
|
||||
Release: 0
|
||||
Summary: Multi-Language GL/GLES/EGL/GLX/WGL Loader-Generator
|
||||
Summary: Command line utility to load/generate multi-language GL/GLES/EGL/GLX/WGL code
|
||||
License: MIT
|
||||
URL: https://github.com/Dav1dde/glad
|
||||
Source: https://files.pythonhosted.org/packages/source/g/glad2/glad2-%{version}.tar.gz
|
||||
Source0: 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
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools > 61.0
|
||||
BuildRequires: python3-wheel
|
||||
Requires: python3-Jinja2
|
||||
Provides: glad
|
||||
Obsoletes: python311-glad2 < %{version}
|
||||
Obsoletes: python312-glad2 < %{version}
|
||||
Obsoletes: python313-glad2 < %{version}
|
||||
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.
|
||||
Glad is a command line utility to generate GL/GLES/EGL/GLX/WGL loader code
|
||||
based on the official specifications for using as bundled source code with
|
||||
apps.
|
||||
|
||||
%prep
|
||||
%setup -q -n glad2-%{version}
|
||||
%autosetup -n glad2-%{version}
|
||||
sed -Ei "1{\@%{_bindir}/env python@d}" glad/__main__.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%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
|
||||
%pyproject_install
|
||||
%fdupes %{buildroot}%{python3_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md
|
||||
%license LICENSE
|
||||
%python_alternative %{_bindir}/glad
|
||||
%{python_sitelib}/*
|
||||
%{_bindir}/glad
|
||||
%{python3_sitelib}/glad/
|
||||
%{python3_sitelib}/glad2-%{version}*.*-info
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user