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