--- cauldron/python-django-haystack/current/SPECS/python-django-haystack.spec 2013/10/08 19:30:23 493765 +++ cauldron/python-django-haystack/current/SPECS/python-django-haystack.spec 2013/10/10 19:09:11 494909 @@ -13,6 +13,7 @@ Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-devel +BuildRequires: python-setuptools Requires: python-django %description @@ -21,14 +22,39 @@ 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-%{realname} +Summary: Django module for modular search +Group: Development/Python +BuildRequires: python3-devel +BuildRequires: python3-setuptools +Requires: python-django + +%description -n python3-%{realname} +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 %{realname}-%{version} +cp -a . %{py3dir} %build %{__python} setup.py build +pushd %{py3dir} +%{__python3} setup.py build +popd + %install -%{__python} setup.py install -O1 --skip-build --root %{buildroot} +%{__python} setup.py install -O1 --root %{buildroot} --skip-build + +pushd %{py3dir} +%{__python3} setup.py install -O1 --root=%{buildroot} --skip-build +popd %files -%{py_puresitedir}/* +%{python_sitelib}/* + +%files -n python3-%{realname} +%{python3_sitelib}/*