forked from pool/python-Whoosh
- Add patch to fix build with pytest4+ (both in git of upstream):
* pytest4.patch * py2encoding.patch - Use fdupes - Update URL - Make sure py2 tests are run too OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=17
This commit is contained in:
committed by
Git OBS Bridge
parent
73f977b701
commit
ed524c01a4
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-Whoosh
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -17,23 +17,23 @@
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
%bcond_without test
|
||||
Name: python-Whoosh
|
||||
Version: 2.7.4
|
||||
Release: 0
|
||||
Summary: Pure-Python full text indexing, search, and spell checking library
|
||||
License: BSD-2-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: http://www.turbogears.org
|
||||
URL: https://github.com/whoosh-community/whoosh/
|
||||
Source: https://files.pythonhosted.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz
|
||||
BuildRequires: %{python_module Sphinx}
|
||||
Patch0: pytest4.patch
|
||||
Patch1: py2encoding.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: python3-Sphinx
|
||||
BuildArch: noarch
|
||||
# SECTION the testing dependencies
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
# /SECTION
|
||||
%ifpython2
|
||||
Provides: python-whoosh = %{version}
|
||||
@@ -62,6 +62,7 @@ This package contains the documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -n Whoosh-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -69,11 +70,12 @@ sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with test}
|
||||
%check
|
||||
%python_exec setup.py test
|
||||
%endif
|
||||
export LANG=en_US.UTF8
|
||||
# test_list_corrector - depends on dict sorting thats in py3+ only
|
||||
%pytest -k 'not test_list_corrector'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
|
Reference in New Issue
Block a user