Blame python-acora.spec

c8ee9d
%global pypi_name acora
c8ee9d
c8ee9d
Name:           python-%{pypi_name}
c8ee9d
Version:        2.2
7b9812
Release:        4%{?dist}
c8ee9d
Summary:        A Python multi-keyword text search engine
c8ee9d
c8ee9d
License:        BSD
c8ee9d
URL:            https://github.com/scoder/acora
c8ee9d
Source0:        https://github.com/scoder/acora/archive/%{pypi_name}-%{version}.tar.gz
c8ee9d
c8ee9d
BuildRequires:  gcc
c8ee9d
c8ee9d
%description
c8ee9d
Acora is 'fgrep' for Python, a fast multi-keyword text search engine.
c8ee9d
c8ee9d
Based on a set of keywords and the Aho-Corasick algorithm, it generates a
c8ee9d
search automaton and runs it over string input, either unicode or bytes.
c8ee9d
c8ee9d
Acora comes with both a pure Python implementation and a fast binary module
c8ee9d
written in Cython. However, note that the current construction algorithm is
c8ee9d
not suitable for really large sets of keywords (i.e. more than a couple of
c8ee9d
thousand).
c8ee9d
c8ee9d
%package -n python3-%{pypi_name}
c8ee9d
Summary:        %{summary}
c8ee9d
c8ee9d
BuildRequires:  python3-devel
c8ee9d
BuildRequires:  python3-setuptools
c8ee9d
BuildRequires:  python3-Cython
c8ee9d
%{?python_provide:%python_provide python3-%{pypi_name}}
c8ee9d
c8ee9d
%description -n python3-%{pypi_name}
c8ee9d
Acora is 'fgrep' for Python, a fast multi-keyword text search engine.
c8ee9d
c8ee9d
Based on a set of keywords and the Aho-Corasick algorithm, it generates a
c8ee9d
search automaton and runs it over string input, either unicode or bytes.
c8ee9d
c8ee9d
Acora comes with both a pure Python implementation and a fast binary module
c8ee9d
written in Cython. However, note that the current construction algorithm is
c8ee9d
not suitable for really large sets of keywords (i.e. more than a couple of
c8ee9d
thousand).
c8ee9d
c8ee9d
%prep
c8ee9d
%autosetup -n acora-%{pypi_name}-%{version}
c8ee9d
c8ee9d
%build
c8ee9d
%py3_build
c8ee9d
c8ee9d
%install
c8ee9d
%py3_install
c8ee9d
c8ee9d
%check
c8ee9d
%{__python3} setup.py test
c8ee9d
c8ee9d
%files -n python3-%{pypi_name}
c8ee9d
%doc README.rst
c8ee9d
%license LICENSE.txt
c8ee9d
%{python3_sitearch}/%{pypi_name}/
c8ee9d
%{python3_sitearch}/%{pypi_name}*.egg-info
c8ee9d
c8ee9d
%changelog
7b9812
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2-4
7b9812
- Rebuilt for Python 3.8.0rc1 (#1748018)
7b9812
7a4f92
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 2.2-3
7a4f92
- Rebuilt for Python 3.8
7a4f92
1df527
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.2-2
1df527
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
1df527
c8ee9d
* Thu Jun 20 2019 Fabian Affolter <mail@fabian-affolter.ch> - 2.2-1
c8ee9d
- Initial package for Fedora