14
0
forked from pool/python-xxhash

2 Commits

2 changed files with 4 additions and 11 deletions

View File

@@ -1,8 +1,3 @@
-------------------------------------------------------------------
Fri May 2 03:21:18 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 10 14:36:39 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com> Thu Oct 10 14:36:39 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-xxhash # spec file for package python-xxhash
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -25,10 +25,8 @@ License: BSD-2-Clause
URL: https://github.com/ifduyue/python-xxhash URL: https://github.com/ifduyue/python-xxhash
Source: https://files.pythonhosted.org/packages/source/x/xxhash/xxhash-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/x/xxhash/xxhash-%{version}.tar.gz
BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module devel >= 3.7}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools_scm}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildRequires: xxhash-devel BuildRequires: xxhash-devel
@@ -44,12 +42,12 @@ xxhash is a Python binding for the xxHash library.
export CFLAGS="%{optflags} -fno-strict-aliasing" export CFLAGS="%{optflags} -fno-strict-aliasing"
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export XXHASH_LINK_SO=1 export XXHASH_LINK_SO=1
%pyproject_wheel %python_build
%install %install
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
export XXHASH_LINK_SO=1 export XXHASH_LINK_SO=1
%pyproject_install %python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch} %python_expand %fdupes %{buildroot}%{$python_sitearch}
%check %check
@@ -63,6 +61,6 @@ mv xxhash{.hide,}
%doc README.rst %doc README.rst
%license LICENSE %license LICENSE
%{python_sitearch}/xxhash %{python_sitearch}/xxhash
%{python_sitearch}/xxhash-%{version}.dist-info %{python_sitearch}/xxhash-%{version}*-info
%changelog %changelog