Jeffrey C. Ollie d18f15
Toshio Kuratomi 3b7d65
# On fedora 24 and beyond we want to use the python3 version by default
Toshio Kuratomi 3b7d65
# (Only reason earlier versions aren't switched is that we didn't push it out
Toshio Kuratomi 3b7d65
# before the release)
Nils Philippsen 9a82ec
%if 0%{?fedora} >= 24
Toshio Kuratomi 3b7d65
%global default_python 3
Toshio Kuratomi 3b7d65
%else
Toshio Kuratomi 3b7d65
%global default_python 2
Toshio Kuratomi 3b7d65
%endif
Toshio Kuratomi 3b7d65
Jeffrey C. Ollie d18f15
Name:           babel
Nils Philippsen 659345
Version:        2.3.4
Nils Philippsen 659345
Release:        1%{?dist}
Jeffrey C. Ollie d18f15
Summary:        Tools for internationalizing Python applications
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
License:        BSD
Felix Schwarz 9385b4
URL:            http://babel.pocoo.org/
Felix Schwarz 9385b4
Source0:        https://pypi.python.org/packages/source/B/Babel/Babel-%{version}.tar.gz
Toshio Kuratomi 1cb34c
Patch0:         babel-remove-pytz-version.patch
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
BuildArch:      noarch
Jeffrey C. Ollie dd48c7
Toshio Kuratomi 1cb34c
BuildRequires:  python2-devel
Toshio Kuratomi 515620
BuildRequires:  python-setuptools
Nils Philippsen b6ee32
BuildRequires:  pytz
Jeffrey C. Ollie dd48c7
Felix Schwarz 9385b4
# build the documentation
Felix Schwarz 9385b4
BuildRequires:  make
Felix Schwarz 9385b4
BuildRequires:  python-sphinx
Felix Schwarz 9385b4
Nils Philippsen 9a82ec
%if %{default_python} >= 3
Toshio Kuratomi 3b7d65
Requires:       python3-babel
Toshio Kuratomi 3b7d65
Requires:       python3-setuptools
Toshio Kuratomi 3b7d65
%else
Jeffrey C. Ollie d18f15
Requires:       python-babel
Robert Scheck 1a8a0b
Requires:       python-setuptools
Toshio Kuratomi 3b7d65
%endif
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie dd48c7
BuildRequires:  python3-devel
Jeffrey C. Ollie dd48c7
BuildRequires:  python3-setuptools
Felix Schwarz 1730ff
BuildRequires:  python3-pytz
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie d18f15
%description
Jeffrey C. Ollie d18f15
Babel is composed of two major parts:
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
* tools to build and work with gettext message catalogs
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
* a Python interface to the CLDR (Common Locale Data Repository),
Jeffrey C. Ollie d18f15
  providing access to various locale display names, localized number
Jeffrey C. Ollie d18f15
  and date formatting, etc.
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
%package -n python-babel
Jeffrey C. Ollie d18f15
Summary:        Library for internationalizing Python applications
Jeffrey C. Ollie d18f15
Group:          Development/Languages
Jeffrey C. Ollie d18f15
Nils Philippsen caf2b2
Requires:       python-setuptools
Nils Philippsen caf2b2
Requires:       pytz
Nils Philippsen caf2b2
Jeffrey C. Ollie d18f15
%description -n python-babel
Jeffrey C. Ollie d18f15
Babel is composed of two major parts:
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
* tools to build and work with gettext message catalogs
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
* a Python interface to the CLDR (Common Locale Data Repository),
Jeffrey C. Ollie d18f15
  providing access to various locale display names, localized number
Jeffrey C. Ollie d18f15
  and date formatting, etc.
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie dd48c7
%package -n python3-babel
Jeffrey C. Ollie dd48c7
Summary:        Library for internationalizing Python applications
Jeffrey C. Ollie dd48c7
Group:          Development/Languages
Jeffrey C. Ollie dd48c7
Felix Schwarz 1730ff
Requires:       python3-setuptools
Felix Schwarz 1730ff
Requires:       python3-pytz
Felix Schwarz 1730ff
Jeffrey C. Ollie dd48c7
%description -n python3-babel
Jeffrey C. Ollie dd48c7
Babel is composed of two major parts:
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie dd48c7
* tools to build and work with gettext message catalogs
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie dd48c7
* a Python interface to the CLDR (Common Locale Data Repository),
Jeffrey C. Ollie dd48c7
  providing access to various locale display names, localized number
