Name: vs-launcher Version: 1.5.8 Release: 2%{?dist} Summary: Unofficial launcher and version manager for Vintage Story License: Custom URL: https://vsldocs.xurxomf.xyz/ Source0: https://github.com/XurxoMF/vs-launcher/releases/download/%{version}/vs-launcher-%{version}.deb BuildArch: x86_64 BuildRequires: binutils Requires: gtk3 Requires: libnotify Requires: nss Requires: libXScrnSaver Requires: libXtst Requires: xdg-utils Requires: at-spi2-core Requires: util-linux Requires: libsecret Requires: dotnet-runtime-8.0 %description Unofficial launcher and version manager for Vintage Story %prep ar x %{SOURCE0} mkdir -p %{_builddir}/vs-launcher tar -xf data.tar.xz -C %{_builddir}/vs-launcher %install mkdir -p %{buildroot}%{_datadir}/licenses/%{name} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications cp -R %{_builddir}/vs-launcher/* %{buildroot} cat > %{buildroot}%{_datadir}/licenses/%{name}/LICENSE << EOF Proprietary software owned by XurxoMF All rights reserved. You may NOT sell this software in any way. You may NOT copy, compile or distribute this software in its unmodified form. You may read it, learn from it, and use it as a basis for contributions to this porject like Pull Request or code suggestions. In other words, please don't distribute this software. You can make your own modifications for personal or family use, but not to distribute. EOF cat > %{buildroot}%{_bindir}/vs-launcher-wrapper << EOF #!/bin/bash echo "Running VS Launcher" UPDATE=false "/opt/VS Launcher/vs-launcher" "$@" echo "VS Launcher closed: $?" EOF rm -rf %{buildroot}%{_datadir}/applications/vs-launcher.desktop cat > %{buildroot}%{_datadir}/applications/vs-launcher.desktop << EOF [Desktop Entry] Name=VS Launcher Comment=Unofficial launcher and version manager for Vintage Story Exec=vs-launcher-wrapper Icon=vs-launcher Terminal=false Type=Application Categories=Game;Utility; StartupNotify=true EOF %files %license %{_datadir}/licenses/%{name}/LICENSE %{_bindir}/vs-launcher-wrapper %{_datadir}/applications/vs-launcher.desktop "/opt/VS Launcher/" %{_datadir}/doc/vs-launcher/ %{_datadir}/icons/hicolor/*/apps/vs-launcher.png %changelog * Sat Dec 07 2024 XurxoMF - 1.5.8-2 - Initial RPM package conversion from PKGBUILD