diff --git a/python-bandit.changes b/python-bandit.changes index f360e10..30c6bc4 100644 --- a/python-bandit.changes +++ b/python-bandit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 16 14:45:04 UTC 2025 - Markéta Machová + +- Convert to libalternatives + ------------------------------------------------------------------- Mon Feb 24 10:23:19 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-bandit.spec b/python-bandit.spec index 7c86794..01060bf 100644 --- a/python-bandit.spec +++ b/python-bandit.spec @@ -27,6 +27,7 @@ # CLI tool, no module %define pythons python3 %bcond_without builddocs +%bcond_without libalternatives %{?sle15_python_module_pythons} Name: python-bandit Version: 1.8.3 @@ -40,11 +41,11 @@ BuildRequires: %{python_module pbr >= 2.0} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module wheel} +BuildRequires: alts BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-GitPython +Requires: alts Requires: python-GitPython >= 1.0.1 -Requires: python-PyYAML Requires: python-PyYAML >= 5.3.1 Requires: python-jschema-to-python >= 1.2.3 Requires: python-rich @@ -52,8 +53,6 @@ Requires: python-sarif-om Requires: python-stestr >= 1.0.0 Requires: python-stevedore >= 1.20.0 Requires: (python-tomli >= 1.2.3 if python-base < 3.11) -Requires(post): update-alternatives -Requires(postun): update-alternatives BuildArch: noarch %if %{python_version_nodots} < 311 Requires: python-tomli @@ -110,13 +109,11 @@ sed -i '/^#!/d' bandit/__main__.py %endif %if !%{with test} -%post -%{python_install_alternative bandit bandit-config-generator bandit-baseline } %endif %if !%{with test} -%postun -%python_uninstall_alternative bandit +%pre +%python_libalternatives_reset_alternative bandit %endif %if !%{with test}