%global debug_package %{nil} %global i18n_domain org.miryugaming.miryudot Name: miryudot Version: 45.0.0 Release: 1%{?dist} Summary: Install and manage the Miryu dotfiles for niri and Noctalia License: MIT URL: https://github.com/evernightvista/miryudot Source0: https://github.com/evernightvista/miryudot/archive/refs/heads/main.zip BuildRequires: cargo BuildRequires: rust BuildRequires: gcc BuildRequires: gettext Requires: niri Requires: noctalia Obsoletes: miryu-niri-config %description miryudot installs the Miryu niri configuration and the Noctalia state files, backs up existing configurations to ~/.config/miryu-dot-backup-, updates the installed .kdl files and validates ~/.config/niri/config.kdl. Messages are available in German, French, Japanese, Korean, Simplified Chinese and Traditional Chinese. %prep %setup -q -n %{name}-main %build cargo build --release --locked %install install -Dpm 0755 target/release/miryudot %{buildroot}%{_bindir}/miryudot install -d %{buildroot}%{_datadir}/miryudot/niri-config cp -a niri-config/. %{buildroot}%{_datadir}/miryudot/niri-config/ for lang in de fr ja ko zh_CN zh_TW; do install -d %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES msgfmt -c -o %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{i18n_domain}.mo po/${lang}.po done %find_lang %{i18n_domain} %files -f %{i18n_domain}.lang %license LICENSE %{_bindir}/miryudot %{_datadir}/miryudot %changelog * Wed Nov 18 2026 KairikiFedora <13278297951@sina.cn> - 45.0.0-1 - Initial Release