Nikita Popov 2023-02-01 15:55:41 +01:00
parent 85ca54564a
commit bce32f8e8f
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff -up zstd-1.4.5.1/src/util.c.c99 zstd-1.4.5.1/src/util.c
--- zstd-1.4.5.1/src/util.c.c99 2023-02-01 15:53:06.830812528 +0100
+++ zstd-1.4.5.1/src/util.c 2023-02-01 15:53:18.823927411 +0100
@@ -18,7 +18,7 @@ extern "C" {
******************************************/
#include "util.h" /* note : ensure that platform.h is included first ! */
#include <errno.h>
-#include <assert.h>
+#include <string.h>
#if defined(_MSC_VER) || defined(__MINGW32__) || defined (__MSVCRT__)
#include <direct.h> /* needed for _mkdir in windows */

View File

@ -3,7 +3,7 @@
Name: python-%{pypi_name}
Version: %{zstd_version}.1
Release: 9%{?dist}
Release: 10%{?dist}
Summary: Zstd Bindings for Python
License: BSD
@ -22,6 +22,9 @@ Patch2: python-zstd-1.4.5.1-py_ssize_t_clean.patch
# From https://github.com/sergey-dryabzhinsky/python-zstd/commit/4e9b8b0cbf
Patch3: 0003-Port-to-Python-3.11-use-Py_SET_SIZE.patch
# Part of https://github.com/sergey-dryabzhinsky/python-zstd/commit/b823bc087b2
Patch4: python-zstd-1.4.5.1-c99.patch
BuildRequires: gcc
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
@ -67,6 +70,9 @@ sed -i -e '/test_version/d' tests/__init__.py
%{python3_sitearch}/%{pypi_name}*.so
%changelog
* Wed Feb 01 2023 Nikita Popov <npopov@redhat.com> - 1.4.5.1-10
- Port to C99
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.5.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild