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

56 lines
1.1 KiB
RPMSpec
Raw Normal View History

%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.38
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: %{pypi_source prompt_toolkit}
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 prompt_toolkit-%{version}
%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