[python-django-secure/el6: 1/2] initial import
Matthias Runge
mrunge at fedoraproject.org
Wed Aug 28 06:45:27 UTC 2013
commit dd6a94521e0bfbc97f0ef91e2734ff76ba709d2d
Author: Matthias Runge <mrunge at redhat.com>
Date: Wed Aug 28 08:05:22 2013 +0200
initial import
.gitignore | 1 +
python-django-secure.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 57 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..80869d1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django-secure-1.0.tar.gz
diff --git a/python-django-secure.spec b/python-django-secure.spec
new file mode 100644
index 0000000..02c11ab
--- /dev/null
+++ b/python-django-secure.spec
@@ -0,0 +1,55 @@
+%global pypi_name django-secure
+
+Name: python-%{pypi_name}
+Version: 1.0
+Release: 1%{?dist}
+Summary: Utilities and a 'linter' to help you make your Django site more secure
+
+License: BSD
+URL: https://github.com/carljm/django-secure/
+Source0: https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-sphinx
+
+Requires: Django
+
+%description
+Helping you remember to do the stupid little things to improve your Django
+site's security.
+
+Inspired by Mozilla's `Secure Coding Guidelines`_, and intended for sites that
+are entirely or mostly served over SSL (which should include anything with
+user logins).
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+# workaround to silence rpmlint
+echo "# comment" >> djangosecure/models.py
+
+
+%build
+%{__python} setup.py build
+
+# generate html docs
+sphinx-build doc html
+# remove the sphinx-build leftovers
+rm -rf html/.{doctrees,buildinfo}
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+
+%files
+%doc html README.rst LICENSE.txt
+%{python_sitelib}/djangosecure
+%{python_sitelib}/django_secure-%{version}-py?.?.egg-info
+
+%changelog
+* Tue Aug 27 2013 Matthias Runge <mrunge at redhat.com> - 1.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..f28067d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+68fcc9570371e1e9f5ee57958a86a138 django-secure-1.0.tar.gz
More information about the scm-commits
mailing list