From a698cdb624f91b35eca636329c6bb0730306f2d6 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 27 Oct 2026 03:59:21 +0000 Subject: automatic import of python-rich-click --- .gitignore | 1 + rich-click.spec | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 76 insertions(+) create mode 100644 rich-click.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..64ecb15 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rich-click-1.7.0.tar.gz diff --git a/rich-click.spec b/rich-click.spec new file mode 100644 index 0000000..599532d --- /dev/null +++ b/rich-click.spec @@ -0,0 +1,74 @@ +# 构建方案: setup.py(pyproject.toml 无 [build-system] 字段,走 setuptools 路径) +# 上游源码: https://github.com/ewels/rich-click +# 构建工具链: python3=3.11.6, python3-setuptools=68.0.0 (openeuler-24.03_LTS_SP4-x86_64) +# 模块导入名: rich_click (src 布局), dist name: rich-click +%global pypi_name rich-click + +Name: python-%{pypi_name} +Version: 1.7.0 +Release: 1%{?dist} +Summary: Format click help output nicely with rich +License: MIT +URL: https://github.com/ewels/rich-click +Source0: https://github.com/ewels/rich-click/archive/refs/tags/v%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description +rich-click is a minimal Python module to combine the efforts of the excellent +packages 'rich' and 'click'. The intention is to provide attractive help +output from click, formatted with rich, with minimal customisation required. + + +%package -n python3-%{pypi_name} +Summary: Format click help output nicely with rich +Provides: python-%{pypi_name} +Provides: python3dist(%{pypi_name}) = %{version} +Requires: python3-click >= 7 +Requires: python3-rich >= 10.7.0 +Requires: python3-typing-extensions + +%description -n python3-%{pypi_name} +rich-click is a minimal Python module to combine the efforts of the excellent +packages 'rich' and 'click'. The intention is to provide attractive help +output from click, formatted with rich, with minimal customisation required. + + +%package help +Summary: Development documents and examples for %{pypi_name} +Provides: python3-%{pypi_name}-doc +Requires: python3-%{pypi_name} + +%description help +This package provides development documents and examples for %{pypi_name}. + + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + + +%build +%py3_build + + +%install +%py3_install + + +%files -n python3-%{pypi_name} +%license LICENSE +%{_bindir}/rich-click +%{python3_sitelib}/rich_click/ +%{python3_sitelib}/rich_click-%{version}*.egg-info/ + + +%files help +%license LICENSE +%doc README.md CHANGELOG.md + + +%changelog +* Tue Oct 27 2026 Python_Bot - 1.7.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..9882b43 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d4db5bd2a8871fc6d119fef6c23ae7e9 rich-click-1.7.0.tar.gz -- cgit v1.2.3