diff options
| -rw-r--r-- | cmd2.spec | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -4,11 +4,13 @@ # pins static version=4.3.1 to avoid git-tag-based version inference in build env. # Patch1 converts PEP 639 SPDX license string (`license = "MIT"`) to PEP 621 # table form (`license = {text = "MIT"}`) for setuptools 68.0.0 compatibility. +# The install section uses pip3 install --no-deps (runtime deps declared via +# Requires/BR, not resolved by pip from the local wheels dir). %global pypi_name cmd2 Name: python-%{pypi_name} Version: 4.3.1 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tool for building powerful, feature-rich, and user-friendly interactive command line applications License: MIT URL: https://github.com/python-cmd2/cmd2 @@ -32,6 +34,12 @@ BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel +# Runtime deps also as BuildRequires so they are present in the buildroot +# for the check section (import cmd2 pulls prompt_toolkit/pyperclip/rich/rich_argparse). +BuildRequires: python3-prompt-toolkit >= 3.0.53 +BuildRequires: python3-pyperclip >= 1.8.2 +BuildRequires: python3-rich >= 15.0.0 +BuildRequires: python3-rich-argparse >= 1.7.2 Requires: python3-prompt-toolkit >= 3.0.53 Requires: python3-pyperclip >= 1.8.2 Requires: python3-rich >= 15.0.0 @@ -65,7 +73,7 @@ pip3 wheel --no-build-isolation --no-deps --wheel-dir %{_builddir}/wheels . %install -pip3 install --no-build-isolation --no-index \ +pip3 install --no-build-isolation --no-index --no-deps \ --find-links %{_builddir}/wheels \ --root %{buildroot} --prefix /usr \ %{pypi_name}==%{version} @@ -87,6 +95,12 @@ pip3 install --no-build-isolation --no-index \ %changelog +* Wed Oct 28 2026 Python_Bot <Python_Bot@openeuler.org> - 4.3.1-3 +- Add --no-deps to the pip3 install in install section so pip does not try to + resolve runtime deps (prompt-toolkit>=3.0.53 etc.) from the local wheels dir +- Add runtime deps as BuildRequires so the check section (import cmd2) + succeeds in buildroot + * Wed Oct 28 2026 Python_Bot <Python_Bot@openeuler.org> - 4.3.1-2 - Add Patch1 to convert PEP 639 license string to PEP 621 table form for setuptools 68.0.0 compatibility |
