summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python-zope-i18n/F-13/python-zope-i18n.spec51
1 files changed, 31 insertions, 20 deletions
diff --git a/python-zope-i18n/F-13/python-zope-i18n.spec b/python-zope-i18n/F-13/python-zope-i18n.spec
index 88fb0ee..ad2743d 100644
--- a/python-zope-i18n/F-13/python-zope-i18n.spec
+++ b/python-zope-i18n/F-13/python-zope-i18n.spec
@@ -1,15 +1,10 @@
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
-%endif
%global modname zope.i18n
-%global version 3.7.3
-%global release 1
Summary: Zope Internationalization Support
Name: python-zope-i18n
-Version: %{version}
-Release: %{release}%{?dist}
-Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.zip
+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
@@ -17,16 +12,22 @@ URL: http://pypi.python.org/pypi/zope.i18n
BuildRequires: python2-devel
BuildRequires: python-setuptools
-Requires: python-zope-filesystem
-Requires: 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.
+localization and also provides:
* Locale objects for all locales maintained by the ICU project.
@@ -38,25 +39,35 @@ localization.
%setup -q -n %{modname}-%{version}
%build
-python setup.py build
+%{__python} setup.py build
%install
-rm -rf $RPM_BUILD_ROOT
-python setup.py install --root=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/i18n/*.txt
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+%{__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,-)
-%doc CHANGES.txt README.txt
-%doc src/zope/i18n/*.txt
+%{_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