Blob Blame History Raw
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif

Name:           django-authenticator
Version:        0.1.4
Release:        1%{?dist}
Summary:        Authentication client for django

License:        GPLv3
URL:            http://pypi.python.org/pypi/django-authenticator/0.1.4
Source0:        http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       Django
Requires:       django-registration
Requires:       import-utils
Requires:       django-south
Requires:       python-oauth2
Requires:       python-openid
Requires:       python-wordpress-xmlrpc

%description
this is a based on a forked version of django-authopenid module 
developed for the Askbot forum project.

This module is experimental


%prep
%setup -q


%build
%{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# remove forgotten script
%{__rm} %{buildroot}%{_bindir}/startforum

%files
%defattr (-,root,root,-)
%doc PKG-INFO
%{python_sitelib}/django_authenticator
%{python_sitelib}/django_authenticator-%{version}*




%changelog
* Tue Sep 20 2011 Matthias Runge <mrunge@matthias-runge.de> - 0.1.4-1 
- first packaged version for fedora