python-babel-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %global srcname Babel
  2. Summary: A collection of tools for internationalizing Python applications
  3. Name: python-babel
  4. Version: 2.8.0
  5. Release: 1%{?_dist_release}
  6. Group: programming
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: modified BSD-style License
  10. URL: https://babel.pocoo.org/
  11. Source0: https://files.pythonhosted.org/packages/source/B/%{srcname}/%{srcname}-%{version}.tar.gz
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: python-rpm-macros
  15. BuildRequires: python-setuptools, python2-rpm-macros, python-pytz
  16. Requires: python-setuptools
  17. Requires: python-pytz
  18. %{?python_provide:%python_provide python2-babel}
  19. %description
  20. Babel is composed of two major parts:
  21. * tools to build and work with gettext message catalogs
  22. * a Python interface to the CLDR (Common Locale Data Repository),
  23. providing access to various locale display names, localized number
  24. and date formatting, etc.
  25. %package -n python3-babel
  26. Summary: A collection of tools for internationalizing Python applications
  27. Group: programming
  28. BuildRequires: python3-setuptools, python3-rpm-macros, python3-pytz
  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. %py2_build
  43. %install
  44. %{__rm} -rf ${RPM_BUILD_ROOT}
  45. %py3_install
  46. %py2_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. * Sun Aug 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8.0-1
  63. - new upstream release.
  64. * Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0-2
  65. - fixed R:.
  66. * Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.6.0-1
  67. - new upstream release.
  68. - added python3 support.
  69. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-3
  70. - rebuild with VineSeed environment
  71. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-2
  72. - rebuild with python-2.7.2
  73. - add BuildRequires: python-setuptools
  74. * Sun Oct 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.6-1
  75. - new upstream release
  76. * Wed Feb 3 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2
  77. - rebuilt with python-2.6.4
  78. * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.9.4-1
  79. - initial release