Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Herbster0815
python-rebulk
python-rebulk.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-rebulk.spec of Package python-rebulk
# # spec file for package python-rebulk # # Copyright (c) 2023 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/ # %define skip_python2 1 %{?sle15_python_module_pythons} Name: python-rebulk Version: 3.2.0 Release: 0 Summary: Library for defining bulk search patterns to perform advanced string matching License: MIT URL: https://github.com/Toilal/rebulk Source0: https://files.pythonhosted.org/packages/source/r/rebulk/rebulk-%{version}.tar.gz BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch Recommends: python-regex %python_subpackages %description ReBulk is a Python library that performs advanced searches in strings that would be hard to implement using the re module or String methods only. It includes some features like Patterns, Match, Rule that allow building a custom and complex string matcher. %prep %autosetup -n rebulk-%{version} # Remove shebang from non-executable files for i in {'builder','chain','debug','formatters','__init__','introspector','loose','match','pattern','processors','rebulk','remodule','rules','toposort','utils','validators','__version__'}; do sed -i -e "1d" "rebulk/$i.py" done for i in {'default_rules_module','__init__','rebulk_rules_module','rules_module','test_chain','test_debug','test_introspector','test_loose','test_match','test_pattern','test_processors','test_rebulk','test_rules','test_toposort','test_validators'}; do sed -i -e "1d" "rebulk/test/$i.py" done %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check %pytest rebulk/test/ %files %{python_files} %doc CHANGELOG.md README.md %license LICENSE %{python_sitelib}/rebulk %{python_sitelib}/rebulk-%{version}-py%{python_version}.egg-info %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