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