forked from pool/python-regex
1 OBS-URL: https://build.opensuse.org/request/show/519846 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=6
62 lines
1.8 KiB
RPMSpec
62 lines
1.8 KiB
RPMSpec
#
|
||
# spec file for package python-regex
|
||
#
|
||
# Copyright (c) 2017 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/
|
||
#
|
||
|
||
|
||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||
Name: python-regex
|
||
Version: 2017.07.28
|
||
Release: 0
|
||
Summary: Alternative regular expression module, to replace re
|
||
License: Python-2.0
|
||
Group: Development/Libraries/Python
|
||
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: python3-testsuite
|
||
BuildRequires: python-rpm-macros
|
||
%python_subpackages
|
||
|
||
%description
|
||
This new regex implementation is intended eventually to
|
||
replace Python’s current re module implementation.
|
||
|
||
For testing and comparison with the current 're' module
|
||
the new implementation is in the form of a module called
|
||
'regex'.
|
||
|
||
%prep
|
||
%setup -q -n regex-%{version}
|
||
|
||
%build
|
||
%python_build
|
||
|
||
%install
|
||
%python_install
|
||
|
||
%check
|
||
%{python_expand PYTHONPATH=%{buildroot}%{$python_sitearch}
|
||
$python -B %{buildroot}%{$python_sitearch}/test_regex.py
|
||
}
|
||
|
||
%files %{python_files}
|
||
%defattr(-,root,root)
|
||
%doc README
|
||
%doc docs/*
|
||
%{python_sitearch}/*
|
||
|
||
%changelog
|