- Require libXi-devel >= 1.8 for the XI 2.4 gesture event types; on EL9

the newer libXi is supplied by this COPR project (EL9 ships 1.7.10).
- Initial package: install an XDG autostart entry for 12to11.
This commit is contained in:
Anders da Silva Rytter Hansen 2026-09-15 16:04:44 +02:00
commit 9b942377cf
3 changed files with 65 additions and 2 deletions

47
12to11-autostart.spec Normal file
View file

@ -0,0 +1,47 @@
# SPDX-License-Identifier: GPLv3+
#
# 12to11-autostart - XDG autostart entry for 12to11
#
# Ships /etc/xdg/autostart/12to11.desktop so the compositor is started
# automatically when an X11 session begins (e.g. for Waydroid).
Name: 12to11-autostart
Version: 1.0.0
Release: 1%{?dist}
Summary: Autostart the 12to11 Wayland-to-X11 translator
License: GPL-3.0-only
URL: https://github.com/fish4terrisa-MSDSM/12to11
Source0: 12to11.desktop
BuildArch: noarch
BuildRequires: desktop-file-utils
Requires: 12to11
%description
This package installs an XDG autostart entry that launches 12to11,
the Wayland-to-X11 protocol translator, at the start of each X11
session. Wayland applications can then connect to its socket without
starting the compositor by hand.
The entry is marked NoDisplay, so it does not appear in application
menus.
%prep
# Source0 is the desktop file itself; nothing to extract.
%build
# Nothing to compile.
%install
install -D -p -m 0644 %{SOURCE0} %{buildroot}%{_sysconfdir}/xdg/autostart/12to11.desktop
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/12to11.desktop
%files
%{_sysconfdir}/xdg/autostart/12to11.desktop
%changelog
* Tue Sep 15 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 1.0.0-1
- Initial package: install an XDG autostart entry for 12to11.

7
12to11.desktop Normal file
View file

@ -0,0 +1,7 @@
[Desktop Entry]
Type=Application
Name=12to11
Comment=Wayland-to-X11 translator for X11 sessions
Exec=/usr/bin/12to11
Terminal=false
NoDisplay=true

View file

@ -8,13 +8,16 @@
# xlibre COPR first:
# dnf copr enable @xlibre/xlibre-xserver
# or build/install libXpresent from source (https://gitlab.freedesktop.org/xorg/lib/libxpresent).
# On EL9: libXi-devel >= 1.8 is also not in the main repos (EL9 ships
# 1.7.10, which lacks the XI 2.4 gesture event types). A newer libXi
# is built in this COPR project; enable it for local builds.
#
# Since v1.0.0 the build uses a plain Makefile; the legacy imake/xmkmf
# build system is no longer needed.
Name: 12to11
Version: 1.0.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: Wayland to X11 protocol translator
License: GPL-3.0-only
@ -32,7 +35,9 @@ BuildRequires: libXext-devel
BuildRequires: libXrandr-devel
BuildRequires: libXrender-devel
BuildRequires: libXfixes-devel
BuildRequires: libXi-devel
# libXi >= 1.8 for the XIGesturePinchEvent/XIGestureSwipeEvent types.
# On EL9 a newer libXi is provided by this COPR project itself.
BuildRequires: libXi-devel >= 1.8
BuildRequires: libxcb-devel
BuildRequires: pixman-devel
BuildRequires: libdrm-devel
@ -90,6 +95,10 @@ export LDFLAGS="%{?build_ldflags}"
%{_mandir}/man1/12to11.1*
%changelog
* Tue Sep 15 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 1.0.0-2
- Require libXi-devel >= 1.8 for the XI 2.4 gesture event types; on EL9
the newer libXi is supplied by this COPR project (EL9 ships 1.7.10).
* Tue Sep 15 2026 Anders da Silva Rytter Hansen <andersrh@users.noreply.github.com> - 1.0.0-1
- Update to v1.0.0, the first stable release of the fork.
- Switch from imake/xmkmf to the new upstream Makefile build system.