From 2556f7298864cfe5076e2c457218e6ef2f241751c5eb0c7305008f56a3a9a95f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Jan 2020 08:46:51 +0000 Subject: [PATCH] Accepting request 765702 from devel:languages:python:mailman:backports - fix build in SLE-15: set en_US.UTF-8 encoding OBS-URL: https://build.opensuse.org/request/show/765702 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-authheaders?expand=0&rev=3 --- python-authheaders.changes | 5 +++++ python-authheaders.spec | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/python-authheaders.changes b/python-authheaders.changes index 02e6125..0662e4e 100644 --- a/python-authheaders.changes +++ b/python-authheaders.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Jan 10 17:54:29 UTC 2020 - pgajdos@suse.com + +- fix build in SLE-15: set en_US.UTF-8 encoding + ------------------------------------------------------------------- Mon Dec 2 10:47:09 UTC 2019 - pgajdos@suse.com diff --git a/python-authheaders.spec b/python-authheaders.spec index 9fe7f94..33b7e51 100644 --- a/python-authheaders.spec +++ b/python-authheaders.spec @@ -1,7 +1,7 @@ # # spec file for package python-authheaders # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,6 +28,9 @@ Source: https://files.pythonhosted.org/packages/source/a/authheaders/aut BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if 0%{?suse_version} <= 1500 +BuildRequires: %{python_module cffi} +%endif Requires: python-authres >= 1.0.1 Requires: python-dkimpy >= 0.7.1 Requires: python-dnspython @@ -49,6 +52,7 @@ A library wrapping email authentication header verification and generation. %setup -q -n authheaders-%{version} %build +LANG=en_US.UTF-8 %python_build %install @@ -56,6 +60,7 @@ A library wrapping email authentication header verification and generation. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +LANG=en_US.UTF-8 %pytest %files %{python_files}