File python-django_openstack_auth.spec of Package python-django_openstack_auth
#
# spec file for package python-django_openstack_auth
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
Name: python-django_openstack_auth
Version: 1.0.4
Release: 0
License: BSD-3-Clause
Summary: A Django auth backend for use with the OpenStack Keystone
Url: http://django_openstack_auth.readthedocs.org/
Group: Development/Languages/Python
Source: http://pypi.python.org/packages/source/d/django_openstack_auth/django_openstack_auth-%{version}.tar.gz
BuildRequires: python-devel
BuildRequires: python-Sphinx
BuildRequires: python-django
BuildRequires: python-keystoneclient
BuildRequires: python-mox
Requires: python-django
Requires: python-keystoneclient
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch: noarch
%endif
%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 django_openstack_auth-%{version}
%build
python setup.py build
cd docs && make html && rm _build/html/.buildinfo # Build HTML documentation
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
#TODO/FIXME: Breaks:
#%%check
#python setup.py test
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst docs/_build/html
%{python_sitelib}/*
%lang(en) %{python_sitelib}/openstack_auth/locale/en/LC_MESSAGES/django.mo
%lang(es) %{python_sitelib}/openstack_auth/locale/es/LC_MESSAGES/django.mo
%lang(ja) %{python_sitelib}/openstack_auth/locale/ja/LC_MESSAGES/django.mo
%lang(zh-tw) %{python_sitelib}/openstack_auth/locale/zh_TW/LC_MESSAGES/django.mo
%changelog