File gamescope-session-steam.spec of Package gamescope-session-steam
Name: gamescope-session-steam
Version: 20240111.ac3be55
Release: 0
Summary: Steam Big Picture Mode session based on gamescope for openSUSE
License: MIT
URL: https://github.com/ChimeraOS/gamescope-session
BuildRequires: dejavu-fonts
BuildRequires: systemd
BuildRequires: gamescope-session
Requires: gamescope-plus
Requires: gamescope-session
Requires: python3
Requires: systemd
Requires: dejavu-fonts
BuildArch: noarch
Source0: %{name}-%{version}.tar.xz
%description
Steam Big Picture Mode session based on gamescope for openSUSE
%package generic
Summary: Missing bits for non-yuga systems
URL: https://github.com/ChimeraOS/gamescope-session-steam
Requires: gamescope-session-steam
Conflicts: deckifier
BuildArch: noarch
%description generic
Missing bits for non-yuga systems
%prep
%setup
%build
%install
cp -rv usr %{buildroot}/usr
# font workaround for initial big picture mode startup
mkdir -p %{buildroot}/usr/share/fonts/truetype/ttf-dejavu
ln -s /usr/share/fonts/truetype/DejaVuSans.ttf %{buildroot}/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
%{__sed} -i '1s|^#!/bin/env python3|#!/usr/bin/python3|' %{buildroot}/usr/bin/steam-http-loader
chmod +x %{buildroot}/usr/share/gamescope-session-plus/sessions.d/steam
%files
/usr/share/fonts/*
/usr/bin/steam-http-loader
/usr/share/applications
/usr/share/gamescope-session-plus/sessions.d
/usr/share/wayland-sessions
%files generic
/usr/bin/jupiter-biosupdate
/usr/bin/steamos-select-branch
/usr/bin/steamos-session-select
/usr/bin/steamos-update
/usr/bin/steamos-polkit-helpers
/usr/share/polkit-1/actions
%changelog