2 |
|
|
3 |
Name: python-%{module} |
Name: python-%{module} |
4 |
Version: 2.8.1 |
Version: 2.8.1 |
5 |
Release: %mkrel 1 |
Release: %mkrel 2 |
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 |
18 |
|
|
19 |
#--------------------------------------------------------------------------- |
#--------------------------------------------------------------------------- |
20 |
|
|
|
%package -n python2-%{module} |
|
|
Summary: Django module for modular search |
|
|
Group: Development/Python |
|
|
BuildRequires: pythonegg(2)(setuptools) |
|
|
BuildRequires: pythonegg(2)(setuptools-scm) |
|
|
|
|
|
Obsoletes: python-django-haystack < 2.4.1-5 |
|
|
Provides: python-django-haystack = %{version}-%{release} |
|
|
|
|
|
%description -n python2-%{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. |
|
|
|
|
|
#--------------------------------------------------------------------------- |
|
|
|
|
21 |
%package -n python3-%{module} |
%package -n python3-%{module} |
22 |
Summary: Django module for modular search |
Summary: Django module for modular search |
23 |
Group: Development/Python |
Group: Development/Python |
24 |
BuildRequires: pythonegg(3)(setuptools) |
BuildRequires: python3dist(setuptools) |
25 |
BuildRequires: pythonegg(3)(setuptools-scm) |
BuildRequires: python3dist(setuptools-scm) |
26 |
|
|
27 |
%description -n python3-%{module} |
%description -n python3-%{module} |
28 |
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 |
37 |
|
|
38 |
find . -name '.gitignore' -delete |
find . -name '.gitignore' -delete |
39 |
|
|
|
cp -a . %{py3dir} |
|
|
|
|
40 |
%build |
%build |
|
%py2_build |
|
|
|
|
|
pushd %{py3dir} |
|
41 |
%py3_build |
%py3_build |
|
popd |
|
42 |
|
|
43 |
%install |
%install |
|
%py2_install |
|
|
|
|
|
pushd %{py3dir} |
|
44 |
%py3_install |
%py3_install |
|
popd |
|
|
|
|
|
%files -n python2-%{module} |
|
|
%doc AUTHORS README.rst docs |
|
|
%{python2_sitelib}/haystack/ |
|
|
%{python2_sitelib}/django_haystack-%{version}-py%{python2_version}.egg-info |
|
45 |
|
|
46 |
%files -n python3-%{module} |
%files -n python3-%{module} |
47 |
%doc AUTHORS README.rst docs |
%doc AUTHORS README.rst docs |