14
0
forked from pool/python-bandit

- Remove not needed python-six dependency

- Use autosetup instead of setup + patch
- More specific sitelib package in %files

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bandit?expand=0&rev=23
This commit is contained in:
2022-10-27 11:20:23 +00:00
committed by Git OBS Bridge
parent 390eb17e92
commit 58e5430d73
2 changed files with 10 additions and 5 deletions

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 27 11:16:40 UTC 2022 - Daniel Garcia <daniel.garcia@suse.com>
- Remove not needed python-six dependency
- Use autosetup instead of setup + patch
- More specific sitelib package in %files
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 16 06:50:41 UTC 2022 - pgajdos@suse.com Wed Mar 16 06:50:41 UTC 2022 - pgajdos@suse.com

View File

@@ -40,7 +40,6 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
Requires: python-GitPython >= 1.0.1 Requires: python-GitPython >= 1.0.1
Requires: python-PyYAML >= 5.3.1 Requires: python-PyYAML >= 5.3.1
Requires: python-six >= 1.10.0
Requires: python-stestr >= 1.0.0 Requires: python-stestr >= 1.0.0
Requires: python-stevedore >= 1.20.0 Requires: python-stevedore >= 1.20.0
Requires: python-toml Requires: python-toml
@@ -56,7 +55,6 @@ BuildRequires: %{python_module fixtures >= 3.0.0}
BuildRequires: %{python_module pbr >= 2.0} BuildRequires: %{python_module pbr >= 2.0}
BuildRequires: %{python_module python-subunit >= 0.0.18} BuildRequires: %{python_module python-subunit >= 0.0.18}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module six >= 1.10.0}
BuildRequires: %{python_module stestr >= 2.5.0} BuildRequires: %{python_module stestr >= 2.5.0}
BuildRequires: %{python_module stevedore >= 1.20.0} BuildRequires: %{python_module stevedore >= 1.20.0}
BuildRequires: %{python_module testrepository >= 0.0.18} BuildRequires: %{python_module testrepository >= 0.0.18}
@@ -77,8 +75,7 @@ plugins against the AST nodes. Once Bandit has finished scanning all the files
it generates a report. it generates a report.
%prep %prep
%setup -q -n bandit-%{version} %autosetup -p1 -n bandit-%{version}
%patch0 -p1
sed -i '/^#!/d' bandit/__main__.py sed -i '/^#!/d' bandit/__main__.py
%if !%{with test} %if !%{with test}
@@ -117,7 +114,8 @@ sed -i '/^#!/d' bandit/__main__.py
%python_alternative %{_bindir}/bandit %python_alternative %{_bindir}/bandit
%python_alternative %{_bindir}/bandit-config-generator %python_alternative %{_bindir}/bandit-config-generator
%python_alternative %{_bindir}/bandit-baseline %python_alternative %{_bindir}/bandit-baseline
%{python_sitelib}/* %{python_sitelib}/bandit
%{python_sitelib}/bandit-%{version}*-info
%endif %endif
%changelog %changelog