Jeffrey C. Ollie dd48c7
  and date formatting, etc.
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie f6c01e
%package doc
Jeffrey C. Ollie f6c01e
Summary:        Documentation for Babel
Jeffrey C. Ollie f6c01e
Provides:       python-babel-doc = %{version}-%{release}
Jeffrey C. Ollie f6c01e
Provides:       python3-babel-doc = %{version}-%{release}
Jeffrey C. Ollie f6c01e
Jeffrey C. Ollie f6c01e
%description doc
Jeffrey C. Ollie f6c01e
Documentation for Babel
Jeffrey C. Ollie f6c01e
Jeffrey C. Ollie d18f15
%prep
Jeffrey C. Ollie b05699
%setup0 -q -n Babel-%{version}
Toshio Kuratomi 1cb34c
%patch0 -p1
Toshio Kuratomi 1cb34c
Felix Schwarz 9385b4
chmod a-x babel/messages/frontend.py
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie dd48c7
rm -rf %{py3dir}
Jeffrey C. Ollie dd48c7
cp -r . %{py3dir}
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie d18f15
%build
Jeffrey C. Ollie d18f15
%{__python} setup.py build
Jeffrey C. Ollie d18f15
Felix Schwarz 9385b4
# build the docs and remove all source files (.rst, Makefile) afterwards
Felix Schwarz 9385b4
cd docs
Felix Schwarz 9385b4
make html
Felix Schwarz 9385b4
mv _build/html .
Felix Schwarz 9385b4
rm -rf _* api *.rst conf.py objects.inv Makefile make.bat
Felix Schwarz 9385b4
mv html/* .
Felix Schwarz 9385b4
rm -rf html
Felix Schwarz 9385b4
Jeffrey C. Ollie dd48c7
pushd %{py3dir}
Jeffrey C. Ollie dd48c7
%{__python3} setup.py build
Jeffrey C. Ollie dd48c7
popd
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie d18f15
%install
Jeffrey C. Ollie dd48c7
pushd %{py3dir}
Jeffrey C. Ollie dd48c7
%{__python3} setup.py install --skip-build --no-compile --root %{buildroot}
Toshio Kuratomi 4a520b
mv %{buildroot}/%{_bindir}/pybabel ./pybabel.py3
Jeffrey C. Ollie dd48c7
popd
Jeffrey C. Ollie dd48c7
Nils Philippsen 6fe63e
%{__python} setup.py install --skip-build --no-compile --root %{buildroot}
Nils Philippsen 6fe63e
Nils Philippsen 9a82ec
%if %{default_python} >= 3
Toshio Kuratomi 8e836f
mv %{py3dir}/pybabel.py3 %{buildroot}/%{_bindir}/pybabel
Toshio Kuratomi 4a520b
%endif
Toshio Kuratomi 4a520b
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
%files
Felix Schwarz 9385b4
%doc CHANGES LICENSE README AUTHORS
Jeffrey C. Ollie b05699
%{_bindir}/pybabel
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie d18f15
%files -n python-babel
Jeffrey C. Ollie cac2db
%{python_sitelib}/Babel-%{version}-py*.egg-info
Jeffrey C. Ollie dd48c7
%{python_sitelib}/babel
Jeffrey C. Ollie dd48c7
Jeffrey C. Ollie dd48c7
%files -n python3-babel
Jeffrey C. Ollie b9048d
%{python3_sitelib}/Babel-%{version}-py*.egg-info
Jeffrey C. Ollie b9048d
%{python3_sitelib}/babel
Jeffrey C. Ollie d18f15
Jeffrey C. Ollie f6c01e
%files doc
Felix Schwarz 9385b4
%doc docs/*
Jeffrey C. Ollie f6c01e
Jeffrey C. Ollie d18f15
%changelog
Nils Philippsen 659345
* Mon Apr 25 2016 Nils Philippsen <nils@redhat.com> - 2.3.4-1
Nils Philippsen 659345
- version 2.3.4
Nils Philippsen 9a82ec
- always build Python3 subpackages
Nils Philippsen 1b8102
- remove obsolete packaging constructs
Nils Philippsen 659345
Dennis Gilmore 7ca753
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-12
Dennis Gilmore 7ca753
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
Dennis Gilmore 7ca753
Peter Robinson 8bccf8
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-11
Peter Robinson 8bccf8
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
Peter Robinson 8bccf8
Toshio Kuratomi 3b7d65
* Fri Nov  6 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3-10
Toshio Kuratomi 3b7d65
- Also make sure that the babel package that has pybabel depends on the correct
Toshio Kuratomi 3b7d65
  packages (python2 packages on F23 or less and python3 packages on F24 and
Toshio Kuratomi 3b7d65
  greater.)
Toshio Kuratomi 3b7d65
Toshio Kuratomi 4a520b
* Wed Nov  4 2015 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3-9
Toshio Kuratomi 4a520b
- Install the python3 version of pybabel on Fedora 24+ to match with Fedora's
Toshio Kuratomi 4a520b
  default python version
Toshio Kuratomi 4a520b
Dennis Gilmore b56298
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-8
Dennis Gilmore b56298
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore b56298
Toshio Kuratomi 1cb34c
* Wed Dec 17 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3-7
Toshio Kuratomi 1cb34c
- Remove pytz version requirement in egginfo as it confuses newer setuptools
Toshio Kuratomi 1cb34c
Toshio Kuratomi 515620
* Mon Jun 30 2014 Toshio Kuratomi <toshio@fedoraproject.org> - 1.3-6
Toshio Kuratomi 1cb34c
- Change python-setuptools-devel BR into python-setuptools
Toshio Kuratomi 515620
Dennis Gilmore aca4ca
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
Dennis Gilmore aca4ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore aca4ca
Kalev Lember 633f11
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 1.3-4
Kalev Lember 633f11
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
Kalev Lember 633f11
Nils Philippsen caf2b2
* Wed Apr 02 2014 Nils Philippsen <nils@redhat.com> - 1.3-3
Nils Philippsen caf2b2
- fix dependencies (#1083470)
Nils Philippsen caf2b2
Felix Schwarz 1730ff
* Sun Oct 06 2013 Felix Schwarz <fschwarz@fedoraproject.org> - 1.3-2
Felix Schwarz 1730ff
- enable python3 subpackage
Felix Schwarz 1730ff
Felix Schwarz 9385b4
* Wed Oct 02 2013 Felix Schwarz <fschwarz@fedoraproject.org> - 1.3-1
Felix Schwarz 9385b4
- update to Babel 1.3
Felix Schwarz 9385b4
- disabled %%check as it tries to download the CLDR
Felix Schwarz 9385b4
Dennis Gilmore c2a47e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-9
Dennis Gilmore c2a47e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore c2a47e
Jeffrey C. Ollie f6c01e
* Wed Jun 26 2013 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.6-8
Jeffrey C. Ollie f6c01e
- split documentation off to a separate subpackage
Jeffrey C. Ollie f6c01e
Dennis Gilmore 286888
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-7
Dennis Gilmore 286888
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore 286888
Nils Philippsen 92f5fc
* Thu Oct 18 2012 Nils Philippsen <nils@redhat.com> - 0.9.6-6
Nils Philippsen 92f5fc
- run tests in %%check
Nils Philippsen b6ee32
- add pytz build requirement for tests
Nils Philippsen 92f5fc
David Malcolm 13a752
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 0.9.6-5
David Malcolm 13a752
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
David Malcolm 13a752
Felix Schwarz 597f5b
* Wed Aug 01 2012 Felix Schwarz <felix.schwarz@oss.schwarz.eu> - 0.9.6-4
Felix Schwarz 597f5b
- disable building of non-functional python3 subpackage (#761583)
Felix Schwarz 597f5b
Dennis Gilmore 634fda
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-3
Dennis Gilmore 634fda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 634fda
Dennis Gilmore d97e82
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
Dennis Gilmore d97e82
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore d97e82
Nils Philippsen ca3180
* Tue Jun 07 2011 Nils Philippsen <nils@redhat.com> - 0.9.6-1
Nils Philippsen ca3180
- version 0.9.6:
Nils Philippsen ca3180
  * Backport r493-494: documentation typo fixes.
Nils Philippsen ca3180
  * Make the CLDR import script work with Python 2.7.
Nils Philippsen ca3180
  * Fix various typos.
Nils Philippsen ca3180
  * Fixed Python 2.3 compatibility (ticket #146, #233).
Nils Philippsen ca3180
  * Sort output of list-locales.
Nils Philippsen ca3180
  * Make the POT-Creation-Date of the catalog being updated equal to
Nils Philippsen ca3180
    POT-Creation-Date of the template used to update (ticket #148).
Nils Philippsen ca3180
  * Use a more explicit error message if no option or argument (command) is
Nils Philippsen ca3180
    passed to pybabel (ticket #81).
Nils Philippsen ca3180
  * Keep the PO-Revision-Date if it is not the default value (ticket #148).
Nils Philippsen ca3180
  * Make --no-wrap work by reworking --width's default and mimic xgettext's
Nils Philippsen ca3180
    behaviour of always wrapping comments (ticket #145).
Nils Philippsen ca3180
  * Fixed negative offset handling of Catalog._set_mime_headers (ticket #165).
Nils Philippsen ca3180
  * Add --project and --version options for commandline (ticket #173).
Nils Philippsen ca3180
  * Add a __ne__() method to the Local class.
Nils Philippsen ca3180
  * Explicitly sort instead of using sorted() and don't assume ordering
Nils Philippsen ca3180
    (Python 2.3 and Jython compatibility).
Nils Philippsen ca3180
  * Removed ValueError raising for string formatting message checkers if the
Nils Philippsen ca3180
    string does not contain any string formattings (ticket #150).
Nils Philippsen ca3180
  * Fix Serbian plural forms (ticket #213).
Nils Philippsen ca3180
  * Small speed improvement in format_date() (ticket #216).
Nils Philippsen ca3180
  * Fix number formatting for locales where CLDR specifies alt or draft
Nils Philippsen ca3180
    items (ticket #217)
Nils Philippsen ca3180
  * Fix bad check in format_time (ticket #257, reported with patch and tests by
Nils Philippsen ca3180
    jomae)
Nils Philippsen ca3180
  * Fix so frontend.CommandLineInterface.run does not accumulate logging
Nils Philippsen ca3180
    handlers (#227, reported with initial patch by dfraser)
Nils Philippsen ca3180
  * Fix exception if environment contains an invalid locale setting (#200)
Nils Philippsen 6fe63e
- install python2 rather than python3 executable (#710880)
Nils Philippsen ca3180
Dennis Gilmore caa52e
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.5-4
Dennis Gilmore caa52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore caa52e
Jeffrey C. Ollie dd48c7
* Thu Aug 26 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.5-3
Jeffrey C. Ollie dd48c7
- Add python3 subpackage
Jeffrey C. Ollie dd48c7
dmalcolm b0112a
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.9.5-2
dmalcolm b0112a
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
dmalcolm b0112a
Jeffrey C. Ollie 7c2097
* Wed Apr  7 2010 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.5-1
Jeffrey C. Ollie 7c2097
- This release contains a small number of bugfixes over the 0.9.4
Jeffrey C. Ollie 7c2097
- release.
Nils Philippsen ca3180
-
Jeffrey C. Ollie 7c2097
- What's New:
Jeffrey C. Ollie 7c2097
- -----------
Jeffrey C. Ollie 7c2097
- * Fixed the case where messages containing square brackets would break
Jeffrey C. Ollie 7c2097
-  with an unpack error
Jeffrey C. Ollie 7c2097
- * Fuzzy matching regarding plurals should *NOT* be checked against
Jeffrey C. Ollie 7c2097
-  len(message.id) because this is always 2, instead, it's should be
Jeffrey C. Ollie 7c2097
-  checked against catalog.num_plurals (ticket #212).
Jeffrey C. Ollie 7c2097
Jesse Keating 84bb10
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-5
Jesse Keating 84bb10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
Jesse Keating 84bb10
Robert Scheck 1a8a0b
* Sat Mar 28 2009 Robert Scheck <robert@fedoraproject.org> - 0.9.4-4
Robert Scheck 1a8a0b
- Added missing requires to python-setuptools for pkg_resources
Robert Scheck 1a8a0b
Jesse Keating dcc56b
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-3
Jesse Keating dcc56b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
Jesse Keating dcc56b
Ignacio Vazquez-Abrams 736d13
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.9.4-2
Ignacio Vazquez-Abrams 736d13
- Rebuild for Python 2.6
Ignacio Vazquez-Abrams 736d13
Jeffrey C. Ollie fa564c
* Mon Aug 25 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.4-1
Jeffrey C. Ollie fa564c
- Update to 0.9.4
Jeffrey C. Ollie fa564c
Jeffrey C. Ollie 57b188
* Thu Jul 10 2008 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.3-1
Jeffrey C. Ollie 57b188
- Update to 0.9.3
Jeffrey C. Ollie 57b188
Jeffrey C. Ollie b885ec
* Sun Dec 16 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9.1-1
Jeffrey C. Ollie b885ec
- Update to 0.9.1
Jeffrey C. Ollie b885ec
Jeffrey C. Ollie ff4fe4
* Tue Aug 28 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9-2
Jeffrey C. Ollie ff4fe4
- BR python-setuptools-devel
Jeffrey C. Ollie ff4fe4
Jeffrey C. Ollie c01972
* Mon Aug 27 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.9-1
Jeffrey C. Ollie c01972
- Update to 0.9
Jeffrey C. Ollie c01972
Jeffrey C. Ollie c6b05b
* Mon Jul  2 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8.1-1
Jeffrey C. Ollie c6b05b
- Update to 0.8.1
Jeffrey C. Ollie c6b05b
- Remove upstreamed patch.
Jeffrey C. Ollie c6b05b
Jeffrey C. Ollie 70ba4d
* Fri Jun 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-3
Jeffrey C. Ollie 70ba4d
- Replace patch with one that actually applies.
Jeffrey C. Ollie 70ba4d
Jeffrey C. Ollie b05699
* Fri Jun 29 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-2
Jeffrey C. Ollie b05699
- Apply upstream patch to rename command line script to "pybabel" - BZ#246208
Jeffrey C. Ollie b05699
Jeffrey C. Ollie d18f15
* Thu Jun 21 2007 Jeffrey C. Ollie <jeff@ocjtech.us> - 0.8-1
Jeffrey C. Ollie d18f15
- First version for Fedora
Jeffrey C. Ollie d18f15