11 |
BuildArch: noarch |
BuildArch: noarch |
12 |
BuildRequires: pythonegg(2)(setuptools) |
BuildRequires: pythonegg(2)(setuptools) |
13 |
|
|
14 |
Requires: pythonegg(2)(django) |
Requires: python-django16 |
15 |
|
|
16 |
%description |
%description |
17 |
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 |
19 |
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 |
20 |
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. |
21 |
|
|
|
#--------------------------------------------------------------------------- |
|
|
|
|
|
%package -n python3-%{module} |
|
|
Summary: Django module for modular search |
|
|
Group: Development/Python |
|
|
BuildRequires: pythonegg(3)(setuptools) |
|
|
|
|
|
Requires: pythonegg(3)(django) |
|
|
|
|
|
%description -n python3-%{module} |
|
|
Search doesn't have to be hard. Haystack lets you write your search code once |
|
|
and choose the search engine you want it to run on. With a familiar API that |
|
|
should make any Djangonaut feel right at home and an architecture that allows |
|
|
you to swap things in and out as you need to, it's how search ought to be. |
|
|
|
|
|
#--------------------------------------------------------------------------- |
|
22 |
|
|
23 |
%prep |
%prep |
24 |
%setup -q -n %{module}-%{version} |
%setup -q -n %{module}-%{version} |
25 |
|
|
26 |
find . -name '.gitignore' -delete |
find . -name '.gitignore' -delete |
27 |
|
|
|
cp -a . %{py3dir} |
|
28 |
|
|
29 |
%build |
%build |
30 |
%py2_build |
%{__python} setup.py build |
31 |
|
|
|
pushd %{py3dir} |
|
|
%py3_build |
|
|
popd |
|
32 |
|
|
33 |
%install |
%install |
34 |
%py2_install |
%{__python} setup.py install -O1 --root %{buildroot} --skip-build |
35 |
|
|
|
pushd %{py3dir} |
|
|
%py3_install |
|
|
popd |
|
36 |
|
|
37 |
%files |
%files |
38 |
%doc AUTHORS README.rst docs |
%doc AUTHORS README.rst docs |
39 |
%{python2_sitelib}/haystack/ |
%{python_sitelib}/haystack/ |
40 |
%{python2_sitelib}/django_haystack-%{version}-py%{python2_version}.egg-info |
%{python_sitelib}/django_haystack-%{version}-py?.?.egg-info |
41 |
|
|
|
%files -n python3-%{module} |
|
|
%doc AUTHORS README.rst docs |
|
|
%{python3_sitelib}/haystack/ |
|
|
%{python3_sitelib}/django_haystack-%{version}-py%{python3_version}.egg-info |
|