File umu-launcher.spec of Package umu-launcher

#
# spec file for package umu-launcher
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

%define pythons python311

Name:           umu-launcher
Version:        0.1RC3
Release:        0
Summary:        Unified Linux Wine Game Launcher
License:        GPL-3.0
Group:          Amusements/Games/Other
URL:            https://github.com/Open-Wine-Components/umu-launcher
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  meson >= 0.54.0
BuildRequires:  ninja
BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  scdoc
Requires:       %{python_flavor}

%description
This is a unified launcher for windows games on linux. It is essentially a copy of the Steam Linux Runtime/Steam Runtime Tools (https://gitlab.steamos.cloud/steamrt/steam-runtime-tools) that Valve uses for proton, with some modifications made so that it can be used outside of Steam.

%prep
%setup -q -n %{name}-%{version}
# rpmlint
chmod -x README.md
sed -i -e 's|\/usr\/bin\/env sh|\/usr\/bin\/sh|g' umu/umu-run.in
sed -i -e 's|\/usr\/bin\/env python3|\/usr\/bin\/python%python_bin_suffix|g' umu/umu_run.py

%build
./configure.sh --prefix=%{_libexecdir}/umu-launcher
make %{?_smp_mflags}

%install
%make_install
mkdir %{buildroot}%{_bindir}
ln -sf %{_libexecdir}/umu-launcher/bin/umu-run %{buildroot}%{_bindir}/umu-run

%files
%license LICENSE
%doc README.md
%dir %{_libexecdir}/umu-launcher
%dir %{_libexecdir}/umu-launcher/bin
%dir %{_libexecdir}/umu-launcher/share/
%dir %{_libexecdir}/umu-launcher/share/man
%dir %{_libexecdir}/umu-launcher/share/man/*
%dir %{_libexecdir}/umu-launcher/share/umu
%{_bindir}/umu-run
%{_libexecdir}/umu-launcher/bin/umu-run
%{_libexecdir}/umu-launcher/share/man/man*/umu.*
%{_libexecdir}/umu-launcher/share/umu/umu-launcher/*
%{_libexecdir}/umu-launcher/share/umu/*


%changelog
openSUSE Build Service is sponsored by