File python-PyECLib.spec of Package python-PyECLib
#
# spec file for package python-PyECLib
#
# Copyright (c) 2015 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
# 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 http://bugs.opensuse.org/
#
Name: python-PyECLib
Version: 1.0.7
Release: 0
Summary: Simple python interface for implementing erasure codes
License: BSD-3-Clause
Group: Development/Languages/Python
Url: https://bitbucket.org/kmgreen2/pyeclib
Source: https://bitbucket.org/kmgreen2/pyeclib/get/v%{version}.tar.gz
Patch0: fix-setuppy.patch
BuildRequires: gf-complete-devel
BuildRequires: jerasure-devel
BuildRequires: liberasurecode-devel
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: libJerasure2
Requires: liberasurecode1
Requires: libgf_complete1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%endif
%description
This library makes use of Jesasure for Reed-Solomon as implemented by the
liberasurecode library and provides its' own flat XOR-based erasure code
encoder and decoder. Currently, it implements a specific class of HD
Combination Codes (see "Flat XOR-based erasure codes in storage systems:
Constructions, efficient recovery, and tradeoffs" in IEEE MSST 2010). These
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 kmgreen2-pyeclib-aa58aa887c23
%patch0 -p1
%build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --skip-build --root=%{buildroot}
%check
#python setup.py test
%files
%defattr(-,root,root,-)
%doc README
%{python_sitearch}/*
%changelog