!12 Upgrade package to version 1.7.4
From: @Gzx1999 Reviewed-by: @yangzhao_kl Signed-off-by: @yangzhao_kl
This commit is contained in:
commit
3158c71839
Binary file not shown.
BIN
bandit-1.7.4.tar.gz
Normal file
BIN
bandit-1.7.4.tar.gz
Normal file
Binary file not shown.
@ -1,21 +1,16 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-bandit
|
||||
Version: 1.7.0
|
||||
Release: 2
|
||||
Version: 1.7.4
|
||||
Release: 1
|
||||
Summary: Security oriented static analyser for python code.
|
||||
License: Apache-2.0
|
||||
URL: https://bandit.readthedocs.io/en/latest/
|
||||
Source0: https://files.pythonhosted.org/packages/6c/a1/14b70b67ea9c69e863dd65386bbc948ae34a502512d6f36e2a5a9fd5513b/bandit-1.7.0.tar.gz
|
||||
URL: https://github.com/PyCQA/bandit
|
||||
Source0: https://files.pythonhosted.org/packages/39/36/a37a2f6f8d0ed8c3bc616616ed5019e1df2680bd8b7df49ceae80fd457de/bandit-1.7.4.tar.gz
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
A security linter from PyCQA
|
||||
* Free software: Apache license
|
||||
* Documentation: https://bandit.readthedocs.io/en/latest/
|
||||
* Source: https://github.com/PyCQA/bandit
|
||||
* Bugs: https://github.com/PyCQA/bandit/issues
|
||||
* Contributing: https://github.com/PyCQA/bandit/blob/master/CONTRIBUTING.md
|
||||
|
||||
%package -n python3-bandit
|
||||
Summary: Security oriented static analyser for python code.
|
||||
@ -26,22 +21,12 @@ BuildRequires: python3-pip
|
||||
BuildRequires: python3-setuptools
|
||||
%description -n python3-bandit
|
||||
A security linter from PyCQA
|
||||
* Free software: Apache license
|
||||
* Documentation: https://bandit.readthedocs.io/en/latest/
|
||||
* Source: https://github.com/PyCQA/bandit
|
||||
* Bugs: https://github.com/PyCQA/bandit/issues
|
||||
* Contributing: https://github.com/PyCQA/bandit/blob/master/CONTRIBUTING.md
|
||||
|
||||
%package help
|
||||
Summary: Development documents and examples for bandit
|
||||
Provides: python3-bandit-doc
|
||||
%description help
|
||||
A security linter from PyCQA
|
||||
* Free software: Apache license
|
||||
* Documentation: https://bandit.readthedocs.io/en/latest/
|
||||
* Source: https://github.com/PyCQA/bandit
|
||||
* Bugs: https://github.com/PyCQA/bandit/issues
|
||||
* Contributing: https://github.com/PyCQA/bandit/blob/master/CONTRIBUTING.md
|
||||
|
||||
%prep
|
||||
%autosetup -n bandit-%{version}
|
||||
@ -58,20 +43,20 @@ if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
@ -84,6 +69,9 @@ mv %{buildroot}/doclist.lst .
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Sat Oct 08 2022 guozhengxin <guozhengxin@kylinos.cn> - 1.7.4-1
|
||||
- Upgrade package to version 1.7.4
|
||||
|
||||
* Sat Jul 31 2021 huangtianhua <huangtianhua@huawei.com> - 1.7.0-2
|
||||
- Adds pbr/pip as buildrequires
|
||||
* Wed Feb 03 2021 liusheng <liusheng2048@gmail.com>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user