forked from pool/python-regex
Accepting request 519846 from devel:languages:python:singlespec-staging
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
This commit is contained in:
@@ -16,15 +16,19 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-regex
|
||||
Version: 2017.06.07
|
||||
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-devel
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: python3-testsuite
|
||||
BuildRequires: python-rpm-macros
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
This new regex implementation is intended eventually to
|
||||
@@ -38,12 +42,17 @@ the new implementation is in the form of a module called
|
||||
%setup -q -n regex-%{version}
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
%files
|
||||
%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/*
|
||||
|
Reference in New Issue
Block a user