|
Jeffrey C. Ollie |
c92e8e |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
Name: babel
|
|
Jeffrey C. Ollie |
5e7192 |
Version: 0.9.2
|
|
Jeffrey C. Ollie |
1d9aae |
Release: 1%{?dist}
|
|
Jeffrey C. Ollie |
c92e8e |
Summary: Tools for internationalizing Python applications
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
Group: Development/Languages
|
|
Jeffrey C. Ollie |
c92e8e |
License: BSD
|
|
Jeffrey C. Ollie |
c92e8e |
URL: http://babel.edgewall.org/
|
|
Jeffrey C. Ollie |
c92e8e |
Source0: http://ftp.edgewall.com/pub/babel/Babel-%{version}.tar.bz2
|
|
Jeffrey C. Ollie |
c92e8e |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
BuildArch: noarch
|
|
Jeffrey C. Ollie |
c92e8e |
BuildRequires: python-devel
|
|
Jeffrey C. Ollie |
03ca51 |
BuildRequires: python-setuptools-devel
|
|
Jeffrey C. Ollie |
c92e8e |
Requires: python-babel
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%description
|
|
Jeffrey C. Ollie |
c92e8e |
Babel is composed of two major parts:
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
* tools to build and work with gettext message catalogs
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
* a Python interface to the CLDR (Common Locale Data Repository),
|
|
Jeffrey C. Ollie |
c92e8e |
providing access to various locale display names, localized number
|
|
Jeffrey C. Ollie |
c92e8e |
and date formatting, etc.
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%package -n python-babel
|
|
Jeffrey C. Ollie |
c92e8e |
Summary: Library for internationalizing Python applications
|
|
Jeffrey C. Ollie |
c92e8e |
Group: Development/Languages
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%description -n python-babel
|
|
Jeffrey C. Ollie |
c92e8e |
Babel is composed of two major parts:
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
* tools to build and work with gettext message catalogs
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
* a Python interface to the CLDR (Common Locale Data Repository),
|
|
Jeffrey C. Ollie |
c92e8e |
providing access to various locale display names, localized number
|
|
Jeffrey C. Ollie |
c92e8e |
and date formatting, etc.
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%prep
|
|
Jeffrey C. Ollie |
2b91a1 |
%setup0 -q -n Babel-%{version}
|
|
Jeffrey C. Ollie |
c92e8e |
chmod a-x babel/messages/frontend.py doc/logo.png doc/logo_small.png
|
|
Jeffrey C. Ollie |
c92e8e |
%{__sed} -i -e '/^#!/,1d' babel/messages/frontend.py
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%build
|
|
Jeffrey C. Ollie |
c92e8e |
%{__python} setup.py build
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%install
|
|
Jeffrey C. Ollie |
c92e8e |
rm -rf %{buildroot}
|
|
Jeffrey C. Ollie |
c92e8e |
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%clean
|
|
Jeffrey C. Ollie |
c92e8e |
rm -rf %{buildroot}
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%files
|
|
Jeffrey C. Ollie |
c92e8e |
%defattr(-,root,root,-)
|
|
Jeffrey C. Ollie |
2b91a1 |
%doc ChangeLog COPYING README.txt doc/cmdline.txt
|
|
Jeffrey C. Ollie |
2b91a1 |
%{_bindir}/pybabel
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%files -n python-babel
|
|
Jeffrey C. Ollie |
c92e8e |
%defattr(-,root,root,-)
|
|
Jeffrey C. Ollie |
c92e8e |
%doc doc
|
|
Jeffrey C. Ollie |
c92e8e |
%{python_sitelib}/*
|
|
Jeffrey C. Ollie |
c92e8e |
|
|
Jeffrey C. Ollie |
c92e8e |
%changelog
|
|
Jeffrey C. Ollie |
03ca51 |
* Sun Dec 16 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.1-1
|
|
Jeffrey C. Ollie |
03ca51 |
- Update to 0.9.1
|
|
Jeffrey C. Ollie |
03ca51 |
|
|
Jeffrey C. Ollie |
03ca51 |
* Tue Aug 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9-2
|
|
Jeffrey C. Ollie |
03ca51 |
- BR python-setuptools-devel
|
|
Jeffrey C. Ollie |
03ca51 |
|
|
Jeffrey C. Ollie |
4a06bd |
* Mon Aug 27 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9-1
|
|
Jeffrey C. Ollie |
4a06bd |
- Update to 0.9
|
|
Jeffrey C. Ollie |
4a06bd |
|
|
Jeffrey C. Ollie |
1d9aae |
* Mon Jul 2 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8.1-1
|
|
Jeffrey C. Ollie |
1d9aae |
- Update to 0.8.1
|
|
Jeffrey C. Ollie |
1d9aae |
- Remove upstreamed patch.
|
|
Jeffrey C. Ollie |
1d9aae |
|
|
Jeffrey C. Ollie |
2b91a1 |
* Fri Jun 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-3
|
|
Jeffrey C. Ollie |
2b91a1 |
- Replace patch with one that actually applies.
|
|
Jeffrey C. Ollie |
2b91a1 |
|
|
Jeffrey C. Ollie |
2b91a1 |
* Fri Jun 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-2
|
|
Jeffrey C. Ollie |
2b91a1 |
- Apply upstream patch to rename command line script to "pybabel" - BZ#246208
|
|
Jeffrey C. Ollie |
2b91a1 |
|
|
Jeffrey C. Ollie |
c92e8e |
* Thu Jun 21 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-1
|
|
Jeffrey C. Ollie |
c92e8e |
- First version for Fedora
|
|
Jeffrey C. Ollie |
c92e8e |
|