python-babel-vl.spec 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %define ver 0.9.4
  3. %define rel 2
  4. Summary: A collection of tools for internationalizing Python applications
  5. Name: python-babel
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: http://ftp.edgewall.com/pub/babel/Babel-%{version}.tar.bz2
  9. License: modified BSD-style License
  10. Group: Development/Libraries
  11. URL: http://babel.edgewall.org/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildArch: noarch
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. Babel is composed of two major parts:
  18. * tools to build and work with gettext message catalogs
  19. * a Python interface to the CLDR (Common Locale Data Repository),
  20. providing access to various locale display names, localized number
  21. and date formatting, etc.
  22. %prep
  23. %setup -q -n Babel-%{version}
  24. %build
  25. %{__python} setup.py build
  26. %install
  27. %{__rm} -rf ${RPM_BUILD_ROOT}
  28. %{__python} setup.py install --root=${RPM_BUILD_ROOT}
  29. %clean
  30. %{__rm} -rf ${RPM_BUILD_ROOT}
  31. %files
  32. %defattr(-,root,root)
  33. %doc COPYING ChangeLog README.txt contrib doc scripts
  34. %{_bindir}/pybabel
  35. %{python_sitelib}/Babel-*.egg-info
  36. %{python_sitelib}/babel
  37. %changelog
  38. * Wed Feb 3 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  39. - rebuilt with python-2.6.4
  40. * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.9.4-1
  41. - initial release