python-hachoir-regex-vl.spec 1.9 KB

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