1 |
%define module django-haystack |
2 |
|
3 |
Name: python-%{module} |
4 |
Version: 2.1.0 |
5 |
Release: %mkrel 5 |
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-setuptools |
13 |
|
14 |
Requires: python-django |
15 |
|
16 |
%description |
17 |
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 |
you to swap things in and out as you need to, it's how search ought to be. |
21 |
|
22 |
#--------------------------------------------------------------------------- |
23 |
|
24 |
%package -n python3-%{module} |
25 |
Summary: Django module for modular search |
26 |
Group: Development/Python |
27 |
BuildRequires: python3-setuptools |
28 |
|
29 |
Requires: python3-django |
30 |
|
31 |
%description -n python3-%{module} |
32 |
Search doesn't have to be hard. Haystack lets you write your search code once |
33 |
and choose the search engine you want it to run on. With a familiar API that |
34 |
should make any Djangonaut feel right at home and an architecture that allows |
35 |
you to swap things in and out as you need to, it's how search ought to be. |
36 |
|
37 |
#--------------------------------------------------------------------------- |
38 |
|
39 |
%prep |
40 |
%setup -q -n %{module}-%{version} |
41 |
cp -a . %{py3dir} |
42 |
|
43 |
%build |
44 |
%{__python} setup.py build |
45 |
|
46 |
pushd %{py3dir} |
47 |
%{__python3} setup.py build |
48 |
popd |
49 |
|
50 |
%install |
51 |
%{__python} setup.py install -O1 --root %{buildroot} --skip-build |
52 |
|
53 |
pushd %{py3dir} |
54 |
%{__python3} setup.py install -O1 --root=%{buildroot} --skip-build |
55 |
popd |
56 |
|
57 |
%files |
58 |
%doc AUTHORS README.rst |
59 |
%{python_sitelib}/haystack/ |
60 |
%{python_sitelib}/django_haystack-%{version}-py%{pyver}.egg-info |
61 |
|
62 |
%files -n python3-%{module} |
63 |
%doc AUTHORS README.rst |
64 |
%{python3_sitelib}/haystack/ |
65 |
%{python3_sitelib}/django_haystack-%{version}-py%{py3ver}.egg-info |