1 |
%define realname django-haystack |
2 |
%define name python-%{realname} |
3 |
%define version 2.1.0 |
4 |
%define release %mkrel 1 |
5 |
|
6 |
Name: %{name} |
7 |
Version: %{version} |
8 |
Release: %{release} |
9 |
Summary: Django module for modular search |
10 |
Group: Development/Python |
11 |
License: BSD |
12 |
URL: http://haystacksearch.org/ |
13 |
Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz |
14 |
BuildArch: noarch |
15 |
BuildRequires: python-devel |
16 |
Requires: python-django |
17 |
|
18 |
%description |
19 |
Search doesn't have to be hard. Haystack lets you write your search code once |
20 |
and choose the search engine you want it to run on. With a familiar API that |
21 |
should make any Djangonaut feel right at home and an architecture that allows |
22 |
you to swap things in and out as you need to, it's how search ought to be. |
23 |
|
24 |
%prep |
25 |
%setup -q -n %{realname}-%{version} |
26 |
|
27 |
%build |
28 |
%{__python} setup.py build |
29 |
|
30 |
%install |
31 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
32 |
|
33 |
%files |
34 |
%{py_puresitedir}/* |