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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 494909 - (hide annotations) (download)
Thu Oct 10 19:09:11 2013 UTC (6 years, 5 months ago) by nmartin
File size: 1827 byte(s)
Add python3 support
1 misc 124816 %define realname django-haystack
2 nmartin 493765 %define name python-%{realname}
3     %define version 2.1.0
4     %define release %mkrel 1
5 misc 124816
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 nmartin 493765 Source: https://pypi.python.org/packages/source/d/%{realname}/%{realname}-%{version}.tar.gz
14 misc 124816 BuildArch: noarch
15     BuildRequires: python-devel
16 nmartin 494909 BuildRequires: python-setuptools
17 misc 124816 Requires: python-django
18    
19     %description
20 misc 124818 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 nmartin 493765 you to swap things in and out as you need to, it's how search ought to be.
24 misc 124816
25 nmartin 494909 %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 misc 124816 %prep
39 nmartin 493765 %setup -q -n %{realname}-%{version}
40 nmartin 494909 cp -a . %{py3dir}
41 misc 124816
42     %build
43     %{__python} setup.py build
44    
45 nmartin 494909 pushd %{py3dir}
46     %{__python3} setup.py build
47     popd
48    
49 misc 124816 %install
50 nmartin 494909 %{__python} setup.py install -O1 --root %{buildroot} --skip-build
51 misc 124816
52 nmartin 494909 pushd %{py3dir}
53     %{__python3} setup.py install -O1 --root=%{buildroot} --skip-build
54     popd
55    
56 misc 124816 %files
57 nmartin 494909 %{python_sitelib}/*
58    
59     %files -n python3-%{realname}
60     %{python3_sitelib}/*

  ViewVC Help
Powered by ViewVC 1.1.26