Blame python-lunr.spec

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