forked from pool/python-Whoosh
- convert to singlespec - split -doc package - use files.pythonhosted.org as Source url - update to 2.7.4: * Changed version number to 2.7.0. * Added tag 2.7.0 for changeset 8abeb09483b9 * Results.extend() didn't update the cached length. * Fixed VarBytesListColumn and FixedBytesListColumn. * Handle an empty queue exception in mpwriter. * Merging pull request with local commit. * Added test for storing tuples. * Remove caching decorator from VarBytesColumn reader. * Added test for has_deletions() after an optimization. * Try to avoid an UnboundLocalError in the DFA when MultiTerm.matcher() has an empty string. * Don't try to write a vector if the list of items is empty. * Implemented use of score_fn argument to NestedParent. * Don't cache query -> bitset, since this somehow prevents the Searcher from being collected. * Changed README docs link to point to readthedocs.org. * Change uses of dump[s]() to always use protocol 2 instead of -1 ("use latest protocol") so indices created with Python 3.x are backwards compatible. * Fix the analyzer in test_vector_unicode() to not lowercase, since this makes the test fail on some Python versions. * Actually use the split_fn passed by the user. Not sure what happened here. * Handle pickled Schema objects that don't have a _subfields attribute. * Added fix and tests for calling expand_prefix() with unicode. * Fix short code for Swedish in language aliases. * Fix missing a consecutive token during highlighting OBS-URL: https://build.opensuse.org/request/show/506212 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=10
93 lines
3.1 KiB
RPMSpec
93 lines
3.1 KiB
RPMSpec
#
|
|
# spec file for package python-Whoosh
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX 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/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%bcond_without test
|
|
Name: python-Whoosh
|
|
Version: 2.7.4
|
|
Release: 0
|
|
Url: http://www.turbogears.org
|
|
Summary: Fast, pure-Python full text indexing, search, and spell checking library
|
|
License: BSD-2-Clause
|
|
Group: Development/Languages/Python
|
|
Source: https://files.pythonhosted.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
BuildRequires: %{python_module Sphinx}
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: python-rpm-macros
|
|
# SECTION the testing dependencies
|
|
%if %{with test}
|
|
BuildRequires: %{python_module pytest}
|
|
%endif
|
|
# /SECTION
|
|
BuildArch: noarch
|
|
%ifpython2
|
|
Provides: python-whoosh = %{version}
|
|
Obsoletes: python-whoosh < %{version}
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
%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.
|
|
|
|
%package -n python-Whoosh-doc
|
|
Summary: Documentation for %{name}
|
|
Group: Documentation/Other
|
|
Provides: %{python_module Whoosh-doc = %{version}}
|
|
|
|
%description -n python-Whoosh-doc
|
|
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.
|
|
This package contains the documentation.
|
|
|
|
%prep
|
|
%setup -q -n Whoosh-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
|
|
|
|
%install
|
|
%python_install
|
|
|
|
%if %{with test}
|
|
%check
|
|
%python_exec setup.py test
|
|
%endif
|
|
|
|
%files %{python_files}
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE.txt README.txt
|
|
%{python_sitelib}/*
|
|
|
|
%files -n python-Whoosh-doc
|
|
%doc LICENSE.txt docs/build/html
|
|
|
|
%changelog
|