File snow.spec of Package snow
#
# spec file for package snow
#
# Copyright (c) 2025 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/
#
Name: snow
Version: 1.1.0+20250928_fac83ac
Release: 0
Summary: Classic Macintosh emulator
License: MIT
URL: https://github.com/twvd/snow
Source0: snow-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: https://raw.githubusercontent.com/RegenJacob/egui_logger/refs/heads/main/README.md#/egui_logger_README.md
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(sdl2)
BuildRequires: cargo
BuildRequires: cargo-packaging
BuildRequires: rust
%description
Snow emulates classic (Motorola 68k-based) Macintosh computers.
It features a graphical user interface operate and debug the
emulated machine. The aim of this project is to emulate the
Macintosh on a hardware-level as much as possible, as opposed
to emulators that patch the ROM or intercept system calls.
%prep
%autosetup -p0 -n %{name}-%{version} -a1
cp %{SOURCE2} %{_builddir}/%{name}-%{version}/vendor/egui_logger-0.6.2/README.md
%build
export BUILT_OVERRIDE_snow_frontend_egui_GIT_COMMIT_HASH_SHORT=%(echo %{version} | sed 's:.*_\(.*\):\1:')
export BUILT_OVERRIDE_snow_frontend_egui_GIT_DIRTY=false
%{cargo_build} --verbose
%install
install -Dm 755 %{_builddir}/snow-%{version}/target/release/snow_frontend_egui %{buildroot}%{_bindir}/snow
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_bindir}/snow
%changelog