1 |
daviddavid |
617317 |
%define module django-haystack |
2 |
misc |
124816 |
|
3 |
daviddavid |
617317 |
Name: python-%{module} |
4 |
|
|
Version: 2.1.0 |
5 |
|
|
Release: %mkrel 3 |
6 |
|
|
Summary: Django module for modular search |
7 |
|
|
Group: Development/Python |
8 |
|
|
License: BSD |
9 |
|
|
URL: http://haystacksearch.org/ |
10 |
|
|
Source: https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz |
11 |
|
|
BuildArch: noarch |
12 |
|
|
BuildRequires: python-devel |
13 |
|
|
BuildRequires: python-setuptools |
14 |
|
|
Requires: python-django |
15 |
misc |
124816 |
|
16 |
|
|
%description |
17 |
misc |
124818 |
Search doesn't have to be hard. Haystack lets you write your search code once |
18 |
|
|
and choose the search engine you want it to run on. With a familiar API that |
19 |
|
|
should make any Djangonaut feel right at home and an architecture that allows |
20 |
nmartin |
493765 |
you to swap things in and out as you need to, it's how search ought to be. |
21 |
misc |
124816 |
|
22 |
daviddavid |
617317 |
%package -n python3-%{module} |
23 |
|
|
Summary: Django module for modular search |
24 |
|
|
Group: Development/Python |
25 |
|
|
BuildRequires: python3-devel |
26 |
|
|
BuildRequires: python3-setuptools |
27 |
|
|
Requires: python-django |
28 |
nmartin |
494909 |
|
29 |
daviddavid |
617317 |
%description -n python3-%{module} |
30 |
nmartin |
494909 |
Search doesn't have to be hard. Haystack lets you write your search code once |
31 |
|
|
and choose the search engine you want it to run on. With a familiar API that |
32 |
|
|
should make any Djangonaut feel right at home and an architecture that allows |
33 |
|
|
you to swap things in and out as you need to, it's how search ought to be. |
34 |
|
|
|
35 |
misc |
124816 |
%prep |
36 |
daviddavid |
617317 |
%setup -q -n %{module}-%{version} |
37 |
nmartin |
494909 |
cp -a . %{py3dir} |
38 |
misc |
124816 |
|
39 |
|
|
%build |
40 |
|
|
%{__python} setup.py build |
41 |
|
|
|
42 |
nmartin |
494909 |
pushd %{py3dir} |
43 |
|
|
%{__python3} setup.py build |
44 |
|
|
popd |
45 |
|
|
|
46 |
misc |
124816 |
%install |
47 |
nmartin |
494909 |
%{__python} setup.py install -O1 --root %{buildroot} --skip-build |
48 |
misc |
124816 |
|
49 |
nmartin |
494909 |
pushd %{py3dir} |
50 |
|
|
%{__python3} setup.py install -O1 --root=%{buildroot} --skip-build |
51 |
|
|
popd |
52 |
|
|
|
53 |
misc |
124816 |
%files |
54 |
nmartin |
494909 |
%{python_sitelib}/* |
55 |
|
|
|
56 |
daviddavid |
617317 |
%files -n python3-%{module} |
57 |
nmartin |
494909 |
%{python3_sitelib}/* |