From 3896f3a49a1edd8912ebd51e49ccdcffedbe388c Mon Sep 17 00:00:00 2001 From: Python Maint Date: Tue, 3 Jun 2025 15:33:09 +0200 Subject: [PATCH 1/5] Rebuilt for Python 3.14 From a8696ba24fd597376dde8cdbd6e1547747df2d19 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 25 Jul 2025 07:02:39 +0000 Subject: [PATCH 2/5] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild From e085788a2afbc1876345b10e03634ef77a96b202 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 15 Aug 2025 13:23:35 +0200 Subject: [PATCH 3/5] Rebuilt for Python 3.14.0rc2 bytecode From 78da716688ffc7909c9c181bad4e8ee0cb72c766 Mon Sep 17 00:00:00 2001 From: Python Maint Date: Fri, 19 Sep 2025 12:55:27 +0200 Subject: [PATCH 4/5] Rebuilt for Python 3.14.0rc3 bytecode From 932fa34f9784e799284a7818668124e5f8956164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 31 Oct 2025 12:36:14 +0100 Subject: [PATCH 5/5] Add patch to fix build ... (rhbz#2385442) --- ...-docs-update-example-for-newer-numpy.patch | 30 +++++++++++++++++++ python-blosc.spec | 2 ++ 2 files changed, 32 insertions(+) create mode 100644 0001-docs-update-example-for-newer-numpy.patch diff --git a/0001-docs-update-example-for-newer-numpy.patch b/0001-docs-update-example-for-newer-numpy.patch new file mode 100644 index 0000000..e46338a --- /dev/null +++ b/0001-docs-update-example-for-newer-numpy.patch @@ -0,0 +1,30 @@ +From ed3998803650bec0666c3ca458df76fcd9293417 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= +Date: Fri, 31 Oct 2025 12:33:57 +0100 +Subject: [PATCH] docs: update example for newer numpy + +File ".../usr/lib64/python3.14/site-packages/blosc/toplevel.py", line 515, in blosc.toplevel.compress_ptr +Failed example: + np_ans = numpy.fromstring(d, dtype=np_array.dtype) +Exception raised: + Traceback (most recent call last): + File "", line 1, in + np_ans = numpy.fromstring(d, dtype=np_array.dtype) + ValueError: The binary mode of fromstring is removed, use frombuffer instead +--- + blosc/toplevel.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/blosc/toplevel.py b/blosc/toplevel.py +index 4d2d4139af..3ef2327618 100644 +--- a/blosc/toplevel.py ++++ b/blosc/toplevel.py +@@ -513,7 +513,7 @@ def compress_ptr(address, items, typesize=8, clevel=9, shuffle=blosc.SHUFFLE, + >>> c = blosc.compress_ptr(np_array.__array_interface__['data'][0], \ + items, np_array.dtype.itemsize) + >>> d = blosc.decompress(c) +- >>> np_ans = numpy.fromstring(d, dtype=np_array.dtype) ++ >>> np_ans = numpy.frombuffer(d, dtype=np_array.dtype) + >>> bool((np_array == np_ans).all()) + True + diff --git a/python-blosc.spec b/python-blosc.spec index ff76a40..4e93d3a 100644 --- a/python-blosc.spec +++ b/python-blosc.spec @@ -7,6 +7,8 @@ URL: https://github.com/Blosc/python-blosc Source0: https://github.com/Blosc/python-blosc/archive/v%{version}/blosc-%{version}.tar.gz Source1: https://raw.githubusercontent.com/Blosc/python-blosc/f3c5e341a2504a03c225f4f1d9066ccdf4bd31dd/setup.py +Patch: 0001-docs-update-example-for-newer-numpy.patch + BuildRequires: gcc BuildRequires: blosc-devel >= 1.16.0 BuildRequires: python%{python3_pkgversion}-devel