Name: OpenGamepadUI-session Version: 0.0.git.880.dfe49ed1 Release: 1%{?dist} Summary: Gamescope session for OpenGamepadUI URL: https://github.com/ublue-os/bazzite License: GPL-3.0-only Source: https://github.com/ShadowBlip/OpenGamepadUI-session/archive/refs/heads/main.tar.gz Patch0: session-select.patch BuildArch: noarch Requires: OpenGamepadUI Requires: gamescope Requires: python3 BuildRequires: systemd-rpm-macros %description Gamescope session for OpenGamepadUI %prep %autosetup -p1 -n %{name}-main %install mkdir -p %{buildroot}%{_bindir}/ mkdir -p %{buildroot}%{_datadir}/ mkdir -p %{buildroot}%{_userunitdir}/ cp -rv usr/bin/* %{buildroot}%{_bindir} cp -rv usr/share/* %{buildroot}%{_datadir} cp -v usr/lib/systemd/user/* %{buildroot}%{_userunitdir} rm -f %{buildroot}%{_bindir}/opengamepadui-session-select rm -f %{buildroot}%{_bindir}/gamepadui-with-qam-session rm -f %{buildroot}%{_datadir}/wayland-sessions/gamepadui-with-qam-session.desktop rm -f %{buildroot}%{_datadir}/opengamepadui-session/device-quirks rm -f %{buildroot}%{_datadir}/opengamepadui-session/gamepadui-with-qam-session rm -f %{buildroot}%{_datadir}/opengamepadui-session/gamescope-session-script rm -f %{buildroot}%{_userunitdir}/gamepadui-with-qam-session.service %files %doc README.md %{_bindir}/opengamepadui-session %{_userunitdir}/opengamepadui-session.service %{_datadir}/polkit-1/actions/org.shadowblip.opengamepadui-session.policy %{_datadir}/wayland-sessions/opengamepadui-session.desktop %changelog