From 1d76ab04635e213569f371a14eaf78f9f20774d1 Mon Sep 17 00:00:00 2001 From: Christoph Karl Date: Dec 18 2022 09:47:27 +0000 Subject: Patch for SWI-Prolog Version > 8.5.2 --- diff --git a/pyswip-version.patch b/pyswip-version.patch new file mode 100644 index 0000000..a9ec0de --- /dev/null +++ b/pyswip-version.patch @@ -0,0 +1,11 @@ +--- pyswip-0.2.10_orig/pyswip/core.py 2022-12-18 10:26:33.411078895 +0100 ++++ pyswip-0.2.10/pyswip/core.py 2022-12-18 10:27:04.380893221 +0100 +@@ -584,7 +584,7 @@ PL_VERSION_VM =6 # VM signature + PL_VERSION_BUILT_IN =7 # Built-in predicate signature + + try: +- PL_version = _lib.PL_version ++ PL_version = _lib.PL_version_info + PL_version.argtypes = [c_int] + PL_version.restype = c_uint + diff --git a/python-pyswip.spec b/python-pyswip.spec index 7458452..7101ad0 100644 --- a/python-pyswip.spec +++ b/python-pyswip.spec @@ -2,7 +2,7 @@ Name: python-%{srcname} Version: 0.2.10 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Python-SWI-Prolog bridge License: MIT @@ -27,6 +27,10 @@ Summary: %summary # we need to require pl-devel because pyswip uses the unversioned libswipl.so Requires: pl-devel +# Patch for SWI-Prolog Version > 8.5.2 +# See https://github.com/yuce/pyswip/pull/133 +Patch0: pyswip-version.patch + %description -n python3-%{srcname} PySWIP is a Python - SWI-Prolog bridge enabling to query SWI-Prolog in your Python programs. It features an (incomplete) SWI-Prolog foreign language @@ -35,7 +39,7 @@ Pythonic interface. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{srcname}-%{version} -p1 %build @@ -57,6 +61,9 @@ pytest-3 tests %changelog +* Sun Dec 18 2022 Christoph Karl - 0.2.10-8 +- Patch for SWI-Prolog Version > 8.5.2 + * Fri Jul 22 2022 Fedora Release Engineering - 0.2.10-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild