misc pushed to bandit (f22). "Initial import"

notifications at fedoraproject.org notifications at fedoraproject.org
Wed Jun 10 12:33:23 UTC 2015


From fde776f3dccafce036b6f186386740ddb925cbf2 Mon Sep 17 00:00:00 2001
From: Michael Scherer <misc at zarb.org>
Date: Wed, 10 Jun 2015 12:02:38 +0200
Subject: Initial import


diff --git a/.gitignore b/.gitignore
index e69de29..0efc18a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bandit-0.10.1.tar.gz
diff --git a/bandit.spec b/bandit.spec
new file mode 100644
index 0000000..6421407
--- /dev/null
+++ b/bandit.spec
@@ -0,0 +1,50 @@
+Name: bandit
+Version: 0.10.1
+Release: 1%{?dist}
+Summary: A framework for performing security analysis of Python source code
+License: ASL 2.0
+URL: https://wiki.openstack.org/wiki/Security/Projects/Bandit
+Source0: http://tarballs.openstack.org/%{name}/%{name}-%{version}.tar.gz
+BuildArch: noarch
+Requires: PyYAML
+BuildRequires: python2-devel
+BuildRequires: python-pip
+BuildRequires: python-pbr
+
+%description
+Bandit provides a framework for performing security analysis of Python source 
+code, utilizing the ast module from the Python standard library.
+
+The ast module is used to convert source code into a parsed tree of Python 
+syntax nodes. Bandit allows users to define custom tests that are performed
+against those nodes. At the completion of testing, a report is generated 
+that lists security issues identified within the target source code.
+%prep
+%setup -q
+
+%build
+%{__python2} setup.py build
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+# bandit install his configuration file in /usr/etc/, so that's the easiest fix
+mv -f %{buildroot}/usr/etc %{buildroot}/etc/
+
+%check
+# the tests requires internet access, with pip install being run 
+# so they are disabled for now, since koji block outgoing connexion
+# tox -epy27
+
+%files
+%doc AUTHORS ChangeLog README.rst
+%doc docs examples 
+%license LICENSE
+%{_bindir}/bandit
+%{python2_sitelib}/%{name}
+%{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info
+%config(noreplace) %{_sysconfdir}/%{name}/%{name}.yaml
+%dir %{_sysconfdir}/%{name}
+
+%changelog
+* Fri May 01 2015 Michael Scherer <misc at zarb.org> 0.10.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..874b47d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+654e8d03f03f61a96db88b5824a4eec4  bandit-0.10.1.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/bandit.git/commit/?h=f22&id=fde776f3dccafce036b6f186386740ddb925cbf2


More information about the scm-commits mailing list