Name: python-lunr Version: 0.6.0 Release: 3%{?dist} Summary: A Python implementation of Lunr.js License: MIT URL: https://github.com/yeraydiazdiaz/lunr.py BuildArch: noarch Source0: %{pypi_source lunr} # Remove nltk version constraint to fix FailsToInstall Patch0: lunr_nltk.patch BuildRequires: python3-devel # For tests BuildRequires: python3dist(pytest) BuildRequires: python3dist(mock) %description This Python version of Lunr.js aims to bring the simple and powerful full text search capabilities into Python guaranteeing results as close as the original implementation as possible. %package -n python3-lunr Summary: %{summary} %description -n python3-lunr This Python version of Lunr.js aims to bring the simple and powerful full text search capabilities into Python guaranteeing results as close as the original implementation as possible. %pyproject_extras_subpkg -n python3-lunr languages %generate_buildrequires %pyproject_buildrequires -r -x languages %prep %autosetup -p1 -n lunr-%{version} %build %pyproject_wheel %install %pyproject_install %pyproject_save_files lunr %check # test_reduces_words_to_their_stem requires missing tests/fixtures/stemming_vocab.json %pytest -k "not test_reduces_words_to_their_stem" %files -n python3-lunr -f %{pyproject_files} %doc README.md %license LICENSE %changelog * Wed Jan 05 2022 Sandro Mani - 0.6.0-4 - Modernize spec * Fri Oct 08 2021 Sandro Mani - 0.6.0-3 - Remove nltk version constraint to fix FailsToInstall * Mon Oct 04 2021 Sandro Mani - 0.6.0-2 - Rebuild to fix FailsToInstall * Thu Sep 30 2021 Sandro Mani - 0.6.0-1 - Update to 0.6.0 * Fri Jul 23 2021 Fedora Release Engineering - 0.5.8-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.5.8-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 0.5.8-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 0.5.8-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jul 10 2020 Miro Hrončok - 0.5.8-3 - Add lunr[languages] subpackage * Thu Jun 25 2020 Robin Lee - 0.5.8-2 - BR python3dist(setuptools) * Fri Jun 12 2020 Qiyu Yan - 0.5.8-1 - Update to 0.5.8 * Tue May 26 2020 Miro Hrončok - 0.5.6-2 - Rebuilt for Python 3.9 * Sun Mar 8 2020 Robin Lee - 0.5.6-1 - Initial packaging