Blame SPECS/babel.spec

92205a
%{?scl:%scl_package babel}
92205a
%{!?scl:%global pkg_name %{name}}
92205a
92205a
Name:           %{?scl_prefix}babel
92205a
Version:        0.9.6
a230ce
Release:        9%{?dist}
92205a
Summary:        Tools for internationalizing Python applications
92205a
92205a
Group:          Development/Languages
92205a
License:        BSD
92205a
URL:            http://babel.edgewall.org/
92205a
Source0:        http://ftp.edgewall.com/pub/babel/Babel-%{version}.tar.gz
92205a
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
92205a
92205a
BuildArch:      noarch
92205a
92205a
BuildRequires:  %{?scl_prefix}python-devel
92205a
BuildRequires:  %{?scl_prefix}python-setuptools-devel
92205a
92205a
Requires:       %{?scl_prefix}python-babel
92205a
Requires:       %{?scl_prefix}python-setuptools
92205a
92205a
%description
92205a
Babel is composed of two major parts:
92205a
92205a
* tools to build and work with gettext message catalogs
92205a
92205a
* a Python interface to the CLDR (Common Locale Data Repository),
92205a
  providing access to various locale display names, localized number
92205a
  and date formatting, etc.
92205a
92205a
%package -n %{?scl_prefix}python-babel
92205a
Summary:        Library for internationalizing Python applications
92205a
Group:          Development/Languages
92205a
# previously Fedora shipped a broken subpackage python3-babel which is gone now
92205a
# (until upstream releases a version with Python 3 support)
92205a
Obsoletes:      %{?scl_prefix}python3-babel < 0.9.6-4
92205a
92205a
%description -n %{?scl_prefix}python-babel
92205a
Babel is composed of two major parts:
92205a
92205a
* tools to build and work with gettext message catalogs
92205a
92205a
* a Python interface to the CLDR (Common Locale Data Repository),
92205a
  providing access to various locale display names, localized number
92205a
  and date formatting, etc.
