From 90422c67c6a11fb954e276428f9119e459fb047270483fee87d8aa6614341632 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:17:57 +0000 Subject: [PATCH] - Switch to pyproject macros. - Explicitly list files and directories in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyECLib?expand=0&rev=16 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + LICENSE | 23 +++++++++++ pyeclib-1.6.1.tar.gz | 3 ++ pyeclib-1.6.4.tar.gz | 3 ++ python-PyECLib.changes | 86 ++++++++++++++++++++++++++++++++++++++++++ python-PyECLib.spec | 68 +++++++++++++++++++++++++++++++++ 7 files changed, 207 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 pyeclib-1.6.1.tar.gz create mode 100644 pyeclib-1.6.4.tar.gz create mode 100644 python-PyECLib.changes create mode 100644 python-PyECLib.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e023dc7 --- /dev/null +++ b/LICENSE @@ -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.6.1.tar.gz b/pyeclib-1.6.1.tar.gz new file mode 100644 index 0000000..b8f76ed --- /dev/null +++ b/pyeclib-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a364cefb59c06d0b57e87f0ab7a184b28828220d1c218c4c1c594d5af6ceb9d +size 6690168 diff --git a/pyeclib-1.6.4.tar.gz b/pyeclib-1.6.4.tar.gz new file mode 100644 index 0000000..c7b6dc5 --- /dev/null +++ b/pyeclib-1.6.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8c58ebbcc3fa6249649bc86dba32e9a78349fee17a43b6a0131e874334b2085 +size 50928 diff --git a/python-PyECLib.changes b/python-PyECLib.changes new file mode 100644 index 0000000..d74e592 --- /dev/null +++ b/python-PyECLib.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Wed Jun 11 05:53:18 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- Explicitly list files and directories in %files. + +------------------------------------------------------------------- +Mon Apr 28 16:46:48 UTC 2025 - Dirk Müller + +- update to 1.6.4: + * Binary wheels support a broader range of processors. + * Only destroy liberasurecode descriptors on liberasurecode + versions where it should be safe to do so. + +------------------------------------------------------------------- +Thu May 5 04:58:38 UTC 2022 - Steve Kowalik + +- Update to 1.6.1: + * Deprecate Jerasure support + * Use Py_ssize_t when calling PyArg_Parse + * Test against Python 3.8 - 3.10 + * Use the Python Stable ABI + * Various other minor bugs fixes and improvements +- Stop skipping Python 3.10 +- Update the license file location + +------------------------------------------------------------------- +Tue Jan 11 10:14:08 UTC 2022 - Dirk Müller + +- skip python 3.10 for now + +------------------------------------------------------------------- +Mon Nov 8 10:40:16 UTC 2021 - Dirk Müller + +- six is needed by testsuite + +------------------------------------------------------------------- +Thu Jun 3 10:34:02 UTC 2021 - pgajdos@suse.com + +- use %pyunittest_arch rpm macro + +------------------------------------------------------------------- +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 + +- update to 1.5.0: + * bugfixes + * add support for Phazr.IO's erasure code library with built-in privacy + +------------------------------------------------------------------- +Sat Jan 7 15:09:25 UTC 2017 - dmueller@suse.com + +- update to 1.4.0 + +------------------------------------------------------------------- +Sun Oct 9 14:05:25 UTC 2016 - dmueller@suse.com + +- update to 1.3.1: + * no changelog available +- enable tests + +------------------------------------------------------------------- +Mon Feb 29 13:41:42 UTC 2016 - dmueller@suse.com + +- update to 1.2.0: + * no changelog available + +------------------------------------------------------------------- +Wed Aug 5 07:38:13 UTC 2015 - tbechtold@suse.com + +- Add missing BuildRequires and Requires for jerasure + and gf-complete libs + +------------------------------------------------------------------- +Wed Jul 29 18:35:52 UTC 2015 - tbechtold@suse.com + +- Initial packaging + diff --git a/python-PyECLib.spec b/python-PyECLib.spec new file mode 100644 index 0000000..63ec647 --- /dev/null +++ b/python-PyECLib.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-PyECLib +# +# Copyright (c) 2025 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +Name: python-PyECLib +Version: 1.6.4 +Release: 0 +Summary: Simple interface for implementing erasure codes +License: BSD-3-Clause +URL: https://opendev.org/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 +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: liberasurecode-devel >= 1.4.0 +BuildRequires: python-rpm-macros +%python_subpackages + +%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 pyeclib-%{version} +cp %{SOURCE99} . + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitearch} + +%check +%pyunittest_arch discover -v + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitearch}/pyeclib +%{python_sitearch}/pyeclib_c.abi3.so +%{python_sitearch}/[Pp]y[Ee][Cc][Ll]ib-%{version}.dist-info + +%changelog