From f21a1a0562f3aba584d1dadc9a2e7c0fda08e09500bb4d1ad993d6ee6a6467c5 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:57:12 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Whoosh?expand=0&rev=32 --- python-Whoosh.changes | 6 ++++++ python-Whoosh.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-Whoosh.changes b/python-Whoosh.changes index dd869d8..7b475d7 100644 --- a/python-Whoosh.changes +++ b/python-Whoosh.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 13 02:44:41 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Sep 4 15:42:36 UTC 2024 - Christoph G diff --git a/python-Whoosh.spec b/python-Whoosh.spec index caddf2c..56e3282 100644 --- a/python-Whoosh.spec +++ b/python-Whoosh.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -22,7 +22,6 @@ 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: https://github.com/whoosh-community/whoosh/ 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 @@ -35,7 +34,9 @@ Patch2: NullMatcherClass-hashable.patch # PATCH-FIX-UPSTREAM docs-Update-intersphinx_mapping.patch gh#whoosh-community/whoosh#582 # fix intersphinx_mapping Patch3: docs-Update-intersphinx_mapping.patch +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros 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 %build -%python_build +%pyproject_wheel sphinx-build -b html -d docs/build/doctrees docs/source docs/build/html %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -92,7 +93,8 @@ export LANG=en_US.UTF8 %files %{python_files} %license LICENSE.txt %doc README.txt -%{python_sitelib}/* +%{python_sitelib}/whoosh +%{python_sitelib}/[Ww]hoosh-%{version}.dist-info %if 0%{?suse_version} > 1500 %files -n python-Whoosh-doc