[521] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
---|
| 2 | |
---|
[5701] | 3 | %define ver 0.9.6 |
---|
[8154] | 4 | %define rel 3 |
---|
[521] | 5 | |
---|
| 6 | Summary: A collection of tools for internationalizing Python applications |
---|
| 7 | Name: python-babel |
---|
| 8 | Version: %{ver} |
---|
| 9 | Release: %{rel}%{?_dist_release} |
---|
[5701] | 10 | Source0: http://ftp.edgewall.com/pub/babel/Babel-%{version}.tar.gz |
---|
[521] | 11 | License: modified BSD-style License |
---|
| 12 | Group: Development/Libraries |
---|
| 13 | URL: http://babel.edgewall.org/ |
---|
| 14 | |
---|
[5701] | 15 | BuildRequires: python-setuptools |
---|
| 16 | |
---|
[521] | 17 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 18 | BuildArch: noarch |
---|
| 19 | |
---|
| 20 | Vendor: Project Vine |
---|
| 21 | Distribution: Vine Linux |
---|
| 22 | |
---|
| 23 | |
---|
| 24 | %description |
---|
| 25 | Babel is composed of two major parts: |
---|
| 26 | |
---|
| 27 | * tools to build and work with gettext message catalogs |
---|
| 28 | * a Python interface to the CLDR (Common Locale Data Repository), |
---|
| 29 | providing access to various locale display names, localized number |
---|
| 30 | and date formatting, etc. |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %prep |
---|
| 34 | %setup -q -n Babel-%{version} |
---|
| 35 | |
---|
| 36 | %build |
---|
| 37 | %{__python} setup.py build |
---|
| 38 | |
---|
| 39 | %install |
---|
| 40 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
[5701] | 41 | %{__python} setup.py install --root=${RPM_BUILD_ROOT} |
---|
[521] | 42 | |
---|
| 43 | |
---|
| 44 | %clean |
---|
| 45 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | %files |
---|
| 49 | %defattr(-,root,root) |
---|
| 50 | %doc COPYING ChangeLog README.txt contrib doc scripts |
---|
| 51 | %{_bindir}/pybabel |
---|
| 52 | %{python_sitelib}/Babel-*.egg-info |
---|
| 53 | %{python_sitelib}/babel |
---|
| 54 | |
---|
| 55 | %changelog |
---|
[8154] | 56 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-3 |
---|
| 57 | - rebuild with VineSeed environment |
---|
| 58 | |
---|
[5701] | 59 | * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-2 |
---|
| 60 | - rebuild with python-2.7.2 |
---|
| 61 | - add BuildRequires: python-setuptools |
---|
| 62 | |
---|
| 63 | * Sun Oct 30 2011 Yasumichi Akahoshi <yasumichi@vinelinux.org> 0.9.6-1 |
---|
| 64 | - new upstream release |
---|
| 65 | |
---|
[521] | 66 | * Wed Feb 3 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2 |
---|
| 67 | - rebuilt with python-2.6.4 |
---|
| 68 | |
---|
| 69 | * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.9.4-1 |
---|
| 70 | - initial release |
---|
| 71 | |
---|