Add patch defining WL_SUBCOMPOSITOR_ERROR_BAD_PARENT for wayland < 1.22;

applied only on EL9 (which ships wayland 1.21).
This commit is contained in:
Anders da Silva Rytter Hansen 2026-09-15 17:48:11 +02:00
commit 4a34f37718
2 changed files with 29 additions and 2 deletions

View file

@ -17,13 +17,19 @@
Name: 12to11
Version: 1.0.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Wayland to X11 protocol translator
License: GPL-3.0-only
URL: https://github.com/fish4terrisa-MSDSM/12to11
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
# EL9 ships wayland 1.21, which lacks WL_SUBCOMPOSITOR_ERROR_BAD_PARENT
# (added in wayland 1.22). Only needed on EL9.
%if 0%{?rhel} == 9
Patch0: 12to11-1.0.0-wayland-1.21-compat.patch
%endif
# Build dependencies
BuildRequires: make
BuildRequires: gcc
@ -74,7 +80,7 @@ fish4terrisa-MSDSM; the original SourceForge project has been
unmaintained since 2022.
%prep
%autosetup
%autosetup -p1
%build
# Export the RPM build flags: the Makefile uses CFLAGS ?= / LDFLAGS +=
@ -95,6 +101,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-3
- Add patch defining WL_SUBCOMPOSITOR_ERROR_BAD_PARENT for wayland < 1.22;
applied only on EL9 (which ships wayland 1.21).
* 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).