diff options
author | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:26:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-03-09 15:26:49 +0000 |
commit | a5c778435ecd4d329bdc4eeea29c70041f88f860 (patch) | |
tree | 3927e5cd0941ad3fd435d71f073468772f3214c3 | |
parent | 1104cfeeea174d1418ae094ba9444d6def2f1ca9 (diff) |
automatic import of python-pyeclib
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pyeclib.spec | 105 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 107 insertions, 0 deletions
@@ -0,0 +1 @@ +/pyeclib-1.6.1.tar.gz diff --git a/python-pyeclib.spec b/python-pyeclib.spec new file mode 100644 index 0000000..c5860f8 --- /dev/null +++ b/python-pyeclib.spec @@ -0,0 +1,105 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyeclib +Version: 1.6.1 +Release: 1 +Summary: This library provides a simple Python interface for implementing erasure codes. To obtain the best possible performance, the underlying erasure code algorithms are written in C. +License: BSD +URL: https://opendev.org/openstack/pyeclib +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/c8/9a/3c4362db5f46d5b1391b5fe827d070fe247674d503f98938aef0805f249d/pyeclib-1.6.1.tar.gz +BuildArch: noarch + + +%description +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. To obtain the best possible +performance, the library utilizes liberasurecode, which is a C based erasure +code library. +PyECLib supports a variety of Erasure Coding backends including the standard +Reed-Solomon implementations provided by Jerasure [1], liberasurecode [3], +Intel's ISA-L [4] and Phazr.IO's libphazr. It also provides support for a flat +XOR-based encoder and decoder (part of liberasurecode) - a class of HD +Combination Codes based on "Flat XOR-based erasure codes in storage systems: +Constructions, efficient recovery, and tradeoffs" in IEEE MSST 2010[2]). +These codes are well-suited to archival use-cases, have a simple construction +and require a minimum number of participating disks during single-disk + +%package -n python3-pyeclib +Summary: This library provides a simple Python interface for implementing erasure codes. To obtain the best possible performance, the underlying erasure code algorithms are written in C. +Provides: python-pyeclib +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-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. To obtain the best possible +performance, the library utilizes liberasurecode, which is a C based erasure +code library. +PyECLib supports a variety of Erasure Coding backends including the standard +Reed-Solomon implementations provided by Jerasure [1], liberasurecode [3], +Intel's ISA-L [4] and Phazr.IO's libphazr. It also provides support for a flat +XOR-based encoder and decoder (part of liberasurecode) - a class of HD +Combination Codes based on "Flat XOR-based erasure codes in storage systems: +Constructions, efficient recovery, and tradeoffs" in IEEE MSST 2010[2]). +These codes are well-suited to archival use-cases, have a simple construction +and require a minimum number of participating disks during single-disk + +%package help +Summary: Development documents and examples for pyeclib +Provides: python3-pyeclib-doc +%description help +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. To obtain the best possible +performance, the library utilizes liberasurecode, which is a C based erasure +code library. +PyECLib supports a variety of Erasure Coding backends including the standard +Reed-Solomon implementations provided by Jerasure [1], liberasurecode [3], +Intel's ISA-L [4] and Phazr.IO's libphazr. It also provides support for a flat +XOR-based encoder and decoder (part of liberasurecode) - a class of HD +Combination Codes based on "Flat XOR-based erasure codes in storage systems: +Constructions, efficient recovery, and tradeoffs" in IEEE MSST 2010[2]). +These codes are well-suited to archival use-cases, have a simple construction +and require a minimum number of participating disks during single-disk + +%prep +%autosetup -n pyeclib-1.6.1 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-pyeclib -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 1.6.1-1 +- Package Spec generated @@ -0,0 +1 @@ +fc8321029af26ed31fc8c0e0760f2909 pyeclib-1.6.1.tar.gz |