python-prompt-toolkit/python-prompt-toolkit.spec

59 lines
1.3 KiB
RPMSpec
Raw Normal View History

%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.}
2018-10-02 12:43:27 +00:00
Name: python-prompt-toolkit
Version: 3.0.36^1.%{shortcommit}
Release: %autorelease
Summary: Library for building powerful interactive command line applications in Python
2023-01-30 20:59:48 +00:00
License: BSD-3-Clause
2019-10-17 20:59:06 +00:00
URL: https://github.com/prompt-toolkit/python-prompt-toolkit
Source: %{url}/archive/%{commit}/prompt_toolkit-%{shortcommit}.tar.gz
2018-10-02 12:43:27 +00:00
BuildArch: noarch
%description %{common_description}
2018-10-02 12:43:27 +00:00
%package -n python3-prompt-toolkit
2018-10-02 12:43:27 +00:00
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: python3-pytest
2018-10-02 12:43:27 +00:00
# https://github.com/jonathanslenders/python-prompt-toolkit/issues/94
Recommends: python3-pygments
2018-10-02 12:43:27 +00:00
%description -n python3-prompt-toolkit %{common_description}
2018-10-02 12:43:27 +00:00
%prep
%autosetup -n python-prompt-toolkit-%{commit}
%generate_buildrequires
%pyproject_buildrequires
2018-10-02 12:43:27 +00:00
%build
%pyproject_wheel
2018-10-02 12:43:27 +00:00
%install
%pyproject_install
%pyproject_save_files prompt_toolkit
2018-10-02 12:43:27 +00:00
%check
%pytest
2018-10-02 12:43:27 +00:00
%files -n python3-prompt-toolkit -f %{pyproject_files}
2018-10-02 12:43:27 +00:00
%doc README.rst AUTHORS.rst CHANGELOG
%changelog
%autochangelog