summaryrefslogtreecommitdiff
path: root/prompt-toolkit.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-28 07:04:01 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-28 07:04:01 +0000
commit59a808475277c4bf1201809c8a49008d2061a5aa (patch)
treebd870eac7da472550e297a36d9a22c8a5ac4d3d2 /prompt-toolkit.spec
parent99ff62be8a4b3ba68f744e0bf343998beeb6aeda (diff)
automatic import of python-prompt-toolkit
Diffstat (limited to 'prompt-toolkit.spec')
-rw-r--r--prompt-toolkit.spec86
1 files changed, 86 insertions, 0 deletions
diff --git a/prompt-toolkit.spec b/prompt-toolkit.spec
new file mode 100644
index 0000000..d91fae4
--- /dev/null
+++ b/prompt-toolkit.spec
@@ -0,0 +1,86 @@
+# Build backend: setuptools.build_meta (pyproject.toml, no setup.py)
+# Approach: pip-wheel (no setup.py, setuptools.build_meta backend)
+# topdir: python-prompt-toolkit-3.0.53
+%global pypi_name prompt-toolkit
+
+Name: python-%{pypi_name}
+Version: 3.0.53
+Release: 1%{?dist}
+Summary: Library for building powerful interactive command lines in Python
+License: BSD-3-Clause
+URL: https://github.com/prompt-toolkit/python-prompt-toolkit
+Source0: %{url}/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+
+%description
+prompt_toolkit is a library for building powerful interactive command line
+applications in Python. It is designed to make it easy to write
+sophisticated command line interfaces, with features like syntax
+highlighting, multi-line editing, auto-completion, and more.
+
+
+%package -n python3-%{pypi_name}
+Summary: Library for building powerful interactive command lines in Python
+Provides: python-%{pypi_name}
+Provides: python3dist(%{pypi_name}) = %{version}
+# BuildRequires (build-time): pip-wheel approach needs pip + wheel + setuptools
+BuildRequires: python3-devel
+BuildRequires: python3-pip
+BuildRequires: python3-wheel
+BuildRequires: python3-setuptools
+# Runtime Requires mirrored to BuildRequires to support %check import test
+BuildRequires: python3-wcwidth >= 0.1.4
+Requires: python3-wcwidth >= 0.1.4
+
+%description -n python3-%{pypi_name}
+prompt_toolkit is a library for building powerful interactive command line
+applications in Python. It is designed to make it easy to write
+sophisticated command line interfaces, with features like syntax
+highlighting, multi-line editing, auto-completion, and more.
+
+
+%package help
+Summary: Development documents and examples for %{pypi_name}
+Provides: python3-%{pypi_name}-doc
+Requires: python3-%{pypi_name}
+
+%description help
+This package contains development documents and examples for
+prompt_toolkit, a library for building powerful interactive command line
+applications in Python.
+
+
+%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 --no-deps \
+ --find-links %{_builddir}/wheels \
+ --root %{buildroot} --prefix /usr \
+ %{pypi_name}==%{version}
+
+
+%check
+# Basic import test to verify package install integrity and runtime deps
+python3 -c "import prompt_toolkit"
+
+
+%files -n python3-%{pypi_name}
+%license LICENSE
+%doc README.rst CHANGELOG
+%{python3_sitelib}/prompt_toolkit/
+%{python3_sitelib}/prompt_toolkit-%{version}*.dist-info/
+
+
+%files help
+%doc README.rst
+
+
+%changelog
+* Wed Oct 28 2026 Python_Bot <Python_Bot@openeuler.org> - 3.0.53-1
+- Initial package