[packages/afflib] - added cython fix, release 5

qboosh qboosh at pld-linux.org
Fri Mar 21 21:57:56 CET 2025


commit a0b54ab1a41308bf9d073111dff5b457e5448229
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Mar 21 21:54:33 2025 +0100

    - added cython fix, release 5

 afflib-cython.patch | 11 +++++++++++
 afflib.spec         |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/afflib.spec b/afflib.spec
index e0a5ed6..d1db5c0 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -14,7 +14,7 @@ Summary:	Library to support the Advanced Forensic Format
 Summary(pl.UTF-8):	Biblioteka do obsługi firmatu plików AFF (Advanced Forensic Format)
 Name:		afflib
 Version:	3.7.20
-Release:	4
+Release:	5
 License:	BSD with advertising
 Group:		Libraries
 #Source0Download: https://github.com/sshock/AFFLIBv3/releases/
@@ -22,6 +22,7 @@ Source0:	https://github.com/sshock/AFFLIBv3/archive/v%{version}/AFFLIBv3-%{versi
 # Source0-md5:	4e8e82bafa74c076fc5b2f73e582da7e
 Patch0:		%{name}-no-libmd.patch
 Patch1:		%{name}-x32-x64.patch
+Patch2:		%{name}-cython.patch
 URL:		https://github.com/sshock/AFFLIBv3
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -116,6 +117,7 @@ metadanych. Wiązania nie są jeszcze kompletne.
 %setup -q -n AFFLIBv3-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %if %{with system_lzma}
 	# prevent internal lzma to be built - testing
diff --git a/afflib-cython.patch b/afflib-cython.patch
new file mode 100644
index 0000000..884b281
--- /dev/null
+++ b/afflib-cython.patch
@@ -0,0 +1,11 @@
+--- AFFLIBv3-3.7.20/pyaff/afflib.pxd.orig	2022-12-28 05:45:13.000000000 +0100
++++ AFFLIBv3-3.7.20/pyaff/afflib.pxd	2025-03-21 21:45:10.413710846 +0100
+@@ -2,7 +2,7 @@ from libc.stdint cimport int64_t, uint32
+ from posix.fcntl cimport O_RDONLY
+ 
+ cdef extern from "afflib/afflib.h":
+-    struct AFFILE
++    ctypedef struct AFFILE
+ 
+     enum: AF_MAX_NAME_LEN
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/afflib.git/commitdiff/a0b54ab1a41308bf9d073111dff5b457e5448229



More information about the pld-cvs-commit mailing list