2018-01-10 13:23:14 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-xxhash
|
|
|
|
#
|
2020-02-04 19:25:34 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-01-10 13:23:14 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-03-26 11:20:11 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2018-01-10 13:23:14 +01:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-xxhash
|
2020-08-24 07:04:59 +02:00
|
|
|
Version: 2.0.0
|
2018-01-10 13:23:14 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python binding for xxHash
|
2019-03-26 11:20:11 +01:00
|
|
|
License: BSD-2-Clause
|
2019-08-30 02:48:48 +02:00
|
|
|
URL: https://github.com/ifduyue/python-xxhash
|
2019-03-26 11:20:11 +01:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/x/xxhash/xxhash-%{version}.tar.gz
|
2018-01-10 13:23:14 +01:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-08-30 02:48:48 +02:00
|
|
|
BuildRequires: fdupes
|
2019-03-26 11:20:11 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-09-07 12:00:14 +02:00
|
|
|
BuildRequires: xxhash-devel
|
2018-01-10 13:23:14 +01:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
xxhash is a Python binding for the xxHash library.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n xxhash-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2019-09-07 12:00:14 +02:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export XXHASH_LINK_SO=1
|
2018-01-10 13:23:14 +01:00
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
2019-09-07 12:00:14 +02:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export XXHASH_LINK_SO=1
|
2018-01-10 13:23:14 +01:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
|
|
|
|
%check
|
2019-09-07 12:00:14 +02:00
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export XXHASH_LINK_SO=1
|
2018-01-10 13:23:14 +01:00
|
|
|
%python_exec setup.py test
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitearch}/*
|
|
|
|
|
|
|
|
%changelog
|