From 838383be732247fba9a32f737cc326afc8611583af7a32b4f9f88da1f6fb1599 Mon Sep 17 00:00:00 2001 From: Alberto Planas Dominguez Date: Tue, 27 Feb 2018 12:39:14 +0000 Subject: [PATCH] Accepting request 580582 from home:aplanas:branches:devel:languages:python - Export TZ and LC_ALL before running the tests. Without this python-Babel is not able to see the TZ variable, and produce a `local` LOCALTZ OBS-URL: https://build.opensuse.org/request/show/580582 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=37 --- python-Babel-doc.spec | 2 +- python-Babel.changes | 7 +++++++ python-Babel.spec | 6 ++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/python-Babel-doc.spec b/python-Babel-doc.spec index 38f92d1..ec02bb6 100644 --- a/python-Babel-doc.spec +++ b/python-Babel-doc.spec @@ -1,7 +1,7 @@ # # spec file for package python-Babel-doc # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 diff --git a/python-Babel.changes b/python-Babel.changes index e719420..f6f02a8 100644 --- a/python-Babel.changes +++ b/python-Babel.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 27 12:28:43 UTC 2018 - aplanas@suse.com + +- Export TZ and LC_ALL before running the tests. Without this + python-Babel is not able to see the TZ variable, and produce + a `local` LOCALTZ + ------------------------------------------------------------------- Thu Oct 5 16:04:48 UTC 2017 - arun@gmx.de diff --git a/python-Babel.spec b/python-Babel.spec index 64ae2b1..f978bec 100644 --- a/python-Babel.spec +++ b/python-Babel.spec @@ -1,7 +1,7 @@ # # spec file for package python-Babel # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -66,7 +66,9 @@ A collection of tools for internationalizing Python applications. %python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check -TZ=UTC LC_ALL=C %python_exec %{_bindir}/py.test tests +export TZ=UTC +export LC_ALL=C +%python_exec %{_bindir}/py.test tests %pre # Since /usr/bin/pybabel became ghosted to be used with update-alternatives, we have to get rid