forked from pool/python-glad2
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| e79c1bc339 | |||
| 39e0411296 | |||
|
|
369943ec1f | ||
| ed70a6b98c | |||
| 9015098f85 | |||
| 3a10635f93 |
BIN
glad2-2.0.6.tar.gz
LFS
BIN
glad2-2.0.6.tar.gz
LFS
Binary file not shown.
BIN
glad2-2.0.8.tar.gz
LFS
Normal file
BIN
glad2-2.0.8.tar.gz
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>
|
Wed Jun 19 07:07:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-glad2
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,53 +16,49 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%define pythons python3
|
||||||
Name: python-glad2
|
Name: python-glad2
|
||||||
Version: 2.0.6
|
Version: 2.0.8
|
||||||
Release: 0
|
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
|
License: MIT
|
||||||
URL: https://github.com/Dav1dde/glad
|
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
|
Source1: python-glad2-rpmlintrc
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: python-rpm-macros
|
|
||||||
# SECTION test requirements
|
|
||||||
BuildRequires: %{python_module Jinja2}
|
|
||||||
# /SECTION
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: python-Jinja2
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-setuptools
|
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
|
BuildArch: noarch
|
||||||
Requires(post): %{_sbindir}/update-alternatives
|
|
||||||
Requires(postun): %{_sbindir}/update-alternatives
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%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
|
%prep
|
||||||
%setup -q -n glad2-%{version}
|
%autosetup -n glad2-%{version}
|
||||||
|
sed -Ei "1{\@%{_bindir}/env python@d}" glad/__main__.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
find %(buildroot) -name 'glsc2.*' -delete # empty files
|
%pyproject_install
|
||||||
%python_install
|
%fdupes %{buildroot}%{python3_sitelib}
|
||||||
%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}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%python_alternative %{_bindir}/glad
|
%{_bindir}/glad
|
||||||
%{python_sitelib}/*
|
%{python3_sitelib}/glad/
|
||||||
|
%{python3_sitelib}/glad2-%{version}*.*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user