2 Commits

3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
From d7fe479707af57aeedf7e41c08e7fb698cd2e2a3 Mon Sep 17 00:00:00 2001
From: Nikias Bassen <nikias@gmx.li>
Date: Tue, 13 May 2025 18:32:50 +0200
Subject: [PATCH 1/6] cython: Fix build with cython 3.1+
---
cython/plist.pyx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cython/plist.pyx b/cython/plist.pyx
index b5f4ef6..4d1f8aa 100644
--- a/cython/plist.pyx
+++ b/cython/plist.pyx
@@ -851,7 +851,7 @@ cdef plist_t native_to_plist_t(object native):
return plist_new_string(native)
if isinstance(native, bool):
return plist_new_bool(<bint>native)
- if isinstance(native, int) or isinstance(native, long):
+ if isinstance(native, int):
return plist_new_uint(native)
if isinstance(native, float):
return plist_new_real(native)
--
2.39.5

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 24 07:58:52 UTC 2025 - Ana Guerrero <ana.guerrero@suse.com>
- Fix build with cython 3.1+:
* Add patch 0001-cython-Fix-build-with-cython-3.1.patch
-------------------------------------------------------------------
Wed Feb 26 13:38:14 UTC 2025 - Michal Suchanek <msuchanek@suse.de>

View File

@@ -30,6 +30,8 @@ License: GPL-2.0-only AND LGPL-2.1-or-later
URL: https://github.com/libimobiledevice/libplist
Source: https://github.com/libimobiledevice/libplist/archive/%{version}.tar.gz
Source99: baselibs.conf
# PATCH-FIX-UPSTREAM https://github.com/libimobiledevice/libplist/commit/d7fe479707af57aeedf7e41c08e7fb698cd2e2a3
Patch0: 0001-cython-Fix-build-with-cython-3.1.patch
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++