Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
7d33d78832 |
23
python-xcffib-ffi-import.patch
Normal file
23
python-xcffib-ffi-import.patch
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
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)
|
@@ -1,13 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
Wed Oct 18 15:09:53 UTC 2023 - Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
|
|
||||||
|
|
||||||
- update to 1.5.0:
|
|
||||||
* build against xcb-proto 1.16.0 (Tycho Andersen)
|
|
||||||
* add an automatic-github-releaser script
|
|
||||||
* 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 <dmueller@suse.com>
|
Wed May 10 06:54:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -27,13 +27,15 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-xcffib%{?psuffix}
|
Name: python-xcffib%{?psuffix}
|
||||||
Version: 1.5.0
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A drop in replacement for xpyb, an XCB python binding
|
Summary: A drop in replacement for xpyb, an XCB python binding
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/tych0/xcffib
|
URL: https://github.com/tych0/xcffib
|
||||||
Source: https://files.pythonhosted.org/packages/source/x/xcffib/xcffib-%{version}.tar.gz
|
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 cffi >= 1.1.0}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
|
BIN
xcffib-1.3.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
xcffib-1.3.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
xcffib-1.5.0.tar.gz
(Stored with Git LFS)
BIN
xcffib-1.5.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user