forked from pool/python-bpython
Accepting request 604645 from home:apersaud:branches:devel:languages:python
update to latest version OBS-URL: https://build.opensuse.org/request/show/604645 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=5
This commit is contained in:
committed by
Git OBS Bridge
parent
a67523776d
commit
d499bbb573
@@ -19,12 +19,12 @@
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_with test
|
||||
Name: python-bpython
|
||||
Version: 0.17
|
||||
Version: 0.17.1
|
||||
Release: 0
|
||||
Summary: Fancy Interface to the Python Interpreter
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
Url: http://www.bpython-interpreter.org/
|
||||
URL: http://www.bpython-interpreter.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/b/bpython/bpython-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Babel}
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
@@ -34,6 +34,22 @@ BuildRequires: fdupes
|
||||
BuildRequires: hicolor-icon-theme
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: update-desktop-files
|
||||
Requires: %{name}-common = %{version}
|
||||
Requires: python-curtsies >= 0.1.18
|
||||
Requires: python-greenlet
|
||||
Requires: python-pygments
|
||||
Requires: python-requests
|
||||
Requires: python-six >= 1.5
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Recommends: python-jedi
|
||||
Recommends: python-ndg-httpsclient
|
||||
Recommends: python-pyOpenSSL
|
||||
Recommends: python-pyasn1
|
||||
Recommends: python-urwid
|
||||
Recommends: python-watchdog
|
||||
Recommends: python-wcwidth
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module curtsies >= 0.1.18}
|
||||
BuildRequires: %{python_module greenlet}
|
||||
@@ -43,27 +59,10 @@ BuildRequires: %{python_module six >= 1.5}
|
||||
BuildRequires: %{python_module wcwidth}
|
||||
BuildRequires: python-mock
|
||||
%endif
|
||||
Requires: %{name}-common = %{version}
|
||||
Requires: python-curtsies >= 0.1.18
|
||||
Requires: python-greenlet
|
||||
Requires: python-pygments
|
||||
Requires: python-requests
|
||||
Requires: python-six >= 1.5
|
||||
Recommends: python-pyOpenSSL
|
||||
Recommends: python-pyasn1
|
||||
Recommends: python-ndg-httpsclient
|
||||
Recommends: python-jedi
|
||||
Recommends: python-urwid
|
||||
Recommends: python-watchdog
|
||||
Recommends: python-wcwidth
|
||||
%ifpython2
|
||||
Provides: bpython = %{version}
|
||||
Obsoletes: bpython <= %{version}
|
||||
%endif
|
||||
BuildArch: noarch
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -75,9 +74,9 @@ submit your code and return a URL. Its goal is to bring together a few handy
|
||||
ideas to enhance the standard interpreter without getting carried away.
|
||||
|
||||
%package -n %{name}-common
|
||||
Provides: %{python_module bpython-common = %{version}}
|
||||
Summary: Fancy Interface to the Python Interpreter - common files
|
||||
Group: Development/Languages/Python
|
||||
Provides: %{python_module bpython-common = %{version}}
|
||||
|
||||
%description -n %{name}-common
|
||||
This package contains files shared between the various versions of
|
||||
@@ -141,32 +140,30 @@ rm %{buildroot}%{_datadir}/applications/bpython.desktop
|
||||
%endif
|
||||
|
||||
%post
|
||||
%{python_install_alternative bpython bpython-curses bpython-urwid bpdb bpython.1%ext_man bpython-config.5%ext_man}
|
||||
%{python_install_alternative bpython bpython-curses bpython-urwid bpdb bpython.1%{ext_man} bpython-config.5%{ext_man}}
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bpython
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc AUTHORS CHANGELOG LICENSE README.rst
|
||||
%license LICENSE
|
||||
%doc AUTHORS CHANGELOG README.rst
|
||||
%{python_sitelib}/*
|
||||
%python_alternative %{_bindir}/bpython
|
||||
%python_alternative %{_bindir}/bpython-curses
|
||||
%python_alternative %{_bindir}/bpython-urwid
|
||||
%python_alternative %{_bindir}/bpdb
|
||||
%python_alternative %{_mandir}/man1/bpython.1%ext_man
|
||||
%python_alternative %{_mandir}/man5/bpython-config.5%ext_man
|
||||
%python_alternative %{_mandir}/man1/bpython.1%{ext_man}
|
||||
%python_alternative %{_mandir}/man5/bpython-config.5%{ext_man}
|
||||
%dir %{_datadir}/appdata/
|
||||
%{_datadir}/appdata/bpython-%{python_bin_suffix}.appdata.xml
|
||||
%{_datadir}/applications/bpython-%{python_bin_suffix}.desktop
|
||||
|
||||
%files -n %{name}-common
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%{_datadir}/pixmaps/bpython.png
|
||||
|
||||
%files -n %{name}-doc
|
||||
%defattr(-,root,root)
|
||||
%doc build/sphinx/html
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user