2022-12-22 10:18:23 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pyzstd
|
|
|
|
#
|
2023-04-07 12:24:29 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2022-12-22 10:18:23 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
2023-06-27 15:41:06 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2022-12-22 10:18:23 +00:00
|
|
|
Name: python-pyzstd
|
Accepting request 1099794 from home:ateixeira:branches:devel:languages:python
- Update to 0.15.9
- ZstdFile class related changes:
* Add SeekableZstdFile class, it's a subclass of ZstdFile, supports
Zstandard Seekable Format.
* Add mode argument to ZstdFile.flush() method, now it can flush
a zstd frame.
* Add read_size and write_size arguments to ZstdFile.__init__()
method, can work with Network File Systems better.
* Optimize ZstdFile performance to C language level.
- Changes from 0.15.7
- ZstdDict class changes:
* Fix these advanced compression parameters may be ignored when
loading a dictionary: windowLog, hashLog, chainLog, searchLog,
minMatch, targetLength, strategy, enableLongDistanceMatching,
ldmHashLog, ldmMinMatch, ldmBucketSizeLog, ldmHashRateLog,
and some non-public parameters.
* When compressing, load undigested dictionary instead of digested
dictionary by default. Loading again an undigested is slower, see
differences.
* Add .as_prefix attribute. Can use zstd as a patching engine.
OBS-URL: https://build.opensuse.org/request/show/1099794
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzstd?expand=0&rev=7
2023-07-21 07:00:06 +00:00
|
|
|
Version: 0.15.9
|
2022-12-22 10:18:23 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings to Zstandard (zstd) compression library
|
|
|
|
License: BSD-3-Clause
|
|
|
|
URL: https://github.com/animalize/pyzstd
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pyzstd/pyzstd-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module devel >= 3.5}
|
|
|
|
BuildRequires: %{python_module pip}
|
2023-04-07 12:24:29 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-12-22 10:18:23 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: libzstd-devel >= 1.4.0
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
%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.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitearch}/pyzstd
|
|
|
|
%{python_sitearch}/pyzstd-%{version}.dist-info
|
|
|
|
|
|
|
|
%changelog
|