Blame python-lunr.spec

7513b61
%global pypiname lunr
7513b61
7513b61
Name:           python-%{pypiname}
76673eb
Version:        0.6.0
76673eb
Release:        1%{?dist}
7513b61
Summary:        A Python implementation of Lunr.js
7513b61
7513b61
License:        MIT
7513b61
URL:            https://github.com/yeraydiazdiaz/lunr.py
7513b61
Source0:        https://github.com/yeraydiazdiaz/lunr.py/archive/%{version}.tar.gz#/%{pypiname}.py-%{version}.tar.gz
7513b61
7513b61
BuildArch:      noarch
7513b61
7513b61
7513b61
%global _description %{expand:
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
7513b61
implementation as possible.}
7513b61
7513b61
%description %_description
7513b61
7513b61
%package -n python3-%{pypiname}
7513b61
Summary:        %{summary}
7513b61
BuildRequires:  python3-devel
7513b61
BuildRequires:  python3dist(setuptools)
7513b61
%{?python_provide:%python_provide python3-%{pypiname}}
7513b61
7513b61
#Some nltk resource is needed to run tests but not available in Fedora
7513b61
# BuildRequires:  python3-six
7513b61
# BuildRequires:  python3-future
7513b61
# BuildRequires:  python3-pytest
7513b61
# BuildRequires:  python3-pytest-timeout
7513b61
# BuildRequires:  python3-mock
7513b61
# BuildRequires:  python3dist(nltk) >= 3.2.5
7513b61
# BuildRequires:  /usr/bin/coverage
7513b61
7513b61
%{?python_extras_subpkg:Recommends:  python3-%{pypiname}+languages}
7513b61
%{!?python_extras_subpkg:Recommends: python3dist(nltk) >= 3.2.5}
7513b61
7513b61
%description -n python3-%{pypiname} %_description
7513b61
7513b61
%{?python_extras_subpkg:%python_extras_subpkg -n python3-%{pypiname} -i %{python3_sitelib}/%{pypiname}-*.egg-info languages}
7513b61
7513b61
7513b61
%prep
7513b61
%autosetup -n %{pypiname}.py-%{version}
7513b61
7513b61
%build
7513b61
%py3_build
7513b61
7513b61
%install
7513b61
%py3_install
7513b61
7513b61
%check
7513b61
#make tests
7513b61
7513b61
%files -n python3-%{pypiname}
7513b61
%license LICENSE
7513b61
%doc README.md CHANGELOG.md readme.rst docs/
7513b61
%{python3_sitelib}/%{pypiname}-*.egg-info/
7513b61
%{python3_sitelib}/%{pypiname}/
7513b61
7513b61
%changelog
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