From f9b6885ad4dee27edeb1c7383fd168efb897fee3 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sun, 10 Dec 2023 17:47:20 -0500 Subject: [PATCH] Initial package --- .gitignore | 1 + 0001-wlheadless-Add-support-for-kwin.patch | 151 +++++++++++++++++++++ sources | 1 + xwayland-run.spec | 54 ++++++++ 4 files changed, 207 insertions(+) create mode 100644 .gitignore create mode 100644 0001-wlheadless-Add-support-for-kwin.patch create mode 100644 sources create mode 100644 xwayland-run.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3255975 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/xwayland-run-0.0.2.tar.gz diff --git a/0001-wlheadless-Add-support-for-kwin.patch b/0001-wlheadless-Add-support-for-kwin.patch new file mode 100644 index 0000000..6603ec7 --- /dev/null +++ b/0001-wlheadless-Add-support-for-kwin.patch @@ -0,0 +1,151 @@ +From 9f1392fd57e78c9d785a1211ce84bfd5ca1226e6 Mon Sep 17 00:00:00 2001 +From: Neal Gompa +Date: Sun, 10 Dec 2023 16:46:01 -0500 +Subject: [PATCH] wlheadless: Add support for kwin + +--- + README.md | 5 +-- + man/wlheadless-run.man | 2 +- + meson_options.txt | 2 +- + src/wlheadless/kwin.py | 76 ++++++++++++++++++++++++++++++++++++++++++ + 4 files changed, 81 insertions(+), 4 deletions(-) + create mode 100644 src/wlheadless/kwin.py + +diff --git a/README.md b/README.md +index f4d4490..d37243e 100644 +--- a/README.md ++++ b/README.md +@@ -26,6 +26,7 @@ and currently support the following compositors: + + * [weston](https://gitlab.freedesktop.org/wayland/weston) + * [cage](https://github.com/cage-kiosk/cage) ++ * [kwin](https://invent.kde.org/plasma/kwin) + * [gnome-kiosk](https://gitlab.gnome.org/GNOME/gnome-kiosk) + * [mutter](https://gitlab.gnome.org/GNOME/mutter) + +@@ -81,7 +82,7 @@ usage: wlheadless-run [-c compositor] -- client = 0.60.0 +BuildRequires: git-core +BuildRequires: python3-devel +Requires: (weston or kwin-wayland or mutter or cage or gnome-kiosk) +Requires: xorg-x11-server-Xwayland + +%description +xwayland-run contains a set of small utilities revolving around running +Xwayland and various Wayland compositor headless. + + +%prep +%autosetup -S git_am + + +%build +%meson +%meson_build + + +%install +%meson_install + + +%files +%license COPYING +%doc README.md +%{_bindir}/wlheadless-run +%{_bindir}/xwayland-run +%{_bindir}/xwfb-run +%{_datadir}/wlheadless/ +%{_mandir}/man1/wlheadless-run.1* +%{_mandir}/man1/xwayland-run.1* +%{_mandir}/man1/xwfb-run.1* +%{python3_sitelib}/wlheadless/ + + +%changelog +* Sun Dec 10 2023 Neal Gompa - 0.0.2-1 +- Initial package