Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
109 lines (80 sloc) 3.05 KB
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
Name: %(%{__python} --name)
Version: %(%{__python} --version)
Release: 1%{?dist}
Summary: %(%{__python} --description)
Group: Development/Libraries
License: BSD
URL: %(%{__python} --url)
Source1: LICENSE
Source2: LICENSE.django-openid-auth
Source3: COPYRIGHT.django-twitter-oauth
Source4: doc-example.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
# Needs python-sphinx-1.0.7 which is not available in RHEL-6
%if 0%{?rhel} > 6 || 0%{?fedora} > 12
BuildRequires: python-sphinx
# NB: update this when updating requirements.txt
Requires: Django >= 1.2.5
Requires: python-oauth2 >= 1.5.167
Requires: python-openid >= 2.2
Django Social Auth is an easy to setup social authentication/authorization
mechanism for Django projects.
This application provides user registration and login using social sites
supporting OpenID, OAuth and OAuth2 such as Google, Yahoo, Twitter, Facebook,
LiveJournal, Orkut, LinkedIn, Foursquare, GitHub, DropBox, Flickr.
%package docs
Summary: Documentation for %{name}
Group: Documentation
Requires: %{name} = %{version}-%{release}
%description docs
This package contains the documentation and example for %{name}
%setup -q
# extract doc/ and example/
tar -xzf %{SOURCE4}
%{__python} build
# build the docs if we have
%if 0%{?rhel} > 6 || 0%{?fedora} >= 12
make html -C doc/
%{__python} install --skip-build --root $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}
install -m 0644 %{SOURCE1} %{buildroot}/%{_docdir}/%{name}-%{version}
install -m 0644 %{SOURCE2} %{buildroot}/%{_docdir}/%{name}-%{version}
install -m 0644 %{SOURCE3} %{buildroot}/%{_docdir}/%{name}-%{version}
# If it's rhel6+ or any Fedora over 12 build docs
%if 0%{?rhel} > 6 || 0%{?fedora} >= 12
# build documentation
(cd docs && make html)
cp -r doc/ %{buildroot}/%{_docdir}/%{name}-%{version}
cp -r example/ %{buildroot}/%{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/LICENSE*
%doc %{_docdir}/%{name}-%{version}/COPYRIGHT*
# Leaving these since people may want to rebuild on lower dists
%if 0%{?fedora} >= 9 || 0%{?rhel} >= 6
%files docs
%doc %{_docdir}/%{name}-%{version}/doc
%doc %{_docdir}/%{name}-%{version}/example
* Fri Jan 20 2011 Alexander Todorov <> - 0.6.1-1
- initial package
Jump to Line
Something went wrong with that request. Please try again.