Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:babelworx:python
python-pyahocorasick
python-pyahocorasick.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pyahocorasick.spec of Package python-pyahocorasick
# # spec file for package python-pyrasite # # Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %define modname pyahocorasick Name: python-%{modname} Version: 20110413 Release: 0 Url: http://0x80.pl/proj/pyahocorasick/ Summary: pyahocorasic implements trie and Aho-Corasick string matching automaton License: BSD-3-Clause Group: Development/Languages/Python Source: %{modname}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes gcc python-devel python-unittest2 %if 0%{?suse_version} < 1210 BuildRequires: python-setuptools %else BuildRequires: python-distribute %endif %if 0%{?suse_version} %py_requires %if 0%{?suse_version} > 1110 %endif %endif %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %description pyahocorasick is a Python module implements two kinds of data structures: trie and Aho-Corasick string matching automaton. Trie is a dictionary indexed by strings, which allow to retrieve associated items in a time proportional to string length. Aho-Corasick automaton allows to find all occurrences of strings from given set in a single run over text. (BTW in order to use Aho-Corasick automaton, a trie have to be created; this is the reason why these two distinct entities exist in a single module.) There are two versions: C extension, compatible only with Python3; pure python module, compatible with Python 2 and 3. Authors ~~~~~~~ Wojciech Mula <wojciech_mula@poczta.onet.pl> %prep %setup -q -n %{modname}-%{version} %build CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES %fdupes %{buildroot}/%{python_sitelib} ##%check ##python ahocorasick_test.py %files -f INSTALLED_FILES %defattr(-,root,root,-) %doc LICENSE README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor