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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 494909 - (show annotations) (download)
Thu Oct 10 19:09:11 2013 UTC (10 years, 5 months ago) by nmartin
File size: 1827 byte(s)
Add python3 support
1 %define realname django-haystack
2 %define name python-%{realname}
3 %define version 2.1.0
4 %define release %mkrel 1
5
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Summary: Django module for modular search
10 Group: Development/Python
11 License: BSD
12 URL: http://haystacksearch.org/
13 Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz
14 BuildArch: noarch
15 BuildRequires: python-devel
16 BuildRequires: python-setuptools
17 Requires: python-django
18
19 %description
20 Search doesn't have to be hard. Haystack lets you write your search code once
21 and choose the search engine you want it to run on. With a familiar API that
22 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.
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
39 %setup -q -n %{realname}-%{version}
40 cp -a . %{py3dir}
41
42 %build
43 %{__python} setup.py build
44
45 pushd %{py3dir}
46 %{__python3} setup.py build
47 popd
48
49 %install
50 %{__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
57 %{python_sitelib}/*
58
59 %files -n python3-%{realname}
60 %{python3_sitelib}/*

  ViewVC Help
Powered by ViewVC 1.1.30