2023-02-18 06:35:39 +00:00
|
|
|
%global commit 5eb6efd273530dc5517a7bc22bcce1df57a29f0e
|
|
|
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
|
|
|
2019-04-16 16:37:20 +00:00
|
|
|
%global common_description %{expand:
|
2022-04-08 21:12:19 +00:00
|
|
|
prompt_toolkit is a library for building powerful interactive command line
|
|
|
|
applications in Python.}
|
2018-10-02 12:43:27 +00:00
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
Name: python-prompt-toolkit
|
2023-02-18 06:35:39 +00:00
|
|
|
Version: 3.0.36^1.%{shortcommit}
|
2023-02-26 00:19:10 +00:00
|
|
|
Release: %autorelease
|
2022-04-08 21:12:19 +00:00
|
|
|
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
|
2023-02-18 06:35:39 +00:00
|
|
|
Source: %{url}/archive/%{commit}/prompt_toolkit-%{shortcommit}.tar.gz
|
2018-10-02 12:43:27 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
2019-04-16 16:37:20 +00:00
|
|
|
%description %{common_description}
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
%package -n python3-prompt-toolkit
|
2018-10-02 12:43:27 +00:00
|
|
|
Summary: %{summary}
|
|
|
|
BuildRequires: python3-devel
|
2022-04-08 21:12:19 +00:00
|
|
|
BuildRequires: python3-pytest
|
2018-10-02 12:43:27 +00:00
|
|
|
# https://github.com/jonathanslenders/python-prompt-toolkit/issues/94
|
2022-04-08 21:12:19 +00:00
|
|
|
Recommends: python3-pygments
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
2023-01-30 20:58:16 +00:00
|
|
|
%description -n python3-prompt-toolkit %{common_description}
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-02-18 06:35:39 +00:00
|
|
|
%autosetup -n python-prompt-toolkit-%{commit}
|
2022-04-08 21:12:19 +00:00
|
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%pyproject_buildrequires
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
2022-04-08 21:12:19 +00:00
|
|
|
%pyproject_wheel
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2022-04-08 21:12:19 +00:00
|
|
|
%pyproject_install
|
2023-01-30 20:58:16 +00:00
|
|
|
%pyproject_save_files prompt_toolkit
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
|
|
|
%check
|
2022-04-08 21:12:19 +00:00
|
|
|
%pytest
|
2018-10-02 12:43:27 +00:00
|
|
|
|
|
|
|
|
2023-01-30 20:58:16 +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
|
2023-02-26 00:19:10 +00:00
|
|
|
%autochangelog
|