update to 0.22.0 (resolves rhbz#2247527)

- fix build with Python 3.13 (resolves rhbz#2245876)
This commit is contained in:
Dominik Mierzejewski 2023-11-22 13:17:19 +01:00
parent 59c29d5cc2
commit d2e38f8593
4 changed files with 22 additions and 4 deletions

1
.gitignore vendored
View File

@ -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

View File

@ -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 <sys/sysctl.h>
+#elif defined(__linux__) && defined(HAVE_UNISTD_H)
+#include <unistd.h>
#endif
#include "python-zstandard.h"

View File

@ -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 <dominik@greysector.net> - 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 <releng@fedoraproject.org> - 0.21.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (zstandard-0.21.0.tar.gz) = fc46b676e9319180ffa8f626c55bcfbf13804cc75170255bfa7d7b614563276f3bb0fa84e6dba43501ef1cf920fdb90d39ddee2a1ac00139acd0da88ebc67d2a
SHA512 (zstandard-0.22.0.tar.gz) = 6352586cd3eb9fd2c552a478847433a5879a4f655396186b30ec0b86325e3015c36993e4993e9fa6e92adb5118bb6f78dba1749991ec78b07a8e3646cdf414a9