mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-04-28 11:03:42 +00:00
SPECS: Add python-loguru
Signed-off-by: Xuhai Chang <xuhai.oerv@isrc.iscas.ac.cn>
This commit is contained in:
committed by
Kiryuu Sakuya
parent
02a7f9d79f
commit
68698b0497
42
SPECS/python-loguru/python-loguru.spec
Normal file
42
SPECS/python-loguru/python-loguru.spec
Normal file
@@ -0,0 +1,42 @@
|
||||
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
||||
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
||||
# SPDX-FileContributor: Xuhai Chang <xuhai.oerv@isrc.iscas.ac.cn>
|
||||
#
|
||||
# SPDX-License-Identifier: MulanPSL-2.0
|
||||
|
||||
%global srcname loguru
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.7.3
|
||||
Release: %autorelease
|
||||
Summary: Python logging made (stupidly) simple
|
||||
License: MIT
|
||||
URL: https://github.com/Delgan/loguru
|
||||
#!RemoteAsset: sha256:19480589e77d47b8d85b2c827ad95d49bf31b0dcde16593892eb51dd18706eb6
|
||||
Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildSystem: pyproject
|
||||
|
||||
BuildOption(install): loguru
|
||||
|
||||
BuildRequires: pkgconfig(python3)
|
||||
BuildRequires: pyproject-rpm-macros
|
||||
BuildRequires: python3dist(pip)
|
||||
BuildRequires: python3dist(flit-core)
|
||||
|
||||
Provides: python3-%{srcname} = %{version}-%{release}
|
||||
%python_provide python3-%{srcname}
|
||||
|
||||
%description
|
||||
Loguru is a library which aims to bring enjoyable logging in Python. It
|
||||
provides a pre-configured logger with sensible defaults and a simple API
|
||||
for adding sinks, filtering, and formatting log messages.
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
%files -f %{pyproject_files}
|
||||
%doc README.md
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
Reference in New Issue
Block a user