From 29f0b8d31f46ae2da2e41e71b63302cd4f561a28a2214150ed88d94a5815efe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 20 Jul 2018 10:34:25 +0000 Subject: [PATCH] - Version update to 2.0.2: * Tests moved to pytest * Upstream does not provide changelog except git log * Many tests were added fixing various crashes - Enable tests OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lz4?expand=0&rev=8 --- lz4-0.10.1.tar.gz | 3 --- lz4-2.0.2.tar.gz | 3 +++ python-lz4.changes | 9 +++++++++ python-lz4.spec | 27 +++++++++++++++++++-------- 4 files changed, 31 insertions(+), 11 deletions(-) delete mode 100644 lz4-0.10.1.tar.gz create mode 100644 lz4-2.0.2.tar.gz diff --git a/lz4-0.10.1.tar.gz b/lz4-0.10.1.tar.gz deleted file mode 100644 index 33550e8..0000000 --- a/lz4-0.10.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0423290a6e89c1789525a7e9d344d877c7a97102cf5c0f99b2319ac560f1b3e -size 92068 diff --git a/lz4-2.0.2.tar.gz b/lz4-2.0.2.tar.gz new file mode 100644 index 0000000..7611e22 --- /dev/null +++ b/lz4-2.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b039a3ca91945062503c0c934fe18131d4997f7becfa3020bf93c56a1c4a0e8 +size 126137 diff --git a/python-lz4.changes b/python-lz4.changes index 33621a0..e6a7348 100644 --- a/python-lz4.changes +++ b/python-lz4.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jul 20 08:09:49 UTC 2018 - tchvatal@suse.com + +- Version update to 2.0.2: + * Tests moved to pytest + * Upstream does not provide changelog except git log + * Many tests were added fixing various crashes +- Enable tests + ------------------------------------------------------------------- Fri Jul 21 08:27:32 UTC 2017 - aloisio@gmx.com diff --git a/python-lz4.spec b/python-lz4.spec index 0bb62cb..9f2d9df 100644 --- a/python-lz4.spec +++ b/python-lz4.spec @@ -1,7 +1,7 @@ # # spec file for package python-lz4 # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,20 +19,26 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define modname lz4 Name: python-%{modname} -Version: 0.10.1 +Version: 2.0.2 Release: 0 Summary: LZ4 Bindings for Python License: BSD-3-Clause Group: Development/Languages/Python -Url: https://github.com/steeve/python-lz4 -Source: https://files.pythonhosted.org/packages/source/l/%{modname}/%{modname}-%{version}.tar.gz +URL: https://github.com/python-lz4/python-lz4 +Source: https://files.pythonhosted.org/packages/source/l/lz4/%{modname}-%{version}.tar.gz BuildRequires: %{python_module devel} -BuildRequires: %{python_module nose} +BuildRequires: %{python_module pkgconfig} +BuildRequires: %{python_module psutil} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +Requires: python-psutil BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build - +BuildRequires: python2-future +%ifpython2 +Requires: python2-future +%endif %python_subpackages %description @@ -40,6 +46,8 @@ This package provides python bindings for the lz4 compression library %prep %setup -q -n %{modname}-%{version} +# do not set -O3 +sed -i -e '/-O3/d' setup.py %build export CFLAGS="%{optflags}" @@ -48,8 +56,11 @@ export CFLAGS="%{optflags}" %install %python_install +%check +%python_exec setup.py test + %files %{python_files} -%defattr(-,root,root,-) +%license LICENSE %doc README.rst %{python_sitearch}/%{modname}/ %{python_sitearch}/%{modname}-%{version}-py*.egg-info/