!1 Add spec and source packages

From: @li-mingzhou
Reviewed-by: 
Signed-off-by:
This commit is contained in:
openeuler-ci-bot 2021-08-18 02:04:49 +00:00 committed by Gitee
commit 31980be6e6
2 changed files with 49 additions and 0 deletions

BIN
pyeclib-1.3.1.tar.gz Normal file

Binary file not shown.

49
python-pyeclib.spec Normal file
View File

@ -0,0 +1,49 @@
%global _empty_manifest_terminate_build 0
Name: python-pyeclib
Version: 1.3.1
Release: 1
Summary: Python interface to erasure codes
License: BSD
URL: http://git.openstack.org/cgit/openstack/pyeclib/
Source0: https://files.pythonhosted.org/packages/bf/87/bfec569d085a8b0c5b197687ed5514d394787c6027b3776458056d87b06a/pyeclib-1.3.1.tar.gz
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: liberasurecode-devel
%description
This library provides a simple Python interface for implementing erasure
codes. A number of back-end implementations is supported either directly
or through the C interface liberasurecode.
%package -n python3-pyeclib
Summary: This library provides a simple Python interface for implementing erasure codes.
Provides: python-pyeclib
Requires: liberasurecode
%description -n python3-pyeclib
This is v0.9 of PyECLib. This library provides a simple Python interface for implementing erasure codes and is known to work with Python v2.6, 2.7 and 3.x.
%prep
%autosetup -n pyeclib-%{version}
%build
%py3_build
%install
%py3_install
%check
%{__python3} setup.py test
%files -n python3-pyeclib
%{python3_sitearch}/pyeclib*
%changelog
* Sat Jul 31 2021 OpenStack_SIG <openstack@openeuler.org> - 1.3.1-1
- Package init