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 2 |
---|
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 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
16 | BuildArch: noarch |
---|
17 | |
---|
18 | Vendor: Project Vine |
---|
19 | Distribution: Vine Linux |
---|
20 | |
---|
21 | |
---|
22 | %description |
---|
23 | Babel is composed of two major parts: |
---|
24 | |
---|
25 | * tools to build and work with gettext message catalogs |
---|
26 | * a Python interface to the CLDR (Common Locale Data Repository), |
---|
27 | providing access to various locale display names, localized number |
---|
28 | and date formatting, etc. |
---|
29 | |
---|
30 | |
---|
31 | %prep |
---|
32 | %setup -q -n Babel-%{version} |
---|
33 | |
---|
34 | %build |
---|
35 | %{__python} setup.py build |
---|
36 | |
---|
37 | %install |
---|
38 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
39 | %{__python} setup.py install --root=${RPM_BUILD_ROOT} |
---|
40 | |
---|
41 | |
---|
42 | %clean |
---|
43 | %{__rm} -rf ${RPM_BUILD_ROOT} |
---|
44 | |
---|
45 | |
---|
46 | %files |
---|
47 | %defattr(-,root,root) |
---|
48 | %doc COPYING ChangeLog README.txt contrib doc scripts |
---|
49 | %{_bindir}/pybabel |
---|
50 | %{python_sitelib}/Babel-*.egg-info |
---|
51 | %{python_sitelib}/babel |
---|
52 | |
---|
53 | %changelog |
---|
54 | * Wed Feb 3 2010 Shu KONNO <owa@bg.wakwak.com> 0.9.4-2 |
---|
55 | - rebuilt with python-2.6.4 |
---|
56 | |
---|
57 | * Sun Apr 5 2009 IWAI, Masaharu <iwai@alib.jp> 0.9.4-1 |
---|
58 | - initial release |
---|
59 | |
---|