forked from pool/python-regex
updated to current relase (fixes some bugs) OBS-URL: https://build.opensuse.org/request/show/120568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-regex?expand=0&rev=2
62 lines
1.8 KiB
RPMSpec
62 lines
1.8 KiB
RPMSpec
#
|
|
# spec file for package python-regex-regex
|
|
#
|
|
# Copyright (c) 2011 jw@suse.de,
|
|
# Copyright (c) 2012 froh@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.20120506
|
|
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-%{version}.tar.gz
|
|
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
|
|
|