%global vcpkg_version 2025.12.12 %global vcpkg_dir vcpkg-%{vcpkg_version} %global logo_url https://beammp.com/img/beammp-logo.png Name: BeamMP-Launcher Version: 2.7.0 Release: 2%{?dist} Summary: Unofficial package of the BeamMP Launcher License: AGPL-3.0 URL: https://github.com/BeamMP/BeamMP-Launcher Source0: https://github.com/BeamMP/BeamMP-Launcher/archive/refs/tags/v%{version}.tar.gz#/%{name}-v%{version} Source1: https://github.com/microsoft/vcpkg/archive/refs/tags/%{vcpkg_version}.tar.gz#/vcpkg-%{vcpkg_version} BuildRequires: kernel-devel BuildRequires: kernel-headers BuildRequires: git BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: make BuildRequires: cmake BuildRequires: perl BuildRequires: perl-IPC-Cmd BuildRequires: perl-FindBin BuildRequires: perl-File-Compare BuildRequires: perl-File-Copy Requires: glibc Requires: libstdc++ Requires: libgcc Requires: libcap Requires: systemd-libs %description A Lua mod bringing online multiplayer to BeamNG.drive! The launcher is the way we communicate to outside the game, it does a few automated actions such as but not limited to: - downloading the mod - launching the game - creating a connection to a server. %prep # setup for the wget command, although it'll already be there anyways just in case mkdir -p %{builddir} # ... unpack Source0 %setup -q # ... unpack Source1 (-a(fter) 1) %setup -q -T -D -a 1 # TODO wget -O %{builddir}/beammp-launcher.png %{logo_url} # after adding logo, make sure to move it to the right place! ./%{vcpkg_dir}/bootstrap-vcpkg.sh %build VCPKG_ROOT="$(pwd)/%{vcpkg_dir}" PATH=$VCPKG_ROOT:$PATH cmake . \ -B bin \ -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake \ -DVCPKG_TARGET_TRIPLET=x64-linux PATH=$VCPKG_ROOT:$PATH cmake \ --build bin \ --parallel # create these two directories so that they exist when we finally move our apps there mkdir -p "%{buildroot}%{_bindir}" mkdir -p "%{buildroot}%{_datadir}/applications/" tee "%{buildroot}%{_datadir}/applications/com.beammp.launcher.desktop" < - 2.7.0-2 - added runtime dependencies of beammp * Sun Dec 28 2025 gerelef <44060598+gerelef@users.noreply.github.com> - v4.20.2-1 - Initial spec implementation for BeamMP-Launcher