1 Commits

Author SHA256 Message Date
6f0b8cb782 Convert to libalternatives, bsc#1245883 2025-11-03 14:47:32 +01:00
2 changed files with 24 additions and 1 deletions

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Aug 19 14:01:31 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives on SLE-16-based and newer systems only
-------------------------------------------------------------------
Tue Jul 8 13:53:24 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to libalternatives
-------------------------------------------------------------------
Fri May 2 14:35:23 UTC 2025 - Nico Krapp <nico.krapp@suse.com>

View File

@@ -16,6 +16,11 @@
#
%if 0%{?suse_version} > 1500
%bcond_without libalternatives
%else
%bcond_with libalternatives
%endif
%{?sle15_python_module_pythons}
Name: python-flit
Version: 3.12.0
@@ -37,9 +42,14 @@ Requires: python-flit-core >= %{version}
Requires: python-pip
Requires: python-requests
Requires: python-tomli-w
BuildArch: noarch
%if %{with libalternatives}
BuildRequires: alts
Requires: alts
%else
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%endif
# SECTION test requirements
BuildRequires: %{python_module pytest >= 2.7.3}
BuildRequires: %{python_module responses}
@@ -79,6 +89,9 @@ export PATH=$PWD/build/testbin/:$PATH
%postun
%python_uninstall_alternative flit
%pre
%python_libalternatives_reset_alternative flit
%files %{python_files}
%doc README.rst
%license LICENSE