%define module django-haystack Name: python-%{module} Version: 2.2.0 Release: %mkrel 1 Summary: Django module for modular search Group: Development/Python License: BSD URL: http://haystacksearch.org/ Source: https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools Requires: python-django %description 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. #--------------------------------------------------------------------------- %package -n python3-%{module} Summary: Django module for modular search Group: Development/Python BuildRequires: python3-setuptools Requires: python3-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. #--------------------------------------------------------------------------- %prep %setup -q -n %{module}-%{version} cp -a . %{py3dir} %build %{__python} setup.py build pushd %{py3dir} %{__python3} setup.py build popd %install %{__python} setup.py install -O1 --root %{buildroot} --skip-build pushd %{py3dir} %{__python3} setup.py install -O1 --root=%{buildroot} --skip-build popd %files %doc AUTHORS README.rst %{python_sitelib}/haystack/ %{python_sitelib}/django_haystack-%{version}-py%{pyver}.egg-info %files -n python3-%{module} %doc AUTHORS README.rst %{python3_sitelib}/haystack/ %{python3_sitelib}/django_haystack-%{version}-py%{py3ver}.egg-info