0b5c68b
# what it's called on pypi
0b5c68b
%global srcname prompt_toolkit
0b5c68b
# what it's imported as
0b5c68b
%global libname %{srcname}
0b5c68b
# name of egg info directory
0b5c68b
%global eggname %{srcname}
0b5c68b
# package name fragment
0b5c68b
%global pkgname prompt-toolkit
0b5c68b
ae6db23
%global common_description %{expand:
ae6db23
prompt_toolkit is a library for building powerful interactive command lines and
ae6db23
terminal applications in Python.}
0b5c68b
0b5c68b
%bcond_without tests
0b5c68b
0b5c68b
0b5c68b
Name:           python-%{pkgname}
57df5d1
Version:        3.0.5
45d0f34
Release:        5%{?dist}
0b5c68b
Summary:        Library for building powerful interactive command lines in Python
0b5c68b
License:        BSD
8976674
URL:            https://github.com/prompt-toolkit/python-prompt-toolkit
0b5c68b
Source0:        %pypi_source
0b5c68b
BuildArch:      noarch
0b5c68b
0b5c68b
ae6db23
%description %{common_description}
0b5c68b
0b5c68b
0b5c68b
%package -n python3-%{pkgname}
0b5c68b
Summary:        %{summary}
0b5c68b
BuildRequires:  python3-devel
72d0d72
BuildRequires:  %{py3_dist setuptools}
0b5c68b
%if %{with tests}
72d0d72
BuildRequires:  %{py3_dist pytest wcwidth}
0b5c68b
%endif
0b5c68b
# https://github.com/jonathanslenders/python-prompt-toolkit/issues/94
72d0d72
Recommends:     %{py3_dist pygments}
0b5c68b
# renamed from python3-prompt_toolkit
e372720
Obsoletes:      python3-prompt_toolkit < 1.0.16-2
0b5c68b
Provides:       python3-prompt_toolkit = %{version}-%{release}
0b5c68b
%{?python_provide:%python_provide python3-%{pkgname}}
0b5c68b
0b5c68b
ae6db23
%description -n python3-%{pkgname} %{common_description}
0b5c68b
0b5c68b
0b5c68b
%prep
9185f59
%autosetup -n %{srcname}-%{version}
0b5c68b
rm -rf %{eggname}.egg-info
0b5c68b
0b5c68b
0b5c68b
%build
0b5c68b
%py3_build
0b5c68b
0b5c68b
0b5c68b
%install
0b5c68b
%py3_install
0b5c68b
0b5c68b
0b5c68b
%if %{with tests}
0b5c68b
%check
72d0d72
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} --verbose
0b5c68b
%endif
0b5c68b
0b5c68b
0b5c68b
%files -n python3-%{pkgname}
0b5c68b
%doc README.rst AUTHORS.rst CHANGELOG
0b5c68b
%license LICENSE
0b5c68b
%{python3_sitelib}/%{libname}
0b5c68b
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
0b5c68b
0b5c68b
0b5c68b
%changelog
45d0f34
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-5
45d0f34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
45d0f34
20063d6
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.5-4
20063d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
20063d6
1dda746
* Sun May 24 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.5-3
1dda746
- Rebuilt for Python 3.9
1dda746
72d0d72
* Thu May 14 2020 Carl George <carl@george.computer> - 3.0.5-2
72d0d72
- Remove six dependency
72d0d72
57df5d1
* Tue May 05 2020 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 3.0.5-1
57df5d1
- Latest upstream
57df5d1
d695a33
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.10-2
d695a33
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d695a33
8976674
* Thu Oct 17 2019 Carl George <carl@george.computer> - 2.0.10-1
8976674
- Latest upstream
8976674
0775e38
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.9-5
0775e38
- Rebuilt for Python 3.8.0rc1 (#1748018)
0775e38
da208df
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.9-4
da208df
- Rebuilt for Python 3.8
da208df
2a68346
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.9-3
2a68346
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2a68346
e372720
* Tue Apr 16 2019 Carl George <carl@george.computer> - 2.0.9-2
e372720
- Increase obsoletes version for upgrade path rhbz#1700292
e372720
2d9bb8c
* Wed Mar 20 2019 Carl George <carl@george.computer> - 2.0.9-1
2d9bb8c
- Latest upstream
2d9bb8c
5ab94af
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.7-2
5ab94af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5ab94af
bf2d239
* Tue Nov 06 2018 Carl George <carl@george.computer> - 2.0.7-1
bf2d239
- Latest upstream rhbz#1647178
bf2d239
0b5c68b
* Mon Oct 01 2018 Carl George <carl@george.computer> - 2.0.5-1
0b5c68b
- Latest upstream
0b5c68b
- Remove python2 subpackage
0b5c68b
0b5c68b
* Fri Sep 28 2018 Carl George <carl@george.computer> - 2.0.4-1
0b5c68b
- Latest upstream
0b5c68b
- Rename from *-prompt_toolkit to *-prompt-toolkit
0b5c68b
0b5c68b
* Fri Sep 28 2018 Carl George <carl@george.computer> - 1.0.15-2
0b5c68b
- Revert using a common documentation directory to avoid potential update issues
0b5c68b
- Change pygments to an optional dependency
0b5c68b
0b5c68b
* Thu Jul 12 2018 Carl George <carl@george.computer> - 1.0.15-1
0b5c68b
- Latest upstream
0b5c68b
- Use common documentation directory
0b5c68b
0b5c68b
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.14-6
0b5c68b
- Rebuilt for Python 3.7
0b5c68b
0b5c68b
* Mon Feb 12 2018 Carl George <carl@george.computer> - 1.0.14-5
0b5c68b
- Make requirements compatible with EPEL
0b5c68b
- Build for Python 3 in EPEL
0b5c68b
- Run test suite
0b5c68b
- Remove duplicate provides
0b5c68b
0b5c68b
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.14-4
0b5c68b
- Update Python 2 dependency declarations to new packaging standards
0b5c68b
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
0b5c68b
0b5c68b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-3
0b5c68b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
0b5c68b
0b5c68b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.14-2
0b5c68b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
0b5c68b
0b5c68b
* Mon May 01 2017 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.0.14-1
0b5c68b
- Update to 1.0.14
0b5c68b
0b5c68b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.9-3
0b5c68b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
0b5c68b
0b5c68b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.9-2
0b5c68b
- Rebuild for Python 3.6
0b5c68b
0b5c68b
* Sun Dec 11 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.0.9-1
0b5c68b
- Update to 1.0.9
0b5c68b
0b5c68b
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-2
0b5c68b
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
0b5c68b
0b5c68b
* Fri May 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 1.0.0-1
0b5c68b
- Update to 1.0.0
0b5c68b
0b5c68b
* Tue Mar 29 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.60-1
0b5c68b
- Update to 0.60
0b5c68b
0b5c68b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.57-3
0b5c68b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0b5c68b
0b5c68b
* Tue Jan 12 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.57-2
0b5c68b
- Make the EL6 package provide python-prompt_toolkit too
0b5c68b
0b5c68b
* Sat Jan 09 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.57-1
0b5c68b
- New upstream update
0b5c68b
0b5c68b
* Wed Jan 06 2016 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.54-2
0b5c68b
- Fix quiet setup
0b5c68b
- Fix license
0b5c68b
- Add AUTHORS.rst, CHANGELOG & TODO.rst
0b5c68b
0b5c68b
* Tue Dec 29 2015 Fabio Alessandro Locati <fale@fedoraproject.org> - 0.54-1
0b5c68b
- Initial package.