source: projects/specs/trunk/p/python-hachoir-regex/python-hachoir-regex-vl.spec @ 8158

Revision 8158, 1.9 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

Line 
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
5Name:       python-hachoir-regex
6Version:    1.0.5
7Release:    3%{?_dist_release}
8Summary:    A python library for regular expression (regex or regexp) manupulation.
9
10Group:      System Environment/Libraries
11License:    GPLv2+
12URL:        https://bitbucket.org/haypo/hachoir/wiki/hachoir-regex
13Source0:    http://cheeseshop.python.org/packages/source/h/hachoir-regex/hachoir-regex-%{version}.tar.gz
14BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15BuildArch:  noarch
16
17BuildRequires:  python-devel
18
19Vendor: Project Vine
20Distribution: Vine Linux
21
22%description
23choir-regex is a Python library for regular expression (regex or regexp)
24manupulation. You can use a|b (or) and a+b (and) operators. Expressions are
25optimized during the construction: merge ranges, simplify repetitions, etc.
26It also contains a class for pattern matching allowing to search multiple
27strings 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
37rm -rf %buildroot
38%{__python} ./setup.py install --root $RPM_BUILD_ROOT
39
40%clean
41rm -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
50* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp 1.0.5-3
51- rebuild with VineSeed environment
52
53* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp 1.0.5-2
54- rebuild with python-2.7.2
55
56* Fri Aug 20 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp 1.0.5-1
57- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.