adbe8ef
%global common_description %{expand:
adbe8ef
Ptpython is an advanced Python REPL built on top of the prompt_toolkit library.
adbe8ef
It features syntax highlighting, multiline editing (the up arrow works),
adbe8ef
autocompletion, mouse support, support for color schemes, support for bracketed
adbe8ef
paste, both Vi and Emacs key bindings, support for double width (Chinese)
adbe8ef
characters, and many other things.}
Carl George a8dae08
Carl George a8dae08
adbe8ef
Name:           ptpython
3c110be
Version:        3.0.2
f634bc3
Release:        4%{?dist}
adbe8ef
Summary:        Python REPL build on top of prompt_toolkit
adbe8ef
License:        BSD
3c110be
URL:            https://github.com/prompt-toolkit/ptpython
adbe8ef
Source0:        %pypi_source
adbe8ef
BuildArch:      noarch
Carl George a8dae08
Carl George a8dae08
adbe8ef
%description %{common_description}
8be029e
8be029e
Carl George a8dae08
%package -n ptpython3
adbe8ef
Summary:        %{summary}
adbe8ef
BuildRequires:  python3-devel
3c110be
BuildRequires:  %{py3_dist setuptools}
3c110be
Suggests:       %{py3_dist ipython}
c5ffc43
Provides:       ptpython = %{version}-%{release}
adbe8ef
Provides:       python3-ptpython = %{version}-%{release}
Carl George a8dae08
%{?python_provide:%python_provide python3-ptpython}
Carl George a8dae08
Carl George a8dae08
adbe8ef
%description -n ptpython3 %{common_description}
Carl George a8dae08
Carl George a8dae08
Carl George a8dae08
%prep
5fe2e30
%autosetup
5fe2e30
rm -rf %{eggname}.egg-info
Carl George a8dae08
find -name \*.py | xargs sed -i -e '1 {/^#!\//d}'
Carl George a8dae08
Carl George a8dae08
Carl George a8dae08
%build
75c11bd
%py3_build
Carl George a8dae08
Carl George a8dae08
Carl George a8dae08
%install
75c11bd
%py3_install
Carl George a8dae08
Carl George a8dae08
Carl George a8dae08
%files -n ptpython3
Carl George a8dae08
%license LICENSE
Carl George a8dae08
%doc CHANGELOG README.rst
5fe2e30
%{python3_sitelib}/ptpython
5fe2e30
%{python3_sitelib}/ptpython-%{version}-py%{python3_version}.egg-info
75c11bd
%{_bindir}/ptpython
Carl George a8dae08
%{_bindir}/ptpython3
Carl George a8dae08
%{_bindir}/ptpython%{python3_version}
75c11bd
%{_bindir}/ptipython
Carl George a8dae08
%{_bindir}/ptipython3
Carl George a8dae08
%{_bindir}/ptipython%{python3_version}
Carl George a8dae08
Carl George a8dae08
Carl George a8dae08
%changelog
f634bc3
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-4
f634bc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f634bc3
f1e1151
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.2-3
f1e1151
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f1e1151
3daa799
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 3.0.2-2
3daa799
- Rebuilt for Python 3.9
3daa799
3c110be
* Thu May 14 2020 Carl George <carl@george.computer> - 3.0.2-1
3c110be
- Latest upstream rhbz#1760025
c5ffc43
- Provide ptpython from ptpython3
3c110be
ee09e6c
* Tue Mar 24 2020 Carl George <carl@george.computer> - 2.0.6-1
ee09e6c
- Update to 2.0.6
ee09e6c
d4200d0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-6
d4200d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d4200d0
4db8e97
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-5
4db8e97
- Rebuilt for Python 3.8.0rc1 (#1748018)
4db8e97
d8b7c03
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.0.2-4
d8b7c03
- Rebuilt for Python 3.8
d8b7c03
13e5ef7
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
13e5ef7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
13e5ef7
417cbc9
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
417cbc9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
417cbc9
5fe2e30
* Tue Oct 02 2018 Carl George <carl@george.computer> - 2.0.2-1
5fe2e30
- Latest upstream
75c11bd
- Drop ptpython2 subpackage
5fe2e30
090d03a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-8
090d03a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
090d03a
4dd7fa8
* Tue Jun 19 2018 Carl George <carl@george.computer> - 0.41-7
4dd7fa8
- Add patch1 to fix Python 3.7 build (upstream #250)
4dd7fa8
8859773
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.41-6
8859773
- Rebuilt for Python 3.7
8859773
a3b3b71
* Wed Feb 21 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.41-5
a3b3b71
- Update Python 2 dependency declarations to new packaging standards
a3b3b71
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a3b3b71
24f53a5
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.41-4
24f53a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
24f53a5
2074041
* Tue Nov 28 2017 Carl George <carl@george.computer> - 0.41-3
2074041
- Re-rebuild for F27
2074041
8fcb2dc
* Mon Sep 25 2017 Carl George <carl@george.computer> - 0.41-2
8fcb2dc
- Require python2-jedi
8fcb2dc
3d3e2c5
* Thu Jul 27 2017 Carl George <carl@george.computer> - 0.41-1
3d3e2c5
- Latest upstream
3d3e2c5
7b6c52e
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.39-2
7b6c52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7b6c52e
Carl George 456fb9e
* Tue May 02 2017 Carl George <carl.george@rackspace.com> - 0.39-1
Carl George 456fb9e
- Latest upstream
Carl George bfe1633
- Add patch0 to undo https://github.com/jonathanslenders/ptpython/commit/16e4e31
Carl George 456fb9e
Carl George a8dae08
* Sat Mar 18 2017 Carl George <carl.george@rackspace.com> - 0.36-1
Carl George a8dae08
- Initial package.