2 |
|
|
3 |
Name: python-%{module} |
Name: python-%{module} |
4 |
Version: 2.1.0 |
Version: 2.1.0 |
5 |
Release: %mkrel 3 |
Release: %mkrel 4 |
6 |
Summary: Django module for modular search |
Summary: Django module for modular search |
7 |
Group: Development/Python |
Group: Development/Python |
8 |
License: BSD |
License: BSD |
9 |
URL: http://haystacksearch.org/ |
URL: http://haystacksearch.org/ |
10 |
Source: https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz |
Source: https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz |
11 |
BuildArch: noarch |
BuildArch: noarch |
|
BuildRequires: python-devel |
|
12 |
BuildRequires: python-setuptools |
BuildRequires: python-setuptools |
13 |
|
|
14 |
Requires: python-django |
Requires: python-django |
15 |
|
|
16 |
|
Provides: %{module} = %{version}-%{release} |
17 |
|
|
18 |
%description |
%description |
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 |
|
#--------------------------------------------------------------------------- |
25 |
|
|
26 |
%package -n python3-%{module} |
%package -n python3-%{module} |
27 |
Summary: Django module for modular search |
Summary: Django module for modular search |
28 |
Group: Development/Python |
Group: Development/Python |
|
BuildRequires: python3-devel |
|
29 |
BuildRequires: python3-setuptools |
BuildRequires: python3-setuptools |
30 |
Requires: python-django |
|
31 |
|
Requires: python3-django |
32 |
|
|
33 |
%description -n python3-%{module} |
%description -n python3-%{module} |
34 |
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 |
35 |
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 |
36 |
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 |
37 |
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. |
38 |
|
|
39 |
|
#--------------------------------------------------------------------------- |
40 |
|
|
41 |
%prep |
%prep |
42 |
%setup -q -n %{module}-%{version} |
%setup -q -n %{module}-%{version} |
43 |
cp -a . %{py3dir} |
cp -a . %{py3dir} |
44 |
|
|
45 |
%build |
%build |
46 |
%{__python} setup.py build |
%{__python} setup.py build |
52 |
%install |
%install |
53 |
%{__python} setup.py install -O1 --root %{buildroot} --skip-build |
%{__python} setup.py install -O1 --root %{buildroot} --skip-build |
54 |
|
|
55 |
pushd %{py3dir} |
pushd %{py3dir} |
56 |
%{__python3} setup.py install -O1 --root=%{buildroot} --skip-build |
%{__python3} setup.py install -O1 --root=%{buildroot} --skip-build |
57 |
popd |
popd |
58 |
|
|
59 |
%files |
%files |
60 |
%{python_sitelib}/* |
%doc AUTHORS README.rst |
61 |
|
%{python_sitelib}/haystack/ |
62 |
|
%{python_sitelib}/django_haystack-%{version}-py%{pyver}.egg-info |
63 |
|
|
64 |
%files -n python3-%{module} |
%files -n python3-%{module} |
65 |
%{python3_sitelib}/* |
%doc AUTHORS README.rst |
66 |
|
%{python3_sitelib}/haystack/ |
67 |
|
%{python3_sitelib}/django_haystack-%{version}-py%{py3ver}.egg-info |