|
Jon Schlueter |
b7d931e |
# the tests requires internet access, with pip install being run
|
|
Jon Schlueter |
b7d931e |
# so they are disabled for now, since koji block outgoing connexion
|
|
Jon Schlueter |
b7d931e |
%global with_tests 0
|
|
Jon Schlueter |
b7d931e |
|
|
|
fde776f |
Name: bandit
|
|
|
5c967c4 |
Version: 1.4.0
|
|
|
cc6d2b5 |
Release: 5%{?dist}
|
|
|
fde776f |
Summary: A framework for performing security analysis of Python source code
|
|
|
fde776f |
License: ASL 2.0
|
|
|
fde776f |
URL: https://wiki.openstack.org/wiki/Security/Projects/Bandit
|
|
|
5c967c4 |
Source0: https://files.pythonhosted.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz
|
|
|
fde776f |
BuildArch: noarch
|
|
Michael Scherer |
439c881 |
Requires: python3-PyYAML
|
|
Michael Scherer |
439c881 |
Requires: python3-stevedore
|
|
Michael Scherer |
439c881 |
Requires: python3-appdirs
|
|
Michael Scherer |
439c881 |
BuildRequires: python3-devel
|
|
Jon Schlueter |
b7d931e |
BuildRequires: python3-setuptools
|
|
Jon Schlueter |
b7d931e |
%if 0%{?with_tests}
|
|
Michael Scherer |
439c881 |
BuildRequires: python3-pip
|
|
Jon Schlueter |
b7d931e |
%endif
|
|
Michael Scherer |
439c881 |
BuildRequires: python3-pbr
|
|
|
fde776f |
|
|
|
0cc7c05 |
Patch0: bandit-1.4.0-2-setup.cfg.patch
|
|
|
c6a852c |
Patch1: bandit-1.4.0-3-formatter-yaml.patch
|
|
|
d78005e |
Patch2: bandit-1.4.0-4-formatter-custom.patch
|
|
|
cc6d2b5 |
Patch3: bandit-1.4.0-5-pbr.patch
|
|
|
0cc7c05 |
|
|
|
fde776f |
%description
|
|
|
beeaab0 |
Bandit provides a framework for performing security analysis of Python source
|
|
|
fde776f |
code, utilizing the ast module from the Python standard library.
|
|
|
fde776f |
|
|
|
beeaab0 |
The ast module is used to convert source code into a parsed tree of Python
|
|
|
fde776f |
syntax nodes. Bandit allows users to define custom tests that are performed
|
|
|
beeaab0 |
against those nodes. At the completion of testing, a report is generated
|
|
|
fde776f |
that lists security issues identified within the target source code.
|
|
|
fde776f |
%prep
|
|
|
0cc7c05 |
%autosetup -p1
|
|
|
fde776f |
|
|
|
fde776f |
%build
|
|
Michael Scherer |
439c881 |
%{__python3} setup.py build
|
|
|
fde776f |
|
|
|
fde776f |
%install
|
|
Michael Scherer |
439c881 |
%{__python3} setup.py install --skip-build --root %{buildroot}
|
|
|
fde776f |
|
|
|
fde776f |
%check
|
|
Jon Schlueter |
b7d931e |
%if 0%{?with_tests}
|
|
Jon Schlueter |
b7d931e |
tox -epy27
|
|
Jon Schlueter |
b7d931e |
%endif
|
|
|
fde776f |
|
|
|
fde776f |
%files
|
|
Michael Scherer |
bef4e0a |
%doc AUTHORS ChangeLog README.rst
|
|
Michael Scherer |
439c881 |
%doc doc
|
|
Michael Scherer |
439c881 |
%doc examples
|
|
|
fde776f |
%license LICENSE
|
|
|
fde776f |
%{_bindir}/bandit
|
|
Michael Scherer |
439c881 |
%{_bindir}/bandit-baseline
|
|
Michael Scherer |
439c881 |
%{_bindir}/bandit-config-generator
|
|
Michael Scherer |
439c881 |
%{python3_sitelib}/%{name}
|
|
Michael Scherer |
439c881 |
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
|
|
|
fde776f |
|
|
|
fde776f |
%changelog
|
|
|
cc6d2b5 |
* Mon Dec 04 2017 Marek Cermak <macermak@redhat.com> - 1.4.0-5
|
|
|
cc6d2b5 |
- fix pbr version issue
|
|
|
cc6d2b5 |
- version dependency of pbr lowered to pbr>=1.8
|
|
|
cc6d2b5 |
|
|
|
d78005e |
* Mon Nov 27 2017 Marek Cermak <macermak@redhat.com> - 1.4.0-4
|
|
|
d78005e |
- new formatter (custom)
|
|
|
d78005e |
|
|
|
c6a852c |
* Mon Nov 27 2017 Marek Cermak <macermak@redhat.com> - 1.4.0-3
|
|
|
c6a852c |
- new formatter (yaml)
|
|
|
c6a852c |
|
|
|
0cc7c05 |
* Mon Nov 27 2017 Marek Cermak <macermak@redhat.com> - 1.4.0-2
|
|
|
0cc7c05 |
- reformat setup.cfg
|
|
|
0cc7c05 |
|
|
|
5c967c4 |
* Tue Sep 19 2017 Marek Cermak <macermak@redhat.com> - 1.4.0-1
|
|
|
5c967c4 |
- new version 1.4.0
|
|
|
5c967c4 |
|
|
|
45267c7 |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-4
|
|
|
45267c7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
45267c7 |
|
|
|
b133301 |
* Mon Dec 19 2016 Miro HronĨok <mhroncok@redhat.com> - 1.0.1-3
|
|
|
b133301 |
- Rebuild for Python 3.6
|
|
|
b133301 |
|
|
|
e620b5e |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
e620b5e |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
e620b5e |
|
|
Michael Scherer |
439c881 |
* Thu Apr 21 2016 Michael Scherer <misc@zarb.org> - 1.0.1-1
|
|
Michael Scherer |
439c881 |
- update to 1.0.1
|
|
Michael Scherer |
439c881 |
- port to python3
|
|
Michael Scherer |
439c881 |
- drop the /etc configuration directory, as upstream did remove config file
|
|
Michael Scherer |
439c881 |
|
|
|
8634beb |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.13.2-2
|
|
|
8634beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
8634beb |
|
|
Michael Scherer |
bef4e0a |
* Thu Aug 20 2015 Michael Scherer <misc@zarb.org> 0.13.2-1
|
|
Michael Scherer |
bef4e0a |
- new version 0.13.2
|
|
Michael Scherer |
45167d1 |
- add requires on python-stevedore, fix #1254589
|
|
Michael Scherer |
bef4e0a |
|
|
Michael Scherer |
3f8e5fb |
* Sat Jul 11 2015 Michael Scherer <misc@zarb.org> 0.12.0-1
|
|
Michael Scherer |
3f8e5fb |
- new version 0.12.0
|
|
Michael Scherer |
3f8e5fb |
|
|
|
5315567 |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
|
|
|
5315567 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
5315567 |
|
|
|
ec88e11 |
* Wed Jun 10 2015 Michael Scherer <misc@zarb.org> 0.11.0-1
|
|
|
ec88e11 |
- new version 0.11.0
|
|
|
ec88e11 |
|
|
|
fde776f |
* Fri May 01 2015 Michael Scherer <misc@zarb.org> 0.10.1-1
|
|
|
fde776f |
- Initial package
|