13 |
Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz |
Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz |
14 |
BuildArch: noarch |
BuildArch: noarch |
15 |
BuildRequires: python-devel |
BuildRequires: python-devel |
16 |
|
BuildRequires: python-setuptools |
17 |
Requires: python-django |
Requires: python-django |
18 |
|
|
19 |
%description |
%description |
22 |
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 |
23 |
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. |
24 |
|
|
25 |
|
%package -n python3-%{realname} |
26 |
|
Summary: Django module for modular search |
27 |
|
Group: Development/Python |
28 |
|
BuildRequires: python3-devel |
29 |
|
BuildRequires: python3-setuptools |
30 |
|
Requires: python-django |
31 |
|
|
32 |
|
%description -n python3-%{realname} |
33 |
|
Search doesn't have to be hard. Haystack lets you write your search code once |
34 |
|
and choose the search engine you want it to run on. With a familiar API that |
35 |
|
should make any Djangonaut feel right at home and an architecture that allows |
36 |
|
you to swap things in and out as you need to, it's how search ought to be. |
37 |
|
|
38 |
%prep |
%prep |
39 |
%setup -q -n %{realname}-%{version} |
%setup -q -n %{realname}-%{version} |
40 |
|
cp -a . %{py3dir} |
41 |
|
|
42 |
%build |
%build |
43 |
%{__python} setup.py build |
%{__python} setup.py build |
44 |
|
|
45 |
|
pushd %{py3dir} |
46 |
|
%{__python3} setup.py build |
47 |
|
popd |
48 |
|
|
49 |
%install |
%install |
50 |
%{__python} setup.py install -O1 --skip-build --root %{buildroot} |
%{__python} setup.py install -O1 --root %{buildroot} --skip-build |
51 |
|
|
52 |
|
pushd %{py3dir} |
53 |
|
%{__python3} setup.py install -O1 --root=%{buildroot} --skip-build |
54 |
|
popd |
55 |
|
|
56 |
%files |
%files |
57 |
%{py_puresitedir}/* |
%{python_sitelib}/* |
58 |
|
|
59 |
|
%files -n python3-%{realname} |
60 |
|
%{python3_sitelib}/* |