%global debug_package %{nil} %global forgeurl https://github.com/Supreeeme/xwayland-satellite %global branch main Name: xwayland-satellite Version: 0.8.1^20260612git8575d0e Release: 1%{?dist} Summary: Rootless Xwayland integration for Wayland compositors (git snapshot) License: MPL-2.0 URL: %{forgeurl} Source0: %{forgeurl}/archive/8575d0ef55d70f9b4c46b6bffb3accf912217e1e.tar.gz#/xwayland-satellite-8575d0ef55d70f9b4c46b6bffb3accf912217e1e.tar.gz BuildRequires: cargo BuildRequires: rust >= 1.85.0 BuildRequires: clang BuildRequires: pkgconfig(xcb) BuildRequires: pkgconfig(xcb-cursor) BuildRequires: pkgconfig(systemd) Requires: xorg-x11-server-Xwayland >= 23.1 Provides: xwayland-satellite = %{version}-%{release} %description xwayland-satellite grants rootless Xwayland integration to any Wayland compositor implementing xdg_wm_base and viewporter. It is designed for compositors that prefer not to implement Xwayland support directly, allowing legacy X11 applications to function alongside native Wayland programs. %prep %autosetup -n xwayland-satellite-8575d0ef55d70f9b4c46b6bffb3accf912217e1e %build export RUSTFLAGS="%{build_rustflags}" cargo build --release --locked -F systemd %install install -Dpm 0755 target/release/xwayland-satellite -t %{buildroot}%{_bindir}/ # Install systemd user service install -Dpm 0644 resources/xwayland-satellite.service %{buildroot}%{_userunitdir}/xwayland-satellite.service # Fix ExecStart path sed -i 's|/usr/local/bin/|%{_bindir}/|' %{buildroot}%{_userunitdir}/xwayland-satellite.service %post %systemd_user_post xwayland-satellite.service %preun %systemd_user_preun xwayland-satellite.service %postun %systemd_user_postun_with_restart xwayland-satellite.service %files %license LICENSE %doc README.md %{_bindir}/xwayland-satellite %{_userunitdir}/xwayland-satellite.service %changelog * Wed Jan 01 2025 Automated Build - Automated git snapshot build