# Created by pyp2rpm-1.1.2 %global pypi_name bandit Name: python-%{pypi_name} Version: 0.13.0 Release: 1%{?dist} Summary: Security oriented static analyser for python code License: ASL 2.0 URL: https://wiki.openstack.org/wiki/Security/Projects/Bandit Source0: https://pypi.python.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python2-devel BuildRequires: python-pbr BuildRequires: python-sphinx BuildRequires: python-setuptools Requires: python-setuptools Requires: python-appdirs Requires: PyYAML Requires: python-six Requires: python-stevedore %description Bandit is a tool designed to find common security issues in Python code. To do this Bandit processes each file, builds an AST from it, and runs appropriate plugins against the AST nodes. Once Bandit has finished scanning all the files it generates a report. %package doc Summary: Documentation for Security oriented static analyser BuildRequires: python-sphinx BuildRequires: python-oslo-sphinx BuildRequires: dos2unix %description doc Documentation for Security oriented static analyser %prep %setup -q -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info rm -f {test-,}requirements.txt %build %{__python2} setup.py build #doc export PYTHONPATH="$( pwd ):$PYTHONPATH" pushd docs sphinx-build -b html -d build/doctrees source build/html popd # Fix hidden-file-or-dir warnings rm -fr docs/build/html/.buildinfo %install %{__python2} setup.py install --skip-build --root %{buildroot} %files %doc AUTHORS README.rst %license LICENSE %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %{_bindir}/%{pypi_name} %{_datadir}/%{pypi_name}/wordlist/default-passwords %{_usr}/etc/%{pypi_name}/%{pypi_name}.yaml %files doc %doc docs/build/html %license LICENSE %changelog * Mon Aug 10 2015 chandankumar - 0.13.0-1 - Initial package.