/[packages]/cauldron/python-django-haystack/pristine/SPECS/python-django-haystack.spec
ViewVC logotype

Contents of /cauldron/python-django-haystack/pristine/SPECS/python-django-haystack.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 617357 - (show annotations) (download)
Tue Apr 22 05:34:36 2014 UTC (9 years, 11 months ago) by daviddavid
Original Path: cauldron/python-django-haystack/current/SPECS/python-django-haystack.spec
File size: 1933 byte(s)
remove unneeded provides package (thanks philippem)

1 %define module django-haystack
2
3 Name: python-%{module}
4 Version: 2.1.0
5 Release: %mkrel 5
6 Summary: Django module for modular search
7 Group: Development/Python
8 License: BSD
9 URL: http://haystacksearch.org/
10 Source: https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
11 BuildArch: noarch
12 BuildRequires: python-setuptools
13
14 Requires: python-django
15
16 %description
17 Search doesn't have to be hard. Haystack lets you write your search code once
18 and choose the search engine you want it to run on. With a familiar API that
19 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.
21
22 #---------------------------------------------------------------------------
23
24 %package -n python3-%{module}
25 Summary: Django module for modular search
26 Group: Development/Python
27 BuildRequires: python3-setuptools
28
29 Requires: python3-django
30
31 %description -n python3-%{module}
32 Search doesn't have to be hard. Haystack lets you write your search code once
33 and choose the search engine you want it to run on. With a familiar API that
34 should make any Djangonaut feel right at home and an architecture that allows
35 you to swap things in and out as you need to, it's how search ought to be.
36
37 #---------------------------------------------------------------------------
38
39 %prep
40 %setup -q -n %{module}-%{version}
41 cp -a . %{py3dir}
42
43 %build
44 %{__python} setup.py build
45
46 pushd %{py3dir}
47 %{__python3} setup.py build
48 popd
49
50 %install
51 %{__python} setup.py install -O1 --root %{buildroot} --skip-build
52
53 pushd %{py3dir}
54 %{__python3} setup.py install -O1 --root=%{buildroot} --skip-build
55 popd
56
57 %files
58 %doc AUTHORS README.rst
59 %{python_sitelib}/haystack/
60 %{python_sitelib}/django_haystack-%{version}-py%{pyver}.egg-info
61
62 %files -n python3-%{module}
63 %doc AUTHORS README.rst
64 %{python3_sitelib}/haystack/
65 %{python3_sitelib}/django_haystack-%{version}-py%{py3ver}.egg-info

  ViewVC Help
Powered by ViewVC 1.1.30