15
0

- Convert to libalternatives

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=38
This commit is contained in:
2025-06-17 09:04:25 +00:00
committed by Git OBS Bridge
parent ba23e43831
commit 7c238c10bf
2 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 17 09:03:42 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Tue Jan 21 12:13:55 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -17,6 +17,7 @@
%bcond_without test
%bcond_without libalternatives
Name: python-bpython
Version: 0.25
Release: 0
@@ -29,18 +30,18 @@ BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: python-rpm-macros
BuildRequires: update-desktop-files
Requires: %{name}-common = %{version}
Requires: alts
Requires: python-curtsies >= 0.4
Requires: python-greenlet
Requires: python-pygments
Requires: python-pyxdg
Requires: python-requests
Requires(post): update-alternatives
Requires(postun): update-alternatives
Recommends: python-cwcwidth
Recommends: python-jedi
Recommends: python-ndg-httpsclient
@@ -131,11 +132,8 @@ rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop
%pyunittest discover -v
%endif
%post
%{python_install_alternative bpython bpython-urwid bpdb bpython.1%{ext_man} bpython-config.5%{ext_man}}
%postun
%python_uninstall_alternative bpython
%pre
%python_libalternatives_reset_alternative bpython
%files %{python_files}
%license LICENSE