14
0

- Add patch use-pydict-size.patch:

* Use PyDict_Size rather then PyList_GET_SIZE on a dict object.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Logbook?expand=0&rev=33
This commit is contained in:
2025-03-06 04:07:10 +00:00
committed by Git OBS Bridge
parent bb040d7e89
commit f6bb758d73
3 changed files with 47 additions and 3 deletions

View File

@@ -23,6 +23,8 @@ Summary: A logging replacement for Python
License: BSD-3-Clause
URL: https://github.com/getlogbook/logbook
Source: https://files.pythonhosted.org/packages/source/l/logbook/logbook-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#getlogbook/logbook#413
Patch0: use-pydict-size.patch
BuildRequires: %{python_module Brotli}
BuildRequires: %{python_module Cython}
BuildRequires: %{python_module Jinja2}
@@ -62,8 +64,8 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%pyproject_wheel
%install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
export CFLAGS="%{optflags}"
@@ -74,8 +76,8 @@ kill %%1
%files %{python_files}
%license LICENSE
%doc CHANGES
%doc README.md CHANGES
%{python_sitearch}/logbook
%{python_sitearch}/Logbook-%{version}*-info
%{python_sitearch}/Logbook-%{version}.dist-info
%changelog