From ea0bb243f79b0a71474c9d48ffd3700a3671b846cf6c65f47faf78dede345bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Sat, 7 Sep 2019 10:00:14 +0000 Subject: [PATCH] Accepting request 729091 from home:jayvdb:branches:devel:languages:python Link against system libxxhash Fix Leap 15 build errors OBS-URL: https://build.opensuse.org/request/show/729091 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xxhash?expand=0&rev=9 --- python-xxhash.changes | 6 ++++++ python-xxhash.spec | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/python-xxhash.changes b/python-xxhash.changes index c530e4c..129ab96 100644 --- a/python-xxhash.changes +++ b/python-xxhash.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Sep 7 09:57:27 UTC 2019 - John Vandenberg + +- Link against system libxxhash +- Fix Leap 15 build errors + ------------------------------------------------------------------- Thu Aug 29 13:58:34 UTC 2019 - Marketa Calabkova diff --git a/python-xxhash.spec b/python-xxhash.spec index ad9522f..5dea0b4 100644 --- a/python-xxhash.spec +++ b/python-xxhash.spec @@ -29,7 +29,7 @@ BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: unzip +BuildRequires: xxhash-devel # SECTION test requirements BuildRequires: %{python_module nose > 1.3.0} # /SECTION @@ -43,13 +43,19 @@ xxhash is a Python binding for the xxHash library. %build export CFLAGS="%{optflags} -fno-strict-aliasing" +export LANG=en_US.UTF-8 +export XXHASH_LINK_SO=1 %python_build %install +export LANG=en_US.UTF-8 +export XXHASH_LINK_SO=1 %python_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check +export LANG=en_US.UTF-8 +export XXHASH_LINK_SO=1 %python_exec setup.py test %files %{python_files}