From cca907a0463ce163a05a8cc2714d6a34455c32b7a51baeb620686b84dc363cad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 19 Oct 2023 09:27:29 +0000 Subject: [PATCH] Accepting request 1118613 from home:uncomfyhalomacro:branches:devel:languages:python - update to 1.5.0: * build against xcb-proto 1.16.0 (Tycho Andersen) * add an automatic-github-releaser scrip * use cffi's in-line mode * build against xcb-proto 1.16.0 - remove python-xcffib-ffi-import.patch OBS-URL: https://build.opensuse.org/request/show/1118613 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xcffib?expand=0&rev=30 --- python-xcffib-ffi-import.patch | 23 ----------------------- python-xcffib.changes | 10 ++++++++++ python-xcffib.spec | 4 +--- xcffib-1.3.0.tar.gz | 3 --- xcffib-1.5.0.tar.gz | 3 +++ 5 files changed, 14 insertions(+), 29 deletions(-) delete mode 100644 python-xcffib-ffi-import.patch delete mode 100644 xcffib-1.3.0.tar.gz create mode 100644 xcffib-1.5.0.tar.gz diff --git a/python-xcffib-ffi-import.patch b/python-xcffib-ffi-import.patch deleted file mode 100644 index d6d6230..0000000 --- a/python-xcffib-ffi-import.patch +++ /dev/null @@ -1,23 +0,0 @@ -Index: xcffib-1.2.0/test/test_python_code.py -=================================================================== ---- xcffib-1.2.0.orig/test/test_python_code.py -+++ xcffib-1.2.0/test/test_python_code.py -@@ -19,7 +19,6 @@ import xcffib.xinput - import os - import struct - import sys --from xcffib._ffi import ffi - from xcffib.xproto import EventMask - - from .conftest import XcffibTest -@@ -176,8 +175,8 @@ class TestPythonCode: - ) - - # Create cdata from the bytearray and cast it to a generic reply -- cdata = ffi.new("char x[72]", B_HIT_EVENT) -- generic_reply = ffi.cast("xcb_generic_reply_t *", cdata) -+ cdata = xcffib.ffi.new("char x[72]", B_HIT_EVENT) -+ generic_reply = xcffib.ffi.cast("xcb_generic_reply_t *", cdata) - - # Pass the reply to our hoist_event method - event = xcffib_test.conn.hoist_event(generic_reply) diff --git a/python-xcffib.changes b/python-xcffib.changes index aea3a36..53a83f9 100644 --- a/python-xcffib.changes +++ b/python-xcffib.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Wed Oct 18 15:09:53 UTC 2023 - Soc Virnyl Estela + +- update to 1.5.0: + * build against xcb-proto 1.16.0 (Tycho Andersen) + * add an automatic-github-releaser scrip + * use cffi's in-line mode + * build against xcb-proto 1.16.0 +- remove python-xcffib-ffi-import.patch + ------------------------------------------------------------------- Wed May 10 06:54:58 UTC 2023 - Dirk Müller diff --git a/python-xcffib.spec b/python-xcffib.spec index e40b867..3307166 100644 --- a/python-xcffib.spec +++ b/python-xcffib.spec @@ -27,15 +27,13 @@ %{?sle15_python_module_pythons} Name: python-xcffib%{?psuffix} -Version: 1.3.0 +Version: 1.5.0 Release: 0 Summary: A drop in replacement for xpyb, an XCB python binding License: Apache-2.0 Group: Development/Languages/Python URL: https://github.com/tych0/xcffib Source: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz -# fix ffi import [bsc#1209570c4] -Patch1: python-xcffib-ffi-import.patch BuildRequires: %{python_module cffi >= 1.1.0} BuildRequires: %{python_module setuptools} %if %{with test} diff --git a/xcffib-1.3.0.tar.gz b/xcffib-1.3.0.tar.gz deleted file mode 100644 index 4250b87..0000000 --- a/xcffib-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6c4594e4826fc35ea5090e4d6dd9963b3b1675b7d1247e5c3a019d9506b8bf77 -size 89874 diff --git a/xcffib-1.5.0.tar.gz b/xcffib-1.5.0.tar.gz new file mode 100644 index 0000000..30fcf76 --- /dev/null +++ b/xcffib-1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a95c9465f2f97b4fcede606bd1e08407a32df71cb760fd57bfe53677db691acc +size 89544