File python-django-registration.spec of Package python-django-registration

#
# spec file for package python-django-registration
#
# 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/
#


Summary:        A simple, generic user-registration application for Django
License:        BSD-3-Clause
Group:          Development/Libraries/Python

Name:           python-django-registration
Version:        0.8
Release:        0
Url:            http://code.google.com/p/django-registration/
Source:         django-registration-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python
BuildRequires:  python-devel
Requires:       python-django
%py_requires
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch:      noarch
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)")}
%endif

%description
A simple, generic user-registration application for Django

This is just a simple, portable, generic user-registration application for Django projects. Workflow follows a simple pattern:
* A user signs up for a new account, which will be inactive by default.
* An email is sent to the address they used to register, containing an activation link.
* Once they click the activation link, the account becomes active and they can log in as normal.

%prep
%setup -q -n django-registration-%{version}

%build
export CFLAGS="%{optflags}"
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES

%clean
%{__rm} -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-, root, root, 0755)
%doc README LICENSE CHANGELOG
%doc docs/*

%changelog
openSUSE Build Service is sponsored by