summaryrefslogtreecommitdiff
path: root/rich-click.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-23 11:01:53 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-23 11:01:53 +0000
commitd9fa317dc33dcd3b384b66e555e214c6c5471cdf (patch)
tree090005987b2db368143278b24be8f1ead3426100 /rich-click.spec
parentdb8d779384aa2d376338d9b5d5fddb68ecd6c6c8 (diff)
automatic import of python-rich-click
Diffstat (limited to 'rich-click.spec')
-rw-r--r--rich-click.spec78
1 files changed, 78 insertions, 0 deletions
diff --git a/rich-click.spec b/rich-click.spec
new file mode 100644
index 0000000..ec1460e
--- /dev/null
+++ b/rich-click.spec
@@ -0,0 +1,78 @@
+%global pypi_name rich-click
+# topdir: python-rich-click-1.9.9 (transformed from sources/rich-click)
+# module name: rich_click (src layout, setuptools auto-discovery)
+
+Name: python-%{pypi_name}
+Version: 1.9.9
+Release: 1%{?dist}
+Summary: Format click help output nicely with rich
+License: MIT
+URL: https://github.com/ewels/rich-click
+Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python3-devel
+BuildRequires: python3-pip
+BuildRequires: python3-setuptools
+# setuptools reads version via dynamic.version = {attr = "rich_click.__version__"},
+# which imports rich_click.__init__ → needs click and rich at build time
+BuildRequires: python3-click >= 8
+BuildRequires: python3-rich >= 12
+
+%description
+rich-click provides attractive help output from Click, formatted with Rich,
+with minimal customization required. It is a minimal Python module to combine
+the efforts of the excellent packages 'rich' and 'click'.
+
+
+%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 >= 8
+Requires: python3-rich >= 12
+
+%description -n python3-%{pypi_name}
+rich-click provides attractive help output from Click, formatted with Rich,
+with minimal customization required. It is a minimal Python module to combine
+the efforts of the excellent packages 'rich' and 'click'.
+
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+Requires: python3-%{pypi_name}
+
+%description help
+This package provides documentation and examples for rich-click.
+
+
+%prep
+%autosetup -n %{name}-%{version} -p1
+
+
+%build
+pip3 wheel --no-build-isolation --no-deps --wheel-dir %{_builddir}/wheels .
+
+
+%install
+pip3 install --no-build-isolation --no-index \
+ --find-links %{_builddir}/wheels \
+ --root %{buildroot} --prefix /usr \
+ %{pypi_name}==%{version}
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%{_bindir}/rich-click
+%{python3_sitelib}/rich_click/
+%{python3_sitelib}/rich_click-%{version}*.dist-info/
+
+%files help
+%doc README.md
+%doc CHANGELOG.md
+
+
+%changelog
+* Fri Oct 23 2026 Python_Bot <Python_Bot@openeuler.org> - 1.9.9-1
+- Initial package