[4628] | 1 | # sitelib for noarch packages, sitearch for others (remove the unneeded one) |
---|
| 2 | %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")} |
---|
| 3 | %{!?python_version: %global python_version %(%{__python} -c "from distutils.sysconfig import get_python_version; print get_python_version()")} |
---|
| 4 | |
---|
| 5 | Name: python-hachoir-regex |
---|
| 6 | Version: 1.0.5 |
---|
[8158] | 7 | Release: 3%{?_dist_release} |
---|
[4628] | 8 | Summary: A python library for regular expression (regex or regexp) manupulation. |
---|
| 9 | |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | License: GPLv2+ |
---|
| 12 | URL: https://bitbucket.org/haypo/hachoir/wiki/hachoir-regex |
---|
| 13 | Source0: http://cheeseshop.python.org/packages/source/h/hachoir-regex/hachoir-regex-%{version}.tar.gz |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 15 | BuildArch: noarch |
---|
| 16 | |
---|
| 17 | BuildRequires: python-devel |
---|
| 18 | |
---|
| 19 | Vendor: Project Vine |
---|
| 20 | Distribution: Vine Linux |
---|
| 21 | |
---|
| 22 | %description |
---|
| 23 | choir-regex is a Python library for regular expression (regex or regexp) |
---|
| 24 | manupulation. You can use a|b (or) and a+b (and) operators. Expressions are |
---|
| 25 | optimized during the construction: merge ranges, simplify repetitions, etc. |
---|
| 26 | It also contains a class for pattern matching allowing to search multiple |
---|
| 27 | strings and regex at the same time. |
---|
| 28 | |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q -n hachoir-regex-%{version} |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | %{__python} ./setup.py build |
---|
| 35 | |
---|
| 36 | %install |
---|
| 37 | rm -rf %buildroot |
---|
| 38 | %{__python} ./setup.py install --root $RPM_BUILD_ROOT |
---|
| 39 | |
---|
| 40 | %clean |
---|
| 41 | rm -rf %buildroot |
---|
| 42 | |
---|
| 43 | %files |
---|
| 44 | %defattr(-,root,root,-) |
---|
| 45 | %doc COPYING README AUTHORS |
---|
| 46 | %{python_sitelib}/hachoir_regex/ |
---|
| 47 | %{python_sitelib}/hachoir_regex-%{version}-py%{python_version}.egg-info |
---|
| 48 | |
---|
| 49 | %changelog |
---|
[8158] | 50 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp 1.0.5-3 |
---|
| 51 | - rebuild with VineSeed environment |
---|
| 52 | |
---|
[5701] | 53 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp 1.0.5-2 |
---|
| 54 | - rebuild with python-2.7.2 |
---|
| 55 | |
---|
[8158] | 56 | * Fri Aug 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp 1.0.5-1 |
---|
[4628] | 57 | - initial build for Vine Linux |
---|