- Update to 0.17.0 * Upgrade zstd source code from v1.5.6 to v1.5.7 * Raise an exception when attempting to decompress empty data * Add `ZstdFile.name` property * Deprecate `(de)compress_stream` functions * Use a leading `_` for private objects * Build wheels for Windows ARM64 * Support for PyPy 3.11 - Update BuildRequires and Requires from setup.py OBS-URL: https://build.opensuse.org/request/show/1278681 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzstd?expand=0&rev=13
69 lines
2.2 KiB
RPMSpec
69 lines
2.2 KiB
RPMSpec
#
|
|
# spec file for package python-pyzstd
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-pyzstd
|
|
Version: 0.17.0
|
|
Release: 0
|
|
Summary: Python bindings to Zstandard (zstd) compression library
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/Rogdham/pyzstd
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyzstd/pyzstd-%{version}.tar.gz
|
|
BuildRequires: %{python_module devel >= 3.5}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module typing_extensions >= 4.13.2}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: libzstd-devel >= 1.4.0
|
|
BuildRequires: python-rpm-macros
|
|
Requires: (python-typing_extensions >= 4.13.2 if python-base < 3.13)
|
|
%python_subpackages
|
|
|
|
%description
|
|
Pyzstd module provides classes and functions for compressing and decompressing data,
|
|
using Facebook's Zstandard (or zstd as short name) algorithm.
|
|
|
|
The API is similar to Python's bz2/lzma/zlib modules.
|
|
|
|
%prep
|
|
%setup -q -n pyzstd-%{version}
|
|
# make sure we link dynamically, cannot use command line argument to pip wheel
|
|
# gh#animalize/pyzstd#18
|
|
rm -r zstd
|
|
sed -i "s/has_option('--dynamic-link-zstd')/True/" setup.py
|
|
|
|
%build
|
|
export CFLAGS="%{optflags}"
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pyunittest_arch discover -v tests
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitearch}/pyzstd
|
|
%{python_sitearch}/pyzstd-%{version}.dist-info
|
|
|
|
%changelog
|