forked from pool/python-PyECLib
- Update to 1.6.0:
* Find liberasurecode in more environments * Test against Python 3.7 * Test with more backends - Switch to singlespec OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyECLib?expand=0&rev=6
This commit is contained in:
committed by
Git OBS Bridge
parent
9aae855832
commit
50e37bf440
@@ -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
|
||||
|
Reference in New Issue
Block a user