Hello community, here is the log from the commit of package python3-Babel for openSUSE:Factory checked in at 2015-05-30 12:33:11 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-Babel (Old) and /work/SRC/openSUSE:Factory/.python3-Babel.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-Babel" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-Babel/python3-Babel.changes 2015-02-05 11:00:52.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-Babel.new/python3-Babel.changes 2015-05-30 12:33:12.000000000 +0200 @@ -1,0 +2,8 @@ +Sat May 23 08:56:00 UTC 2015 - benoit.mo...@gmx.fr + +- update project URL +- add skip-dst-tests.patch: drop DST related tests (workaround + issue #156) +- fix update-alternatives + +------------------------------------------------------------------- New: ---- skip-dst-tests.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-Babel.spec ++++++ --- /var/tmp/diff_new_pack.OnyTPT/_old 2015-05-30 12:33:13.000000000 +0200 +++ /var/tmp/diff_new_pack.OnyTPT/_new 2015-05-30 12:33:13.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package python3-Babel # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,13 +19,15 @@ Name: python3-Babel Version: 1.3 Release: 0 -Url: http://babel.edgewall.org/ +Url: http://babel.pocoo.org/ Summary: Internationalization utilities License: BSD-3-Clause Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/B/Babel/Babel-%{version}.tar.gz # PATCH-FIX-OPENSUSE fix-timezone-test.patch (taken from upstream) Patch0: fix-timezone-test.patch +# PATCH-FIX-OPENSUSE skip-dst-tests.patch -- drop DST related tests (#156) +Patch1: skip-dst-tests.patch BuildRequires: fdupes BuildRequires: python3-devel >= 3.3 BuildRequires: python3-setuptools @@ -46,6 +48,7 @@ %prep %setup -q -n Babel-%{version} %patch0 -p0 +%patch1 -p1 sed -i "s/pybabel =/pybabel-%{py3_ver} =/" setup.py %build @@ -54,7 +57,11 @@ %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} -ln -s %{_bindir}/pybabel-%{py3_ver} %{buildroot}%{_bindir}/pybabel + +mkdir -p %{buildroot}%{_sysconfdir}/alternatives +touch %{buildroot}%{_sysconfdir}/alternatives/pybabel +ln -sf %{_sysconfdir}/alternatives/pybabel %{buildroot}%{_bindir}/pybabel + %fdupes -s %{buildroot}%{python_sitelib} %check @@ -68,7 +75,7 @@ %post update-alternatives --install %{_bindir}/pybabel pybabel %{_bindir}/pybabel-%{py3_ver} 30 -%preun +%postun if [ $1 -eq 0 ] ; then update-alternatives --remove pybabel %{_bindir}/pybabel-%{py3_ver} fi @@ -76,7 +83,8 @@ %files %defattr(-,root,root,-) %doc LICENSE CHANGES README build/sphinx/html -%ghost %{_bindir}/pybabel +%ghost %{_sysconfdir}/alternatives/pybabel +%{_bindir}/pybabel %{_bindir}/pybabel-%{py3_ver} %{python3_sitelib}/* ++++++ skip-dst-tests.patch ++++++ Index: Babel-1.3/tests/test_dates.py =================================================================== --- Babel-1.3.orig/tests/test_dates.py +++ Babel-1.3/tests/test_dates.py @@ -175,18 +175,6 @@ class DateTimeFormatTestCase(unittest.Te fmt = dates.DateTimeFormat(d, locale='en_US') self.assertEqual('0000', fmt['AAAA']) - def test_timezone_rfc822(self): - tz = timezone('Europe/Berlin') - t = time(15, 30, tzinfo=tz) - fmt = dates.DateTimeFormat(t, locale='de_DE') - self.assertEqual('+0100', fmt['Z']) - - def test_timezone_gmt(self): - tz = timezone('Europe/Berlin') - t = time(15, 30, tzinfo=tz) - fmt = dates.DateTimeFormat(t, locale='de_DE') - self.assertEqual('GMT+01:00', fmt['ZZZZ']) - def test_timezone_name(self): tz = timezone('Europe/Paris') dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz) @@ -379,13 +367,6 @@ def test_get_timezone_gmt(): dt = datetime(2007, 4, 1, 15, 30) assert dates.get_timezone_gmt(dt, locale='en') == u'GMT+00:00' - tz = timezone('America/Los_Angeles') - dt = datetime(2007, 4, 1, 15, 30, tzinfo=tz) - assert dates.get_timezone_gmt(dt, locale='en') == u'GMT-08:00' - assert dates.get_timezone_gmt(dt, 'short', locale='en') == u'-0800' - - assert dates.get_timezone_gmt(dt, 'long', locale='fr_FR') == u'UTC-08:00' - def test_get_timezone_location(): tz = timezone('America/St_Johns')