65 lines
2.2 KiB
RPMSpec
65 lines
2.2 KiB
RPMSpec
|
#
|
||
|
# spec file for package python-Whoosh
|
||
|
#
|
||
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# All modifications and additions to the file contributed by third parties
|
||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||
|
# upon. The license for this file, and modifications and additions to the
|
||
|
# file, is the same license as for the pristine package itself (unless the
|
||
|
# license for the pristine package is not an Open Source License, in which
|
||
|
# case the license is the MIT License). An "Open Source License" is a
|
||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||
|
# published by the Open Source Initiative.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: python-Whoosh
|
||
|
Version: 2.4.1
|
||
|
Release: 0
|
||
|
Url: http://www.turbogears.org
|
||
|
Summary: Fast, pure-Python full text indexing, search, and spell checking library
|
||
|
License: Apache-2.0
|
||
|
Group: Development/Languages/Python
|
||
|
Source: http://pypi.python.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
BuildRequires: python-devel
|
||
|
BuildRequires: python-distribute
|
||
|
BuildRequires: python-nose
|
||
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||
|
%else
|
||
|
BuildArch: noarch
|
||
|
%endif
|
||
|
Provides: python-whoosh = %{version}
|
||
|
Obsoletes: python-whoosh < %{version}
|
||
|
|
||
|
%description
|
||
|
Whoosh is a fast, pure-Python indexing and search library. Programmers can use
|
||
|
it to easily add search functionality to their applications and websites.
|
||
|
Because Whoosh is pure Python, you don't have to compile or install a binary
|
||
|
support library and/or make Python work with a JVM, yet Whoosh is still very
|
||
|
fast at indexing and searching. Every part of how Whoosh works can be extended
|
||
|
or replaced to meet your needs exactly.
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n Whoosh-%{version}
|
||
|
|
||
|
%build
|
||
|
python setup.py build
|
||
|
|
||
|
%install
|
||
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||
|
|
||
|
%check
|
||
|
python setup.py test
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root,-)
|
||
|
%doc LICENSE.txt README.txt docs/build/html
|
||
|
%{python_sitelib}/*
|
||
|
|
||
|
%changelog
|