2 Commits

2 changed files with 13 additions and 5 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Jun 13 02:44:41 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Sep 4 15:42:36 UTC 2024 - Christoph G <foss@grueninger.de> Wed Sep 4 15:42:36 UTC 2024 - Christoph G <foss@grueninger.de>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-Whoosh # spec file for package python-Whoosh
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -22,7 +22,6 @@ Version: 2.7.4
Release: 0 Release: 0
Summary: Pure-Python full text indexing, search, and spell checking library Summary: Pure-Python full text indexing, search, and spell checking library
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python
URL: https://github.com/whoosh-community/whoosh/ URL: https://github.com/whoosh-community/whoosh/
Source: https://files.pythonhosted.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/W/Whoosh/Whoosh-%{version}.tar.gz
# upstream in completely unrelated https://github.com/whoosh-community/whoosh/commit/b43e5a432109 # upstream in completely unrelated https://github.com/whoosh-community/whoosh/commit/b43e5a432109
@@ -35,7 +34,9 @@ Patch2: NullMatcherClass-hashable.patch
# PATCH-FIX-UPSTREAM docs-Update-intersphinx_mapping.patch gh#whoosh-community/whoosh#582 # PATCH-FIX-UPSTREAM docs-Update-intersphinx_mapping.patch gh#whoosh-community/whoosh#582
# fix intersphinx_mapping # fix intersphinx_mapping
Patch3: docs-Update-intersphinx_mapping.patch Patch3: docs-Update-intersphinx_mapping.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx BuildRequires: python3-Sphinx
@@ -77,11 +78,11 @@ This package contains the documentation.
sed -i -e 's/\r$//' docs/source/api/filedb/{filestore,filetables,structfile}.rst sed -i -e 's/\r$//' docs/source/api/filedb/{filestore,filetables,structfile}.rst
%build %build
%python_build %pyproject_wheel
sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html
%install %install
%python_install %pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib} %python_expand %fdupes %{buildroot}%{$python_sitelib}
%check %check
@@ -92,7 +93,8 @@ export LANG=en_US.UTF8
%files %{python_files} %files %{python_files}
%license LICENSE.txt %license LICENSE.txt
%doc README.txt %doc README.txt
%{python_sitelib}/* %{python_sitelib}/whoosh
%{python_sitelib}/[Ww]hoosh-%{version}.dist-info
%if 0%{?suse_version} > 1500 %if 0%{?suse_version} > 1500
%files -n python-Whoosh-doc %files -n python-Whoosh-doc