python-babel-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %global srcname Babel
  2. %define ver 2.6.0
  3. %define rel 1
  4. Summary: A collection of tools for internationalizing Python applications
  5. Name: python-babel
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. License: modified BSD-style License
  9. Group: Development/Libraries
  10. URL: http://babel.pocoo.org/
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildArch: noarch
  15. Source0: https://files.pythonhosted.org/packages/source/B/%{srcname}/%{srcname}-%{version}.tar.gz
  16. Patch0: babel-2.3.4-remove-pytz-version.patch
  17. BuildRequires: python-setuptools, python-rpm-macros
  18. BuildRequires: python3-setuptools, python3-rpm-macros
  19. BuildRequires: python-pytz, python3-pytz
  20. %{?python_provide:%python_provide python2-babel}
  21. %description
  22. Babel is composed of two major parts:
  23. * tools to build and work with gettext message catalogs
  24. * a Python interface to the CLDR (Common Locale Data Repository),
  25. providing access to various locale display names, localized number
  26. and date formatting, etc.
  27. %package -n python3-babel
  28. Summary: A collection of tools for internationalizing Python applications
  29. Requires: python3-setuptools
  30. Requires: python3-pytz
  31. %{?python_provide:%python_provide python3-babel}
  32. %description -n python3-babel
  33. Babel is composed of two major parts:
  34. * tools to build and work with gettext message catalogs
  35. * a Python interface to the CLDR (Common Locale Data Repository),
  36. providing access to various locale display names, localized number
  37. and date formatting, etc.
  38. %prep
  39. %autosetup -n %{srcname}-%{version}
  40. %build
  41. %py3_build
  42. %py_build
  43. %install
  44. %{__rm} -rf ${RPM_BUILD_ROOT}
  45. %py3_install
  46. %py_install
  47. %clean
  48. %{__rm} -rf ${RPM_BUILD_ROOT}
  49. %files
  50. %defattr(-,root,root)
  51. %doc CHANGES AUTHORS
  52. %license LICENSE
  53. %{_bindir}/pybabel
  54. %{python_sitelib}/Babel-*.egg-info
  55. %{python_sitelib}/babel
  56. %files -n python3-babel
  57. %doc CHANGES AUTHORS
  58. %license LICENSE
  59. %{python3_sitelib}/Babel-%{version}-py*.egg-info
  60. %{python3_sitelib}/babel
  61. %changelog
  62. * Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0-1
  63. - new upstream release.
  64. - added python3 support.
  65. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-3
  66. - rebuild with VineSeed environment
  67. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-2
  68. - rebuild with python-2.7.2
  69. - add BuildRequires: python-setuptools
  70. * Sun Oct 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.6-1
  71. - new upstream release
  72. * Wed Feb 3 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  73. - rebuilt with python-2.6.4
  74. * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.9.4-1
  75. - initial release