[python-django-openstack-auth] intial commit
Matthias Runge
mrunge at fedoraproject.org
Fri Sep 14 08:23:00 UTC 2012
commit 9e45adc656fcf40b9a960fed8c1c4f983103dc7b
Author: Matthias Runge <mrunge at redhat.com>
Date: Fri Sep 14 10:22:49 2012 +0200
intial commit
.gitignore | 1 +
python-django-openstack-auth.spec | 67 +++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 69 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..5066652 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/django_openstack_auth-1.0.2.tar.gz
diff --git a/python-django-openstack-auth.spec b/python-django-openstack-auth.spec
new file mode 100644
index 0000000..56f3e89
--- /dev/null
+++ b/python-django-openstack-auth.spec
@@ -0,0 +1,67 @@
+%global pypi_name django_openstack_auth
+
+Name: python-django-openstack-auth
+Version: 1.0.2
+Release: 1%{?dist}
+Summary: Django authentication backend for OpenStack Keystone
+
+License: BSD
+URL: http://pypi.python.org/pypi/django_openstack_auth/1.0.2
+Source0: http://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch: noarch
+
+BuildRequires: python2-devel
+BuildRequires: python-sphinx
+BuildRequires: python-mox
+BuildRequires: python-keystoneclient
+BuildRequires: python-django
+
+Requires: python-django >= 1.4
+Requires: python-keystoneclient
+
+%description
+Django OpenStack Auth is a pluggable Django authentication backend that
+works with Django's ``contrib.auth`` framework to authenticate a user against
+OpenStack's Keystone Identity API.
+
+The current version is designed to work with the
+Keystone V2 API.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+# remove unnecessary .po files
+find . -name "django.po" -exec rm -f '{}' \;
+
+
+%build
+%{__python} setup.py build
+
+# generate html docs
+PYTHONPATH=.:$PYTHONPATH sphinx-build docs html
+# remove the sphinx-build leftovers
+#rm -rf html/.{doctrees,buildinfo}
+
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+%find_lang django
+
+# don't include tests in the RPM
+rm -rf %{buildroot}/%{python_sitelib}/openstack_auth/tests
+
+%check
+%{__python} setup.py test
+
+%files -f django.lang
+%doc README.rst LICENSE
+%dir %{python_sitelib}/openstack_auth
+%{python_sitelib}/openstack_auth/*.py*
+%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
+
+%changelog
+* Tue Sep 11 2012 Matthias Runge <mrunge at redhat.com> - 1.0.2-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..de7b4d4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b3e2cf6059cc63481701ffe4a6dd6d78 django_openstack_auth-1.0.2.tar.gz
More information about the scm-commits
mailing list