92205a
92205a
%prep
92205a
%setup0 -q -n Babel-%{version}
92205a
chmod a-x babel/messages/frontend.py doc/logo.png doc/logo_small.png
92205a
%{__sed} -i -e '/^#!/,1d' babel/messages/frontend.py
92205a
92205a
%build
92205a
%{?scl:scl enable %{scl} "}
92205a
%{__python} setup.py build
92205a
%{?scl:"}
92205a
92205a
%install
92205a
rm -rf %{buildroot}
92205a
%{?scl:scl enable %{scl} "}
92205a
%{__python} setup.py install --skip-build --no-compile --root %{buildroot}
92205a
%{?scl:"}
92205a
92205a
%clean
92205a
rm -rf %{buildroot}
92205a
92205a
%files
92205a
%defattr(-,root,root,-)
92205a
%doc ChangeLog COPYING README.txt doc/cmdline.txt
92205a
%{_bindir}/pybabel
92205a
92205a
%files -n %{?scl_prefix}python-babel
92205a
%defattr(-,root,root,-)
92205a
%doc doc
92205a
%{python_sitelib}/Babel-%{version}-py*.egg-info
92205a
%{python_sitelib}/babel
92205a
92205a
%changelog
a230ce
* Thu May 24 2018 Charalampos Stratakis <cstratak@redhat.com> - 0.9.6-9
a230ce
- Rebuild for multi-arch bootstrap
a230ce
92205a
* Thu Oct 24 2013 Robert Kuska <rkuska@redhat.com> - 0.9.6-8
92205a
- Bump release number to avoid building conflict with rhel-7.0
92205a
92205a
* Tue May 07 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.6-7
92205a
- Rebuild to generate bytecode properly after fixing rhbz#956289
92205a
92205a
* Wed Sep 19 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.9.6-6
92205a
- Rebuilt for SCL.
92205a
92205a
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.6-5
92205a
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
92205a
92205a
* Wed Aug 01 2012 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 0.9.6-4
92205a
- disable building of non-functional python3 subpackage (#761583)
92205a
92205a
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-3
92205a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
92205a
92205a
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
92205a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
92205a
92205a
* Tue Jun 07 2011 Nils Philippsen <nils@redhat.com> - 0.9.6-1
92205a
- version 0.9.6:
92205a
  * Backport r493-494: documentation typo fixes.
92205a
  * Make the CLDR import script work with Python 2.7.
92205a
  * Fix various typos.
92205a
  * Fixed Python 2.3 compatibility (ticket #146, #233).
92205a
  * Sort output of list-locales.
92205a
  * Make the POT-Creation-Date of the catalog being updated equal to
92205a
    POT-Creation-Date of the template used to update (ticket #148).
92205a
  * Use a more explicit error message if no option or argument (command) is
92205a
    passed to pybabel (ticket #81).
92205a
  * Keep the PO-Revision-Date if it is not the default value (ticket #148).
92205a
  * Make --no-wrap work by reworking --width's default and mimic xgettext's
92205a
    behaviour of always wrapping comments (ticket #145).
92205a
  * Fixed negative offset handling of Catalog._set_mime_headers (ticket #165).
92205a
  * Add --project and --version options for commandline (ticket #173).
92205a
  * Add a __ne__() method to the Local class.
92205a
  * Explicitly sort instead of using sorted() and don't assume ordering
92205a
    (Python 2.3 and Jython compatibility).
92205a
  * Removed ValueError raising for string formatting message checkers if the
92205a
    string does not contain any string formattings (ticket #150).
92205a
  * Fix Serbian plural forms (ticket #213).
92205a
  * Small speed improvement in format_date() (ticket #216).
92205a
  * Fix number formatting for locales where CLDR specifies alt or draft
92205a
    items (ticket #217)
92205a
  * Fix bad check in format_time (ticket #257, reported with patch and tests by
92205a
    jomae)
92205a
  * Fix so frontend.CommandLineInterface.run does not accumulate logging
92205a
    handlers (#227, reported with initial patch by dfraser)
92205a
  * Fix exception if environment contains an invalid locale setting (#200)
92205a
- install python2 rather than python3 executable (#710880)
92205a
92205a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-4
92205a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
92205a
92205a
* Thu Aug 26 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.5-3
92205a
- Add python3 subpackage
92205a
92205a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.5-2
92205a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
92205a
92205a
* Wed Apr  7 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.5-1
92205a
- This release contains a small number of bugfixes over the 0.9.4
92205a
- release.
92205a
-
92205a
- What's New:
92205a
- -----------
92205a
- * Fixed the case where messages containing square brackets would break
92205a
-  with an unpack error
92205a
- * Fuzzy matching regarding plurals should *NOT* be checked against
92205a
-  len(message.id) because this is always 2, instead, it's should be
92205a
-  checked against catalog.num_plurals (ticket #212).
92205a
92205a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-5
92205a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
92205a
92205a
* Sat Mar 28 2009 Robert Scheck <robert@fedoraproject.org> - 0.9.4-4
92205a
- Added missing requires to python-setuptools for pkg_resources
92205a
92205a
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-3
92205a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
92205a
92205a
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.4-2
92205a
- Rebuild for Python 2.6
92205a
92205a
* Mon Aug 25 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.4-1
92205a
- Update to 0.9.4
92205a
92205a
* Thu Jul 10 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.3-1
92205a
- Update to 0.9.3
92205a
92205a
* Sun Dec 16 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.1-1
92205a
- Update to 0.9.1
92205a
92205a
* Tue Aug 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9-2
92205a
- BR python-setuptools-devel
92205a
92205a
* Mon Aug 27 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9-1
92205a
- Update to 0.9
92205a
92205a
* Mon Jul  2 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8.1-1
92205a
- Update to 0.8.1
92205a
- Remove upstreamed patch.
92205a
92205a
* Fri Jun 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-3
92205a
- Replace patch with one that actually applies.
92205a
92205a
* Fri Jun 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-2
92205a
- Apply upstream patch to rename command line script to "pybabel" - BZ#246208
92205a
92205a
* Thu Jun 21 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-1
92205a
- First version for Fedora
92205a