#$Id$
%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())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
Summary: Django site visitor tracking, including basic blacklisting
Name: django-tracking
Version: 0.3.7
Release: 2%{?dist}
License: MIT
Group: Development/Libraries
URL: https://bitbucket.org/codekoala/django-tracking/
Source: django-tracking-0.3.7.tar.bz2
Patch0: views.py.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch
BuildRequires: python2-devel python-setuptools
Requires: Django python-imaging
%description
django-tracking is a simple attempt at keeping track of visitors to
Django-powered Web sites. It also offers basic blacklisting capabilities.
%prep
%setup -q
%build
%{__python} setup.py build
%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGES LICENSE README.rst README
%{python_sitelib}/tracking
%{python_sitelib}/tracking/*
%{python_sitelib}/django_tracking-%{version}-py2.*.egg-info
%lang(de) %{python_sitelib}/tracking/locale/de/LC_MESSAGES/django.mo
%changelog
* Sat Jul 23 2011 Clint Savage <herlo@fedoraproject.org> - 0.3.7-2
- Added requires for Django and python-imaging
* Sat Jul 23 2011 Clint Savage <herlo@fedoraproject.org> - 0.3.7-1
- Updated to new release that fixes fedora simplejson imports
* Wed Oct 20 2010 Dave Riches <david.r@ultracar.co.uk> - 0.2.7-1
- Packaged for Fedora