python-babel-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. %global srcname Babel
  2. %define ver 2.6.0
  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. 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, python-pytz
  18. Requires: python-setuptools
  19. Requires: python-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. BuildRequires: python3-setuptools, python3-rpm-macros, python3-pytz
  30. Requires: python3-setuptools
  31. Requires: python3-pytz
  32. %{?python_provide:%python_provide python3-babel}
  33. %description -n python3-babel
  34. Babel is composed of two major parts:
  35. * tools to build and work with gettext message catalogs
  36. * a Python interface to the CLDR (Common Locale Data Repository),
  37. providing access to various locale display names, localized number
  38. and date formatting, etc.
  39. %prep
  40. %autosetup -n %{srcname}-%{version}
  41. %build
  42. %py3_build
  43. %py_build
  44. %install
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %py3_install
  47. %py_install
  48. %clean
  49. %{__rm} -rf ${RPM_BUILD_ROOT}
  50. %files
  51. %defattr(-,root,root)
  52. %doc CHANGES AUTHORS
  53. %license LICENSE
  54. %{_bindir}/pybabel
  55. %{python_sitelib}/Babel-*.egg-info
  56. %{python_sitelib}/babel
  57. %files -n python3-babel
  58. %doc CHANGES AUTHORS
  59. %license LICENSE
  60. %{python3_sitelib}/Babel-%{version}-py*.egg-info
  61. %{python3_sitelib}/babel
  62. %changelog
  63. * Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0-2
  64. - fixed R:.
  65. * Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0-1
  66. - new upstream release.
  67. - added python3 support.
  68. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-3
  69. - rebuild with VineSeed environment
  70. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-2
  71. - rebuild with python-2.7.2
  72. - add BuildRequires: python-setuptools
  73. * Sun Oct 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.6-1
  74. - new upstream release
  75. * Wed Feb 3 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  76. - rebuilt with python-2.6.4
  77. * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.9.4-1
  78. - initial release