%define realname django-haystack %define name python-%{realname} %define version 1.2.4 %define release %mkrel 2 %define github_shorttag e9c7653 %define github_tag ge9c7653 %define github_author toastdriven Name: %{name} Version: %{version} Release: %{release} Summary: Django module for modular search Group: Development/Python License: BSD URL: http://haystacksearch.org/ Source: https://download.github.com/%github_author-%realname-v%{version}-0-%github_tag.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch BuildRequires: python-devel Requires: python-django %description Search doesn't have to be hard. Haystack lets you write your search code once and choose the search engine you want it to run on. With a familiar API that should make any Djangonaut feel right at home and an architecture that allows you to swap things in and out as you need to, it's how search ought to be. %prep %setup -q -n %github_author-%realname-%github_shorttag %build %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{py_puresitedir}/*