Latest upstream

- Resolves: rhbz#2047246
- Convert to pyproject macros
- Drop rename obsoletes/provides from F29
This commit is contained in:
Carl George 2022-04-08 16:12:19 -05:00
parent 10f76ff0eb
commit c16f262894
2 changed files with 21 additions and 25 deletions

View File

@ -1,23 +1,19 @@
# what it's called on pypi
%global srcname prompt_toolkit
# what it's imported as
%global libname %{srcname}
# name of egg info directory
%global eggname %{srcname}
# package name fragment
%global pkgname prompt-toolkit
%global common_description %{expand:
prompt_toolkit is a library for building powerful interactive command lines and
terminal applications in Python.}
prompt_toolkit is a library for building powerful interactive command line
applications in Python.}
%bcond_without tests
Name: python-%{pkgname}
Version: 3.0.24
Release: 2%{?dist}
Summary: Library for building powerful interactive command lines in Python
Version: 3.0.29
Release: 1%{?dist}
Summary: Library for building powerful interactive command line applications in Python
License: BSD
URL: https://github.com/prompt-toolkit/python-prompt-toolkit
Source0: %pypi_source
@ -30,16 +26,11 @@ BuildArch: noarch
%package -n python3-%{pkgname}
Summary: %{summary}
BuildRequires: python3-devel
BuildRequires: %{py3_dist setuptools}
%if %{with tests}
BuildRequires: %{py3_dist pytest wcwidth}
BuildRequires: python3-pytest
%endif
# https://github.com/jonathanslenders/python-prompt-toolkit/issues/94
Recommends: %{py3_dist pygments}
# renamed from python3-prompt_toolkit
Obsoletes: python3-prompt_toolkit < 1.0.16-2
Provides: python3-prompt_toolkit = %{version}-%{release}
%{?python_provide:%python_provide python3-%{pkgname}}
Recommends: python3-pygments
%description -n python3-%{pkgname} %{common_description}
@ -47,31 +38,36 @@ Provides: python3-prompt_toolkit = %{version}-%{release}
%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info
%generate_buildrequires
%pyproject_buildrequires
%build
%py3_build
%pyproject_wheel
%install
%py3_install
%pyproject_install
%pyproject_save_files %{srcname}
%if %{with tests}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} --verbose
%pytest
%endif
%files -n python3-%{pkgname}
%files -n python3-%{pkgname} -f %{pyproject_files}
%doc README.rst AUTHORS.rst CHANGELOG
%license LICENSE
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
%changelog
* Fri Apr 08 2022 Carl George <carl@george.computer> - 3.0.29-1
- Latest upstream (resolves: rhbz#2047246)
- Convert to pyproject macros
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.24-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (prompt_toolkit-3.0.24.tar.gz) = e423735441407ffe51d46225efa4b747899d47fa5d5a2163e5c0c906d2f1937e80a67bcd06ff6aa97d8a336e507fd0322957e79b9382d1a678994060fcccfb84
SHA512 (prompt_toolkit-3.0.29.tar.gz) = a0d1562fe4ced52972ca7ee3bc9fe158865461b28be393436651f326cf2ddf0553d49ac8051ed700ef95d3ce2a76b9fcc10d92b6890203aca4e27e050cb814c0