python-prompt-toolkit/python-prompt-toolkit.spec
2023-02-25 18:19:10 -06:00

59 lines
1.3 KiB
RPMSpec

%global commit 5eb6efd273530dc5517a7bc22bcce1df57a29f0e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global common_description %{expand:
prompt_toolkit is a library for building powerful interactive command line
applications in Python.}
Name: python-prompt-toolkit
Version: 3.0.36^1.%{shortcommit}
Release: %autorelease
Summary: Library for building powerful interactive command line applications in Python
License: BSD-3-Clause
URL: https://github.com/prompt-toolkit/python-prompt-toolkit
Source: %{url}/archive/%{commit}/prompt_toolkit-%{shortcommit}.tar.gz
BuildArch: noarch
%description %{common_description}
%package -n python3-prompt-toolkit
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
# https://github.com/jonathanslenders/python-prompt-toolkit/issues/94
Recommends: python3-pygments
%description -n python3-prompt-toolkit %{common_description}
%prep
%autosetup -n python-prompt-toolkit-%{commit}
%generate_buildrequires
%pyproject_buildrequires
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files prompt_toolkit
%check
%pytest
%files -n python3-prompt-toolkit -f %{pyproject_files}
%doc README.rst AUTHORS.rst CHANGELOG
%changelog
%autochangelog