Accepting request 729092 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/729092
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-xxhash?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2019-09-09 10:34:14 +00:00 committed by Git OBS Bridge
commit 1abb211cab
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Sep 7 09:57:27 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Link against system libxxhash
- Fix Leap 15 build errors
-------------------------------------------------------------------
Thu Aug 29 13:58:34 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>

View File

@ -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}