From 70c1d98b2c3ecc6ce38f666c6948d7428fee5bf8c3431fe5a2fb6be08e4a94e4 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 4 Oct 2011 17:34:25 +0000 Subject: [PATCH] Accepting request 86564 from home:jnweiger Next generartion regex module. A drop in replacement to re, with added features. OBS-URL: https://build.opensuse.org/request/show/86564 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-regex.changes | 5 ++++ python-regex.spec | 60 ++++++++++++++++++++++++++++++++++++++ regex-0.1.20111004.tar.bz2 | 3 ++ 5 files changed, 92 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-regex.changes create mode 100644 python-regex.spec create mode 100644 regex-0.1.20111004.tar.bz2 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-regex.changes b/python-regex.changes new file mode 100644 index 0000000..b09deaf --- /dev/null +++ b/python-regex.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +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 new file mode 100644 index 0000000..f3d012c --- /dev/null +++ b/python-regex.spec @@ -0,0 +1,60 @@ +# +# spec file for package python-regex-regex +# +# Copyright (c) 2011 jw@suse.de +# +# 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/ +# + +%define module_name regex + +Name: python-regex +Version: 0.1.20111004 +Release: 0 +License: Python Software Foundation License +Summary: Python library - mrab regex manipulation +Url: https://code.google.com/p/mrab-regex-hg/ +Group: Development/Libraries/Python +Source0: http://pypi.python.org/packages/source/r/regex/regex-0.1.20111004.tar.bz2 +BuildRequires: python-devel +BuildRoot: %{_tmppath}/%{module_name}-%{version}-build +%{py_requires} + +%description +A new regex implementation 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'. + +Additional features include +* Approximate "fuzzy" matching +* Set operators +* Repeated captures + +Author: Matthew Barnett + +%prep +%setup -q -n %{module_name}-%{version} + +%build +%{__python} setup.py build + +%install +%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-,root,root) + +%changelog + diff --git a/regex-0.1.20111004.tar.bz2 b/regex-0.1.20111004.tar.bz2 new file mode 100644 index 0000000..0f43e97 --- /dev/null +++ b/regex-0.1.20111004.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bac2b81c6b1bcd72c334623dc572f93a8b2110d0017bd865ab1fdc95e7c2c42a +size 1070143