From d2e38f85935646fcb17d13e1bb6cdf44bfca9de6 Mon Sep 17 00:00:00 2001 From: Dominik Mierzejewski Date: Wed, 22 Nov 2023 13:17:19 +0100 Subject: [PATCH] update to 0.22.0 (resolves rhbz#2247527) - fix build with Python 3.13 (resolves rhbz#2245876) --- .gitignore | 1 + python-zstandard-py313.patch | 12 ++++++++++++ python-zstandard.spec | 11 ++++++++--- sources | 2 +- 4 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 python-zstandard-py313.patch diff --git a/.gitignore b/.gitignore index 550cf80..80548f6 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ /zstandard-0.18.0.tar.gz /zstandard-0.19.0.tar.gz /zstandard-0.21.0.tar.gz +/zstandard-0.22.0.tar.gz diff --git a/python-zstandard-py313.patch b/python-zstandard-py313.patch new file mode 100644 index 0000000..641e646 --- /dev/null +++ b/python-zstandard-py313.patch @@ -0,0 +1,12 @@ +diff -up zstandard-0.22.0/c-ext/backend_c.c.orig zstandard-0.22.0/c-ext/backend_c.c +--- zstandard-0.22.0/c-ext/backend_c.c.orig 2023-11-01 07:04:15.000000000 +0100 ++++ zstandard-0.22.0/c-ext/backend_c.c 2023-11-22 12:51:36.452480448 +0100 +@@ -17,6 +17,8 @@ + + #include + ++#elif defined(__linux__) && defined(HAVE_UNISTD_H) ++#include + #endif + + #include "python-zstandard.h" diff --git a/python-zstandard.spec b/python-zstandard.spec index ee6ce67..b633df7 100644 --- a/python-zstandard.spec +++ b/python-zstandard.spec @@ -18,12 +18,13 @@ compression library. A C extension and CFFI interface are provided. Name: python-%{pypi_name} -Version: 0.21.0 -Release: 3%{?dist} +Version: 0.22.0 +Release: 1%{?dist} Summary: Zstandard bindings for Python License: (BSD-3-Clause OR GPL-2.0-only) AND MIT URL: https://github.com/indygreg/python-zstandard Source0: %{pypi_source} +Patch0: %{name}-py313.patch %description %{desc} @@ -47,7 +48,7 @@ Provides: bundled(zstd) = 1.5.5 %{desc} %prep -%setup -q -n %{pypi_name}-%{version} +%autosetup -p1 -n %{pypi_name}-%{version} rm -r %{pypi_name}.egg-info %build @@ -72,6 +73,10 @@ mv zstandard{.src,} %{python3_sitearch}/%{pypi_name} %changelog +* Wed Nov 22 2023 Dominik Mierzejewski - 0.22.0-1 +- update to 0.22.0 (resolves rhbz#2247527) +- fix build with Python 3.13 (resolves rhbz#2245876) + * Fri Jul 21 2023 Fedora Release Engineering - 0.21.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild diff --git a/sources b/sources index 7e92000..bc2c90f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (zstandard-0.21.0.tar.gz) = fc46b676e9319180ffa8f626c55bcfbf13804cc75170255bfa7d7b614563276f3bb0fa84e6dba43501ef1cf920fdb90d39ddee2a1ac00139acd0da88ebc67d2a +SHA512 (zstandard-0.22.0.tar.gz) = 6352586cd3eb9fd2c552a478847433a5879a4f655396186b30ec0b86325e3015c36993e4993e9fa6e92adb5118bb6f78dba1749991ec78b07a8e3646cdf414a9