17
0
Files
python-pywlroots/python-pywlroots.spec

84 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-pywlroots
#
# Copyright (c) 2024 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/
#
%{?sle15_python_module_pythons}
%bcond_without test
Name: python-pywlroots
- Update to version 0.17.0 * Support for wlroots 0.17.x * Breaking change Rename all declarations of XdgTopLevel.* to XdgToplevel.* * Fixed Seat.touch_point_clear_focus: The method took too many arguments which were not aligned to the wlroots counterpart and lead to a runtime error. * Fixed Renderer.autocreate return value check. This also replaces some of the exceptions from render_texture and render_texture_with_matrix with boolean return values. * Fixed: XdgTopLevel.parent always returnd a parent even if the parent is NULL. * Fixed return type of Seat.touch_notify_down: Returns an integer now (the * serial identifier) * Added support for wlr_switch * Added Seat.touch_send_* methods * Added TouchPoint class * Real support for wlr_touch. The previous implementations were not usable. * Added support for the Single-pixel buffer protocol. * Added (experimental) support for the Session lock V1 protocol * Added Output.enable_adaptive_sync(bool) * Added Cursor.detach_input_device() * Added Backend.is_multi property which indicates if the backend represents a multi-backend * Added Pointer.data property * Added support for wlr_touch * Added support for OutputState which simplifies the configuration of Output * Removed Seat.has_grab(): Use the explicit methods like Seat.keyboard_has_grab(), Seat.pointer_has_grab() or Seat.touch_has_grab() * Renamed the touch events to maintain a consistent naming scheme: TouchEventUp -> TouchUpEvent, TouchEventDown -> TouchDownEvent, TouchEventMotion -> TouchMotionEvent, TouchEventCancel -> TouchCancelEvent * The following methods don't throw a RuntimeError anymore, but return a boolean value like the wlroots API: Backend.start(), Output.commit(), and SceneOutput.commit() * Deprecated Seat.set_keyboard(): Use the Seat.keyboard property * Seat.keyboard (and Seat.set_keyboard()) accepts None as valid value. OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/python-pywlroots?expand=0&rev=34
2024-05-25 17:46:56 +00:00
Version: 0.17.0
Release: 0
Summary: Python binding to the wlroots library using cffi
License: NCSA
Group: Development/Languages/Python
URL: https://github.com/flacjacket/pywlroots
Source0: https://files.pythonhosted.org/packages/source/p/pywlroots/pywlroots-%{version}.tar.gz
Source1: python-pywlroots-rpmlintrc
# Patch0: fix-include-paths.patch
BuildRequires: %{python_module cffi}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module distutils-extra}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pywayland >= 0.4.14}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module xkbcommon >= 0.2}
BuildRequires: %{pythons}
BuildRequires: fdupes
BuildRequires: libdrm >= 2.4.113
BuildRequires: python-rpm-macros
BuildRequires: pkgconfig(glib-2.0)
- Update to version 0.17.0 * Support for wlroots 0.17.x * Breaking change Rename all declarations of XdgTopLevel.* to XdgToplevel.* * Fixed Seat.touch_point_clear_focus: The method took too many arguments which were not aligned to the wlroots counterpart and lead to a runtime error. * Fixed Renderer.autocreate return value check. This also replaces some of the exceptions from render_texture and render_texture_with_matrix with boolean return values. * Fixed: XdgTopLevel.parent always returnd a parent even if the parent is NULL. * Fixed return type of Seat.touch_notify_down: Returns an integer now (the * serial identifier) * Added support for wlr_switch * Added Seat.touch_send_* methods * Added TouchPoint class * Real support for wlr_touch. The previous implementations were not usable. * Added support for the Single-pixel buffer protocol. * Added (experimental) support for the Session lock V1 protocol * Added Output.enable_adaptive_sync(bool) * Added Cursor.detach_input_device() * Added Backend.is_multi property which indicates if the backend represents a multi-backend * Added Pointer.data property * Added support for wlr_touch * Added support for OutputState which simplifies the configuration of Output * Removed Seat.has_grab(): Use the explicit methods like Seat.keyboard_has_grab(), Seat.pointer_has_grab() or Seat.touch_has_grab() * Renamed the touch events to maintain a consistent naming scheme: TouchEventUp -> TouchUpEvent, TouchEventDown -> TouchDownEvent, TouchEventMotion -> TouchMotionEvent, TouchEventCancel -> TouchCancelEvent * The following methods don't throw a RuntimeError anymore, but return a boolean value like the wlroots API: Backend.start(), Output.commit(), and SceneOutput.commit() * Deprecated Seat.set_keyboard(): Use the Seat.keyboard property * Seat.keyboard (and Seat.set_keyboard()) accepts None as valid value. OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/python-pywlroots?expand=0&rev=34
2024-05-25 17:46:56 +00:00
BuildRequires: pkgconfig(wlroots) >= 0.17.0
# For future possible versions
BuildConflicts: pkgconfig(wlroots) >= 0.18.0
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xwayland)
Requires: python-pywayland
Requires: python-xkbcommon
%python_subpackages
%description
Python binding to the wlroots library using cffi.
%prep
%autosetup -n pywlroots-%{version}
%build
export CFLAGS="%optflags $(pkg-config --cflags wayland-client xkbcommon pixman-1 libinput libdrm)"
%python_exec wlroots/ffi_build.py
%pyproject_wheel
%install
export CFLAGS="%optflags $(pkg-config --cflags wayland-client xkbcommon pixman-1 libinput libdrm)"
%python_exec wlroots/ffi_build.py
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
%if %{with test}
%check
export CFLAGS="%optflags $(pkg-config --cflags wayland-client xkbcommon pixman-1 libinput libdrm)"
%pytest -vv
%endif
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitearch}/*wlroots*/
%changelog