1 |
%define realname django-haystack |
%define realname django-haystack |
2 |
%define name python-%{realname} |
%define name python-%{realname} |
3 |
%define version 1.2.4 |
%define version 2.1.0 |
4 |
%define release %mkrel 2 |
%define release %mkrel 1 |
|
%define github_shorttag e9c7653 |
|
|
%define github_tag ge9c7653 |
|
|
%define github_author toastdriven |
|
5 |
|
|
6 |
Name: %{name} |
Name: %{name} |
7 |
Version: %{version} |
Version: %{version} |
10 |
Group: Development/Python |
Group: Development/Python |
11 |
License: BSD |
License: BSD |
12 |
URL: http://haystacksearch.org/ |
URL: http://haystacksearch.org/ |
13 |
Source: https://download.github.com/%github_author-%realname-v%{version}-0-%github_tag.tar.gz |
Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz |
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|
14 |
BuildArch: noarch |
BuildArch: noarch |
15 |
BuildRequires: python-devel |
BuildRequires: python-devel |
16 |
Requires: python-django |
Requires: python-django |
19 |
Search doesn't have to be hard. Haystack lets you write your search code once |
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 |
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 |
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. |
you to swap things in and out as you need to, it's how search ought to be. |
23 |
|
|
24 |
%prep |
%prep |
25 |
%setup -q -n %github_author-%realname-%github_shorttag |
%setup -q -n %{realname}-%{version} |
26 |
|
|
27 |
%build |
%build |
28 |
%{__python} setup.py build |
%{__python} setup.py build |
29 |
|
|
30 |
%install |
%install |
31 |
rm -rf $RPM_BUILD_ROOT |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
|
|
|
|
|
%clean |
|
|
rm -rf $RPM_BUILD_ROOT |
|
32 |
|
|
33 |
%files |
%files |
|
%defattr(-,root,root,-) |
|
34 |
%{py_puresitedir}/* |
%{py_puresitedir}/* |