diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..7f34ee8 --- /dev/null +++ b/_constraints @@ -0,0 +1,7 @@ + + + + 4000 + + + diff --git a/lz4-2.1.10.tar.gz b/lz4-2.1.10.tar.gz deleted file mode 100644 index 96a535d..0000000 --- a/lz4-2.1.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db4ac5a9b54d6d6b5bb0d6f9b77790f1460e2aeb37cd8ec76c96fe78aaf4a2a8 -size 138372 diff --git a/lz4-3.0.2.tar.gz b/lz4-3.0.2.tar.gz new file mode 100644 index 0000000..0b5ef79 --- /dev/null +++ b/lz4-3.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c9f6a8b71c18c24bd83537a4d616f0301623a5e98db7c7ca956d608e1bcd4c7 +size 152443 diff --git a/python-lz4.changes b/python-lz4.changes index 4a75887..4fba4ac 100644 --- a/python-lz4.changes +++ b/python-lz4.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Apr 15 08:43:23 UTC 2020 - pgajdos@suse.com + +- version update to 3.0.2 + * Remove dead code + * Drop Python 2 support, add streams bindings, improve frame performance +- use system lz4 + ------------------------------------------------------------------- Mon Jun 17 11:57:13 UTC 2019 - Tomáš Chvátal diff --git a/python-lz4.spec b/python-lz4.spec index fa88ff8..5c720f1 100644 --- a/python-lz4.spec +++ b/python-lz4.spec @@ -1,7 +1,7 @@ # # spec file for package python-lz4 # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,8 +17,9 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 Name: python-lz4 -Version: 2.1.10 +Version: 3.0.2 Release: 0 Summary: LZ4 Bindings for Python License: BSD-3-Clause @@ -34,12 +35,9 @@ BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: liblz4-devel BuildRequires: python-rpm-macros -BuildRequires: python2-future Requires: python-psutil -%ifpython2 -Requires: python2-future -%endif %python_subpackages %description @@ -51,6 +49,8 @@ This package provides python bindings for the lz4 compression library. sed -i -e '/-O3/d' setup.py %build +# not neccessary, but ensure we use system lib +rm -r lz4libs export CFLAGS="%{optflags}" %python_build @@ -59,8 +59,11 @@ export CFLAGS="%{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -# tests get stuck -#%%pytest_arch +# unit tests should be quick: +# test_block_decompress_mem_usage, test_1, test_2 +# or require less memory: +# test_huge*, test_invalid_config* +%pytest_arch -k 'not (test_1 or test_2 or test_block_decompress_mem_usage or test_huge or test_invalid_config)' %files %{python_files} %license LICENSE