From 11f9fe5bec58a523705af54cca1178b92ff8d4ff066d8e8ff3205d65a2929753 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Wed, 18 Jun 2025 08:56:07 +0000 Subject: [PATCH] - Fix libalternatives bpython-config man page OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bpython?expand=0&rev=39 --- python-bpython.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-bpython.spec b/python-bpython.spec index de2170f..af50dfb 100644 --- a/python-bpython.spec +++ b/python-bpython.spec @@ -149,6 +149,12 @@ rm %{buildroot}%{_datadir}/applications/org.bpython-interpreter.bpython.desktop %python_alternative %{_bindir}/bpdb %python_alternative %{_mandir}/man1/bpython.1%{ext_man} %python_alternative %{_mandir}/man5/bpython-config.5%{ext_man} +# Needed because bpython-config doesn't have a binary, it's just a man page file. +%if %{with libalternatives} +%dir %{_datadir}/libalternatives/bpython-config +%{_datadir}/libalternatives/bpython-config/*%{python_version_nodots}.conf +%endif + %dir %{_datadir}/metainfo/ %{_datadir}/metainfo/org.bpython-interpreter.bpython-%{python_bin_suffix}.metainfo.xml %dir %{_datadir}/applications/