forked from pool/python-bandit
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=39
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 16 14:45:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 24 10:23:19 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user