14
0

Accepting request 1298855 from devel:languages:python

- Make the libalternatives transition conditional

OBS-URL: https://build.opensuse.org/request/show/1298855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Automat?expand=0&rev=13
This commit is contained in:
2025-08-12 15:03:33 +00:00
committed by Git OBS Bridge
2 changed files with 21 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 11 13:37:41 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Make the libalternatives transition conditional
-------------------------------------------------------------------
Sat Jul 12 11:39:20 UTC 2025 - Dirk Müller <dmueller@suse.com>

View File

@@ -24,7 +24,11 @@
%define psuffix %{nil}
%bcond_with test
%endif
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-Automat%{psuffix}
Version: 25.4.16
@@ -37,10 +41,15 @@ BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
%endif
Requires: python-attrs >= 19.2.0
Suggests: python-Twisted >= 16.1.1
Suggests: python-graphviz > 0.5.1
@@ -79,6 +88,12 @@ automata (particularly deterministic finite-state transducers).
%pre
%python_libalternatives_reset_alternative automat-visualize
%post
%python_install_alternative automat-visualize
%postun
%python_uninstall_alternative automat-visualize
%files %{python_files}
%license LICENSE
%doc README.md