Name: flux-neo-platform Version: 0.1 Release: 2%{?dist} Summary: Flux MacBook Neo platform integration License: MIT BuildArch: noarch Source0: flux-niri-session Source1: 90-flux-neo-renderer.conf Source2: 91-flux-neo-input.conf Source3: finish-boot.sh Source4: 80-flux-neo-mt7932.conf Source5: LICENSE.Aurora Source6: desktop.tar BuildRequires: python3 Requires: flux-neo-release Requires: ibm-plex-sans-fonts Requires: jetbrains-mono-fonts Requires: bash Requires: niri Requires: NetworkManager Requires: dracut-asahi Requires: flux-neo-boot %description Versioned session, NetworkManager and dracut defaults for the experimental Flux Neo Fedora Remix. Includes the KIWI boot finalizer. Device-specific firmware must be supplied locally during image composition. %prep %setup -q -c -T tar -xf %{SOURCE6} # The desktop source also serves diagnostics; omit their fixed display mode. python3 - <<'PYTHON' from pathlib import Path p = Path('desktop/niri/config.kdl') s = p.read_text() start = s.index('output "eDP-1" {') end = s.index('\n}', start) + 2 p.write_text(s[:start] + s[end:] + '\ndebug {}\nenvironment { ASAHI_MESA_DEBUG "nocompress"; TERMINAL "ghostty"; }\n') PYTHON %build %install mkdir -p %{buildroot}/etc/skel/.config cp -a desktop/. %{buildroot}/etc/skel/.config/ install -Dpm0644 %{SOURCE5} %{buildroot}%{_licensedir}/%{name}/LICENSE.Aurora install -Dpm0755 %{SOURCE0} %{buildroot}%{_bindir}/flux-niri-session install -Dpm0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/systemd/user/niri.service.d/90-flux-neo-renderer.conf install -Dpm0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/dracut.conf.d/91-flux-neo-input.conf install -Dpm0755 %{SOURCE3} %{buildroot}%{_libexecdir}/flux-neo-finish-boot install -Dpm0644 %{SOURCE4} %{buildroot}%{_prefix}/lib/NetworkManager/conf.d/80-flux-neo-mt7932.conf %files %config(noreplace) /etc/skel/.config/niri/ %config(noreplace) /etc/skel/.config/noctalia/ %config(noreplace) /etc/skel/.config/ghostty/ %license %{_licensedir}/%{name}/LICENSE.Aurora %{_bindir}/flux-niri-session %config(noreplace) %{_sysconfdir}/systemd/user/niri.service.d/90-flux-neo-renderer.conf %config(noreplace) %{_sysconfdir}/dracut.conf.d/91-flux-neo-input.conf %{_libexecdir}/flux-neo-finish-boot %{_prefix}/lib/NetworkManager/conf.d/80-flux-neo-mt7932.conf