# # spec file for package python-rebulk # # Copyright (c) 2016 SUSE LINUX 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/ # Name: python-rebulk Version: 0.7.3 Release: 0 Summary: Rebulk - Define bulk search patterns to perform advanced string matching License: MIT Group: Development/Languages/Python Url: https://github.com/Toilal/rebulk Source0: https://pypi.python.org/packages/source/r/rebulk/rebulk-%{version}.tar.gz Source99: %{name}-rpmlintrc BuildRequires: fdupes BuildRequires: python-devel BuildRequires: python-pytest-runner BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} > 1110 BuildArch: noarch %endif %description ReBulk is a python library that performs advanced searches in strings that would be hard to implement using re module or String methods only. It includes some features like Patterns, Match, Rule that allow developers to build a custom and complex string matcher using a readable and extendable API. %prep %setup -q -n rebulk-%{version} %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root %{buildroot} %fdupes -s %{buildroot} %files %defattr(-,root,root,-) %doc LICENSE README.rst %{python_sitelib}/* %changelog