diff --git a/License.txt b/License.txt new file mode 100644 index 0000000..e023dc7 --- /dev/null +++ b/License.txt @@ -0,0 +1,23 @@ +Copyright (c) 2013-2015, Kevin Greenan (kmgreen2@gmail.com) +Copyright (c) 2013-2015, Tushar Gohad (tusharsg@gmail.com) +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +Redistributions of source code must retain the above copyright notice, this +list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright notice, this +list of conditions and the following disclaimer in the documentation and/or +other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY +THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED +WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, +BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/pyeclib-1.5.0.tar.gz b/pyeclib-1.5.0.tar.gz deleted file mode 100644 index d1d844b..0000000 --- a/pyeclib-1.5.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a201f2d3d4b925e1e54443cb251432809a59eeae50e9b85693ca0047c8ec9023 -size 6682493 diff --git a/pyeclib-1.6.0.tar.gz b/pyeclib-1.6.0.tar.gz new file mode 100644 index 0000000..3e1dc87 --- /dev/null +++ b/pyeclib-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8011e31ee89ae7fb99ca6916660c87e0108466a9962bd497a3001020974e3bb1 +size 6685306 diff --git a/python-PyECLib.changes b/python-PyECLib.changes index fb9f6cc..cc1447f 100644 --- a/python-PyECLib.changes +++ b/python-PyECLib.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Tue Jun 18 08:45:55 UTC 2019 - Tomáš Chvátal + +- Update to 1.6.0: + * Find liberasurecode in more environments + * Test against Python 3.7 + * Test with more backends +- Switch to singlespec + ------------------------------------------------------------------- Tue Oct 24 10:15:34 UTC 2017 - dmueller@suse.com diff --git a/python-PyECLib.spec b/python-PyECLib.spec index 2d65518..2a04038 100644 --- a/python-PyECLib.spec +++ b/python-PyECLib.spec @@ -1,7 +1,7 @@ # # spec file for package python-PyECLib # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,22 +12,26 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-PyECLib -Version: 1.5.0 +Version: 1.6.0 Release: 0 Summary: Simple interface for implementing erasure codes License: BSD-3-Clause Group: Development/Languages/Python -Url: http://git.openstack.org/cgit/openstack/pyeclib/ -Source: https://files.pythonhosted.org/packages/source/P/PyECLib/pyeclib-%{version}.tar.gz +URL: http://git.openstack.org/cgit/openstack/pyeclib/ +Source: https://files.pythonhosted.org/packages/source/p/pyeclib/pyeclib-%{version}.tar.gz +Source99: https://opendev.org/openstack/pyeclib/raw/branch/master/License.txt +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes BuildRequires: liberasurecode-devel >= 1.4.0 -BuildRequires: openstack-macros -BuildRequires: python-devel -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros +%python_subpackages %description This library makes use of Jesasure for Reed-Solomon as implemented by the @@ -39,22 +43,23 @@ codes are well-suited to archival use-cases, have a simple construction and require a minimum number of participating disks during single-disk reconstruction (think XOR-based LRC code). - %prep %setup -q -n pyeclib-%{version} +cp %{SOURCE99} . %build -CFLAGS="%{optflags}" %{__python2} setup.py build +%python_build %install -%{__python2} setup.py install --skip-build --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%{__python2} setup.py test +%python_exec setup.py test -%files -%{python2_sitearch}/pyeclib -%{python2_sitearch}/pyeclib_c.so -%{python2_sitearch}/pyeclib*egg-info +%files %{python_files} +%doc README.rst +%license License.txt +%{python_sitearch}/pyeclib* %changelog