14
0
forked from pool/python-regex

- Update to 2019.04.14:

* no upstream changelog provided

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=11
This commit is contained in:
Tomáš Chvátal
2019-05-14 17:27:35 +00:00
committed by Git OBS Bridge
parent 4f13089fcd
commit d929270774
4 changed files with 18 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-regex
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2019 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
@@ -12,20 +12,22 @@
# 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/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-regex
Version: 2018.06.21
Version: 2019.04.14
Release: 0
Summary: Alternative regular expression module for Python
License: Python-2.0
Group: Development/Languages/Python
Url: https://bitbucket.org/mrabarnett/mrab-regex
URL: https://bitbucket.org/mrabarnett/mrab-regex
Source: https://files.pythonhosted.org/packages/source/r/regex/regex-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-testsuite
%python_subpackages
@@ -50,14 +52,14 @@ An alternate regex implementation. It differs from "re" in that
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%check
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch}
$python -B %{buildroot}%{$python_sitearch}/test_regex.py
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitearch}
$python -B %{buildroot}%{$python_sitearch}/regex/test/test_regex.py
}
%files %{python_files}
%defattr(-,root,root)
%doc README
%doc docs/*
%{python_sitearch}/*