summaryrefslogtreecommitdiffstats
path: root/python-zope-i18n/F-13/python-zope-i18n.spec
blob: ad2743d64272d9a5468a12c8b79131d3237a3920 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
%global modname zope.i18n

Summary: Zope Internationalization Support
Name: python-zope-i18n
Version: 3.7.4
Release: 1%{?dist}
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
License: ZPLv2.1
Group: Development/Libraries
BuildArch: noarch
URL: http://pypi.python.org/pypi/zope.i18n

BuildRequires: python2-devel
BuildRequires: python-setuptools
# for tests
#BuildRequires: python-zope-testrunner (not yet in Fedora)
#BuildRequires: pytz
#BuildRequires: python-zope-schema
#BuildRequires: python-zope-i18nmessageid
#BuildRequires: python-zope-component

Requires: pytz
# python-zope-schema is noarch
Requires: python-zope-schema
Requires: python-zope-i18nmessageid
Requires: python-zope-component

%description
This package implements several APIs related to internationalization and
localization and also provides:

* Locale objects for all locales maintained by the ICU project.

* Gettext-based message catalogs for message strings.

* Locale discovery for Web-based requests.

%prep
%setup -q -n %{modname}-%{version}

%build
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot}
# deal with documents
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}/locales/
cp -p *.txt %{buildroot}%{_docdir}/%{name}-%{version}/
mv %{buildroot}%{python_sitelib}/zope/i18n/*.txt \
   %{buildroot}%{_docdir}/%{name}-%{version}/
mv %{buildroot}%{python_sitelib}/zope/i18n/locales/*.txt \
   %{buildroot}%{_docdir}/%{name}-%{version}/locales/

%files
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/
%{python_sitelib}/zope/i18n/
%exclude %{python_sitelib}/zope/i18n/tests/
%exclude %{python_sitelib}/zope/i18n/locales/tests/
%{python_sitelib}/%{modname}-*.egg-info
%{python_sitelib}/%{modname}-*-nspkg.pth


%changelog
* Thu Sep 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.7.4-1
- Update to 3.7.4
- Rearrange the documents
- Requires: python-zope-filesystem and python-setuptools removed
- Spec cleaned up
- Exclude the tests

* Wed Jun 16 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.7.3-1
- Initial packaging