Sync from SUSE:SLFO:1.1 python-python-json-logger revision 6e48b17c6cf1c7b81f397a039ad32c51

This commit is contained in:
2025-04-16 02:05:59 +02:00
parent 0708905b2e
commit cb2d4b4a42
3 changed files with 11 additions and 61 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-python-json-logger
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,19 @@
#
%{?sle15_python_module_pythons}
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-python-json-logger
Version: 2.0.7
Release: 0
Summary: A python library adding a json log formatter
License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/madzak/python-json-logger
Source: https://files.pythonhosted.org/packages/source/p/python-json-logger/python-json-logger-%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#madzak/python-json-logger#183
Patch0: support-python312.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-setuptools
BuildArch: noarch
%python_subpackages
@@ -38,14 +36,13 @@ BuildArch: noarch
A python library adding a json log formatter.
%prep
%autosetup -p1 -n python-json-logger-%{version}
%setup -q -n python-json-logger-%{version}
%build
%pyproject_wheel
%python_build
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_install
%check
%pyunittest discover -v
@@ -53,7 +50,6 @@ A python library adding a json log formatter.
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/pythonjsonlogger
%{python_sitelib}/python_json_logger-%{version}.dist-info
%{python_sitelib}/*
%changelog