17
0
2025-10-22 10:16:00 +00:00
committed by Git OBS Bridge
2 changed files with 23 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Oct 17 12:45:18 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems
-------------------------------------------------------------------
Wed Jul 16 06:22:06 UTC 2025 - Torsten Gruner <simmphonie@opensuse.org>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-wxPython
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -80,6 +80,11 @@ ExclusiveArch: donotbuild
%define python_provides %{expand:%%%{flavor}_provides}
%endif
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
Name: %{pprefix}-wxPython
Version: 4.2.3
@@ -107,8 +112,8 @@ BuildRequires: %{python_module base >= 3.9}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: gcc%{?gccver}-c++
BuildRequires: fdupes
BuildRequires: gcc%{?gccver}-c++
BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
%if %{with syswx}
@@ -161,6 +166,13 @@ BuildRequires: google-opensans-fonts
BuildRequires: xorg-x11-server
BuildRequires: pkgconfig(cppunit)
%endif
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
%description
Phoenix is a reimplementation of wxPython. Like the "classic"
@@ -254,6 +266,7 @@ fi
%python_clone -a %{buildroot}%{_bindir}/wxdemo
%python_clone -a %{buildroot}%{_bindir}/wxdocs
%python_clone -a %{buildroot}%{_bindir}/wxget
%python_group_libalternatives pywxrc helpviewer img2png img2py img2xpm pycrust pyshell pyslices pyslicesshell wxdemo wxdocs wxget
%if %{without syswx}
%find_lang wxstd
@@ -291,6 +304,9 @@ mv wx wx_temp
mv wx_temp wx
%endif
%pre
%python_libalternatives_reset_alternative pywxrc
%post
%python_install_alternative pywxrc helpviewer img2png img2py img2xpm pycrust pyshell pyslices pyslicesshell wxdemo wxdocs wxget