forked from pool/python-pyahocorasick
Accepting request 879191 from home:mcalabkova:branches:devel:languages:python
needed by weblate OBS-URL: https://build.opensuse.org/request/show/879191 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyahocorasick?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
3
pyahocorasick-1.4.1.tar.gz
Normal file
3
pyahocorasick-1.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fe076da3b0b20dbb619b0fb6478af8766b06679c0e359a2bfb189d3f07ddeecf
|
||||
size 321039
|
4
python-pyahocorasick.changes
Normal file
4
python-pyahocorasick.changes
Normal file
@@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 15 11:40:58 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Initial packaging (v1.4.1), needed by weblate
|
65
python-pyahocorasick.spec
Normal file
65
python-pyahocorasick.spec
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# spec file for package python-pyahocorasick
|
||||
#
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pyahocorasick
|
||||
Version: 1.4.1
|
||||
Release: 0
|
||||
Summary: Fast and memory efficient library for exact or approximate multi-pattern string search
|
||||
License: BSD-3-Clause
|
||||
URL: http://github.com/WojciechMula/pyahocorasick
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyahocorasick/pyahocorasick-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: gcc
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
**pyahocorasick** is a fast and memory efficient library for exact or approximate
|
||||
multi-pattern string search meaning that you can find multiple key strings
|
||||
occurrences at once in some input text. The library provides an `ahocorasick` Python
|
||||
module that you can use as a plain dict-like Trie or convert a Trie to an automaton
|
||||
for efficient Aho-Corasick search.
|
||||
|
||||
It is implemented in C and tested on Python 2.7 and 3.4+. It works on Linux, Mac and
|
||||
Windows.
|
||||
|
||||
The license is BSD-3-clause. Some utilities, such as tests and the pure Python
|
||||
automaton are dedicated to the Public Domain.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyahocorasick-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||
|
||||
%check
|
||||
%pyunittest_arch unittests.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitearch}/*
|
||||
|
||||
%changelog
|
Reference in New Issue
Block a user