Sync from SUSE:SLFO:Main python-xcffib revision 90f1716ff761192c9c75c283ddd1d5ef
This commit is contained in:
commit
0a3548d5e9
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
3
_multibuild
Normal file
3
_multibuild
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>test</package>
|
||||||
|
</multibuild>
|
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)
|
125
python-xcffib.changes
Normal file
125
python-xcffib.changes
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed May 10 06:54:58 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.3.0:
|
||||||
|
* remove leftover six import
|
||||||
|
* module: expose additional xcb errors
|
||||||
|
* Fix List.to_string()
|
||||||
|
- drop python-xcffib-six-leftover.patch (upstream)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 21 12:39:00 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- add sle15_python_module_pythons (jsc#PED-68)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Mar 23 09:19:27 UTC 2023 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 1.2.0
|
||||||
|
* no upstream changelog found
|
||||||
|
- do not require six
|
||||||
|
- added patches
|
||||||
|
fix https://github.com/tych0/xcffib/commit/8a488867d30464913706376ca3a9f4c98ca6c5cf
|
||||||
|
+ python-xcffib-six-leftover.patch
|
||||||
|
fix ffi import [bsc#1209570c4]
|
||||||
|
+ python-xcffib-ffi-import.patch
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Sep 27 16:04:01 UTC 2022 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.12.1
|
||||||
|
* Replace nose by pytest
|
||||||
|
* Allow the master xcb version to pass even if failing
|
||||||
|
* drop Python 3.6, support Python 3.10
|
||||||
|
* ci: test with new xcb 1.15 release
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 16 11:27:23 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Replace use of nose2 by pytest. There is no need to do anything
|
||||||
|
else.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jul 8 13:19:04 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.11.1
|
||||||
|
* connection: don't automatically disconnect() on connection error
|
||||||
|
* drop support for python 3.5
|
||||||
|
* tests: switch to nose2
|
||||||
|
* travis: test python 3.9
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Oct 26 13:01:07 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
|
||||||
|
|
||||||
|
- Re-activate tests
|
||||||
|
- Update to 0.10.1
|
||||||
|
* testing: handle lock file open() failures gracefully
|
||||||
|
- from v0.10.0
|
||||||
|
* Drop support for Python 2.7
|
||||||
|
* testing: protect find_display() with flock()
|
||||||
|
* testing: don't leak discard FD
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 21 09:11:30 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Disable tests to avoid deadlock in xvfb
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Feb 6 12:33:30 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
- update to 0.9.0
|
||||||
|
* add Python 3.8
|
||||||
|
* test: don't fail when there is no pre-existing display
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 17 12:07:45 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.8.1:
|
||||||
|
* Testsuite expansion mostly
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon May 6 10:35:38 UTC 2019 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- version update to 0.8.0
|
||||||
|
* Fix few more instances of inefficient struct format
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Mar 4 11:54:51 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||||
|
|
||||||
|
- Update to 0.7.0:
|
||||||
|
* Various updates and fixes for ghc/cabal
|
||||||
|
* Drop unnecessary imports
|
||||||
|
- Enable tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jan 24 15:23:49 UTC 2019 - mvetter@suse.com
|
||||||
|
|
||||||
|
- Update to 0.6.0:
|
||||||
|
* Depend on xcb-types 0.9.0
|
||||||
|
* Fix spelling mistakes
|
||||||
|
* Support the new eventstruct element
|
||||||
|
* Use xcb-types HEAD instead of a released version
|
||||||
|
* List: keep around the raw underlying represenation
|
||||||
|
* Fix linter errors
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 4 12:56:16 UTC 2018 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Remove superfluous devel dependency for noarch package
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 19 19:44:53 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Update to 0.5.1.
|
||||||
|
- Implement single-spec version.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Nov 23 22:02:10 UTC 2016 - hpj@urpla.net
|
||||||
|
|
||||||
|
- add python-cffi runtime dependency
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Nov 21 10:51:53 UTC 2016 - hpj@urpla.net
|
||||||
|
|
||||||
|
- version 0.4.2: initial build
|
||||||
|
|
85
python-xcffib.spec
Normal file
85
python-xcffib.spec
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
#
|
||||||
|
# spec file
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 SUSE LLC
|
||||||
|
#
|
||||||
|
# All modifications and additions to the file contributed by third parties
|
||||||
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
|
# upon. The license for this file, and modifications and additions to the
|
||||||
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
|
# license for the pristine package is not an Open Source License, in which
|
||||||
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
|
%if "%{flavor}" == "test"
|
||||||
|
%define psuffix -test
|
||||||
|
%bcond_without test
|
||||||
|
%else
|
||||||
|
%define psuffix %{nil}
|
||||||
|
%bcond_with test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-xcffib%{?psuffix}
|
||||||
|
Version: 1.3.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}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module xcffib}
|
||||||
|
%endif
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: libxcb-devel
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: xeyes
|
||||||
|
BuildRequires: xvfb-run
|
||||||
|
Requires: python-cffi >= 1.1.0
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
The xcffib package is intended to be a (mostly) drop-in
|
||||||
|
replacement for xpyb.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n xcffib-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%if !%{with test}
|
||||||
|
%python_build
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%install
|
||||||
|
%if !%{with test}
|
||||||
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with test}
|
||||||
|
%pytest
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if !%{with test}
|
||||||
|
%files %{python_files}
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
%{python_sitelib}/xcffib/
|
||||||
|
%{python_sitelib}/xcffib-%{version}-py*.egg-info
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%changelog
|
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.
Loading…
x
Reference in New Issue
Block a user