%global __brp_check_rpaths %{nil} Name: box64 Version: 0.1 Release: 1%{?dist} Summary: Box64 is a Linux Userspace x86_64 Emulator with a twist License: MIT URL: https://github.com/ptitSeb/box64 Source0: https://github.com/ptitSeb/box64/archive/refs/heads/master.tar.gz BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ %description Box64 is a Linux Userspace x86_64 Emulator with a twist. %prep %autosetup -n box64-main %build mkdir -p build cd build %cmake .. -D M1=1 -D CMAKE_BUILD_TYPE=RelWithDebInfo -B /builddir/build/BUILD/box64-main/build make %{?_smp_mflags} %install cd build export QA_RPATHS=0x0002 %make_install %post # Restart systemd-binfmt to register the new binary format systemctl restart systemd-binfmt %files %license LICENSE %doc README.md /usr/bin/box64 /etc/binfmt.d/box64.conf /etc/box64.box64rc /usr/lib/x86_64-linux-gnu/* %changelog * Mon Jul 15 2024 Your Name - 0.1-1 - Initial package