Blame django-authenticator.spec

8cf4ccb
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
8cf4ccb
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
8cf4ccb
%endif
8cf4ccb
8cf4ccb
Name:           django-authenticator
8cf4ccb
Version:        0.1.4
8cf4ccb
Release:        1%{?dist}
8cf4ccb
Summary:        Authentication client for django
8cf4ccb
8cf4ccb
License:        GPLv3
8cf4ccb
URL:            http://pypi.python.org/pypi/django-authenticator/0.1.4
8cf4ccb
Source0:        http://pypi.python.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz
8cf4ccb
8cf4ccb
BuildArch:      noarch
8cf4ccb
BuildRequires:  python-devel
8cf4ccb
BuildRequires:  python-setuptools
8cf4ccb
Requires:       Django
8cf4ccb
Requires:       django-registration
Matthias Runge 82792ad
Requires:       import-utils
Matthias Runge 82792ad
Requires:       django-south
Matthias Runge 82792ad
Requires:       python-oauth2
Matthias Runge 82792ad
Requires:       python-openid
Matthias Runge 82792ad
Requires:       python-wordpress-xmlrpc
8cf4ccb
8cf4ccb
%description
Matthias Runge 82792ad
this is a based on a forked version of django-authopenid module 
Matthias Runge 82792ad
developed for the Askbot forum project.
Matthias Runge 82792ad
Matthias Runge 82792ad
This module is experimental
Matthias Runge 82792ad
8cf4ccb
8cf4ccb
%prep
8cf4ccb
%setup -q
8cf4ccb
Matthias Runge 82792ad
8cf4ccb
%build
8cf4ccb
%{__python} setup.py build
8cf4ccb
Matthias Runge 82792ad
8cf4ccb
%install
8cf4ccb
rm -rf $RPM_BUILD_ROOT
8cf4ccb
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
8cf4ccb
# remove forgotten script
8cf4ccb
%{__rm} %{buildroot}%{_bindir}/startforum
8cf4ccb
8cf4ccb
%files
8cf4ccb
%defattr (-,root,root,-)
8cf4ccb
%doc PKG-INFO
8cf4ccb
%{python_sitelib}/django_authenticator
8cf4ccb
%{python_sitelib}/django_authenticator-%{version}*
8cf4ccb
Matthias Runge 82792ad
Matthias Runge 82792ad
Matthias Runge 82792ad
8cf4ccb
%changelog
8cf4ccb
* Tue Sep 20 2011 Matthias Runge <mrunge@matthias-runge.de> - 0.1.4-1 
8cf4ccb
- first packaged version for fedora