| |
@@ -1,36 +1,15 @@
|
| |
- %global with_python3 1
|
| |
-
|
| |
Name: bpython
|
| |
Summary: Fancy curses interface to the Python interactive interpreter
|
| |
Version: 0.17.1
|
| |
- Release: 5%{?dist}
|
| |
+ Release: 6%{?dist}
|
| |
URL: http://www.bpython-interpreter.org/
|
| |
License: MIT
|
| |
Source0: https://bpython-interpreter.org/releases/bpython-%{version}.tar.gz
|
| |
BuildArch: noarch
|
| |
- BuildRequires: python2-devel
|
| |
- BuildRequires: python2-setuptools
|
| |
- BuildRequires: python2-sphinx
|
| |
BuildRequires: desktop-file-utils
|
| |
- %if 0%{?with_python3}
|
| |
BuildRequires: python3-devel
|
| |
BuildRequires: python3-setuptools
|
| |
- %endif # if with_python3
|
| |
- Provides: bpython2 = %{version}-%{release}
|
| |
- %if 0%{?fedora} > 27
|
| |
- Requires: python2-curtsies >= 0.1.18
|
| |
- Requires: python2-urwid
|
| |
- %else
|
| |
- Requires: python-curtsies >= 0.1.18
|
| |
- Requires: python-urwid
|
| |
- %endif
|
| |
- Requires: python2-greenlet
|
| |
- Requires: python2-jedi
|
| |
- Requires: python2-pygments
|
| |
- Requires: python2-requests > 1.2.3
|
| |
- Requires: python2-six >= 1.5
|
| |
- Requires: python2-watchdog
|
| |
- Obsoletes: bpython-gtk < 0.14
|
| |
+ BuildRequires: python3-sphinx
|
| |
|
| |
%description
|
| |
bpython is a fancy interface to the Python interpreter for Unix-like
|
| |
@@ -45,18 +24,18 @@
|
| |
o save the code you've entered to a file
|
| |
o auto indentation
|
| |
|
| |
- %if 0%{?with_python3}
|
| |
%package -n python3-bpython
|
| |
- Summary: Fancy curses interface to the Python 3 interactive interpreter
|
| |
+ Summary: Fancy curses interface to the Python 3 interactive interpreter
|
| |
Provides: bpython3 = %{version}-%{release}
|
| |
- Requires: python3-curtsies >= 0.1.18
|
| |
- Requires: python3-greenlet
|
| |
- Requires: python3-jedi
|
| |
- Requires: python3-pygments
|
| |
- Requires: python3-requests > 1.2.3
|
| |
- Requires: python3-six >= 1.5
|
| |
- #Requires: python3-urwid
|
| |
- Requires: python3-watchdog
|
| |
+ Provides: bpython = %{version}-%{release}
|
| |
+ Obsoletes: bpython < 0.17.1-6
|
| |
+ Obsoletes: bpython-gtk < 0.14
|
| |
+
|
| |
+ %{?python_provide:%python_provide python3-bpython}
|
| |
+
|
| |
+ Recommends: python3-bpython-urwid = %{version}-%{release}
|
| |
+ Recommends: python3dist(jedi)
|
| |
+ Recommends: python3dist(watchdog)
|
| |
|
| |
%description -n python3-bpython
|
| |
bpython is a fancy interface to the Python interpreter for Unix-like
|
| |
@@ -71,65 +50,73 @@
|
| |
o save the code you've entered to a file
|
| |
o auto indentation
|
| |
|
| |
- This is the Python 3 build of bpython
|
| |
- %endif # if with_python3
|
| |
+ This is the Python 3 build of bpython.
|
| |
+
|
| |
+ %package -n python3-bpython-urwid
|
| |
+ Summary: Urwid interface to the Python 3 interactive interpreter
|
| |
+
|
| |
+ %{?python_provide:%python_provide python3-bpython-urwid}
|
| |
+
|
| |
+ Requires: python3-bpython = %{version}-%{release}
|
| |
+ Requires: python3dist(urwid)
|
| |
+ Requires: python3dist(twisted)
|
| |
+
|
| |
+ %description -n python3-bpython-urwid
|
| |
+ bpython is a fancy interface to the Python interpreter for Unix-like
|
| |
+ operating systems. It has the following features:
|
| |
+ o in-line syntax highlighting
|
| |
+ o readline-like autocomplete with suggestions displayed as you type
|
| |
+ o expected parameter list for any Python function.
|
| |
+ o eewind function to pop the last line of code from memory and
|
| |
+ re-evaluate.
|
| |
+ o send the code you've entered off to a pastebin and display the
|
| |
+ pastebin URL for copying, etc.
|
| |
+ o save the code you've entered to a file
|
| |
+ o auto indentation
|
| |
+
|
| |
+ This is the Python 3 build of bpython with urwid.
|
| |
|
| |
%prep
|
| |
%setup -q
|
| |
|
| |
%build
|
| |
- %{py2_build}
|
| |
-
|
| |
- %if 0%{?with_python3}
|
| |
%{py3_build}
|
| |
- %endif
|
| |
|
| |
%install
|
| |
- # Install python 3 first, so that python 2 gets precedence:
|
| |
- %if 0%{?with_python3}
|
| |
%{py3_install}
|
| |
- # python3-urwid ok, however python3 twisted also needed
|
| |
- rm -f %{buildroot}%{_bindir}/bpython-urwid
|
| |
- # Move python3
|
| |
- mv %{buildroot}/%{_bindir}/bpython %{buildroot}/%{_bindir}/bpython3
|
| |
- mv %{buildroot}/%{_bindir}/bpython-curses %{buildroot}/%{_bindir}/bpython3-curses
|
| |
- mv %{buildroot}/%{_bindir}/bpdb %{buildroot}%{_bindir}/bpdb3
|
| |
- # Create symlink for compat reasons
|
| |
- ln -s bpython3 %{buildroot}%{_bindir}/python3-bpython
|
| |
- %endif # with_python3
|
| |
-
|
| |
- %{py2_install}
|
| |
-
|
| |
- %files
|
| |
+ # backwards compatibility links python3
|
| |
+ ln -s bpython %{buildroot}/%{_bindir}/bpython3
|
| |
+ ln -s bpython-curses %{buildroot}/%{_bindir}/bpython3-curses
|
| |
+ ln -s bpdb %{buildroot}%{_bindir}/bpdb3
|
| |
+ ln -s bpython %{buildroot}%{_bindir}/python3-bpython
|
| |
+
|
| |
+ %files -n python3-bpython
|
| |
%license LICENSE
|
| |
%doc AUTHORS CHANGELOG README.rst
|
| |
%doc light.theme sample.theme
|
| |
%{_bindir}/bpdb
|
| |
%{_bindir}/bpython
|
| |
%{_bindir}/bpython-curses
|
| |
- %{_bindir}/bpython-urwid
|
| |
- %{python2_sitelib}/bpython*
|
| |
- %{python2_sitelib}/bpdb
|
| |
+ %{_bindir}/bpdb3
|
| |
+ %{_bindir}/bpython3
|
| |
+ %{_bindir}/bpython3-curses
|
| |
+ %{_bindir}/python3-bpython
|
| |
+ %{python3_sitelib}/bpython*/
|
| |
+ %{python3_sitelib}/bpdb/
|
| |
%{_mandir}/man1/bpython.1*
|
| |
%{_mandir}/man5/bpython-config.5*
|
| |
%{_datadir}/pixmaps/bpython.png
|
| |
%{_datadir}/appdata/bpython.appdata.xml
|
| |
%{_datadir}/applications/bpython.desktop
|
| |
|
| |
- %if 0%{?with_python3}
|
| |
- %files -n python3-bpython
|
| |
- %license LICENSE
|
| |
- %doc AUTHORS CHANGELOG README.rst
|
| |
- %doc light.theme sample.theme
|
| |
- %{_bindir}/bpdb3
|
| |
- %{_bindir}/bpython3
|
| |
- %{_bindir}/bpython3-curses
|
| |
- %{_bindir}/python3-bpython
|
| |
- %{python3_sitelib}/bpython*
|
| |
- %{python3_sitelib}/bpdb
|
| |
- %endif # with_python3
|
| |
+ %files -n python3-bpython-urwid
|
| |
+ %{_bindir}/bpython-urwid
|
| |
|
| |
%changelog
|
| |
+ * Fri Mar 08 2019 Miro Hrončok <mhroncok@redhat.com> - 0.17.1-6
|
| |
+ - Drop Python 2 bpython
|
| |
+ - Add Python 3 bpython-urwid
|
| |
+
|
| |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.17.1-5
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
| |
|
| |
bpython is blocking a lot of Python 2 packages removals.