diff --git a/python-regex.changes b/python-regex.changes index 3be0ae8..62d54be 100644 --- a/python-regex.changes +++ b/python-regex.changes @@ -1,3 +1,20 @@ +------------------------------------------------------------------- +Sat Sep 2 09:22:13 UTC 2017 - jengelh@inai.de + +- Specify in description what makes regex worthwhile to have. + Fix RPM group. + +------------------------------------------------------------------- +Thu Aug 31 06:19:11 UTC 2017 - toddrme2178@gmail.com + +- Update to 2017.07.28 + * Too many changes to list + +------------------------------------------------------------------- +Thu Aug 24 13:53:27 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Fri Jun 16 18:08:36 UTC 2017 - ecsos@opensuse.org @@ -21,3 +38,4 @@ Tue Oct 4 16:18:57 UTC 2011 - jw@suse.com - initial pull from pypi + diff --git a/python-regex.spec b/python-regex.spec index 2f3dd0f..971c17f 100644 --- a/python-regex.spec +++ b/python-regex.spec @@ -16,34 +16,47 @@ # +%{?!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 +Summary: Alternative regular expression module for Python License: Python-2.0 -Group: Development/Libraries/Python +Group: Development/Languages/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: python-rpm-macros +BuildRequires: python3-testsuite +%python_subpackages %description -This new regex implementation is intended eventually to -replace Python’s current re module implementation. +An alternate regex implementation. It differs from "re" in that -For testing and comparison with the current 're' module -the new implementation is in the form of a module called -'regex'. +* Zero-width matches are handled like in Perl and PCRE: + * ``.split`` will split a string at a zero-width match. + * ``.sub`` will handle zero-width matches correctly. +* Inline flags apply to the end of the group or pattern, and they can + be turned off. +* Nested sets and set operations are supported. +* Case-insensitive matches in Unicode use full case-folding by + default. %prep %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/* diff --git a/regex-2017.06.07.tar.gz b/regex-2017.06.07.tar.gz deleted file mode 100644 index b731f16..0000000 --- a/regex-2017.06.07.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e45784bbe5a0ce4a954fbc5e0f72909798257241147271d4906bc617fd59261b -size 603244 diff --git a/regex-2017.07.28.tar.gz b/regex-2017.07.28.tar.gz new file mode 100644 index 0000000..34a3471 --- /dev/null +++ b/regex-2017.07.28.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27ab18243b1a0aa1467027be93b118c9fcd60dd2e4020da579fad3008bc4638f +size 607577