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