# Repackages upstream's release build (static musl binaries). Building a current yazi from source needs a newer Rust # than EL10 ships. %global debug_package %{nil} %global __strip /bin/true %global __os_install_post %{nil} %global _build_id_links none Name: yazi Version: 26.9.1 Release: 2%{?dist} Summary: Blazing fast terminal file manager # The binaries include their Rust crates (mostly MIT and Apache-2.0) License: MIT URL: https://github.com/sxyazi/yazi # Corresponding source: https://github.com/sxyazi/yazi/tree/v%%{version} Source0: yazi-x86_64-unknown-linux-musl.zip Source1: yazi.desktop Source2: yazi-logo.png Source3: LICENSE-ICONS ExclusiveArch: x86_64 BuildRequires: unzip %description Yazi is a terminal file manager written in Rust, based on async I/O. It shows image, video, PDF and archive previews, and has a plugin system. %prep %setup -q -c -T unzip -q %{SOURCE0} cp %{SOURCE3} . %build # nothing to build %install cd yazi-x86_64-unknown-linux-musl install -D -m755 -p yazi %{buildroot}%{_bindir}/yazi install -D -m755 -p ya %{buildroot}%{_bindir}/ya install -D -m644 -p %{SOURCE1} %{buildroot}%{_datadir}/applications/yazi.desktop install -D -m644 -p %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/yazi.png install -D -m644 -p completions/yazi.bash %{buildroot}%{bash_completions_dir}/yazi install -D -m644 -p completions/ya.bash %{buildroot}%{bash_completions_dir}/ya install -D -m644 -p completions/yazi.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/yazi.fish install -D -m644 -p completions/ya.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/ya.fish install -D -m644 -p completions/_yazi %{buildroot}%{_datadir}/zsh/site-functions/_yazi install -D -m644 -p completions/_ya %{buildroot}%{_datadir}/zsh/site-functions/_ya %files %license yazi-x86_64-unknown-linux-musl/LICENSE LICENSE-ICONS %doc yazi-x86_64-unknown-linux-musl/README.md %{_bindir}/yazi %{_bindir}/ya %{_datadir}/applications/yazi.desktop %{_datadir}/pixmaps/yazi.png %{bash_completions_dir}/yazi %{bash_completions_dir}/ya %{_datadir}/fish/vendor_completions.d/yazi.fish %{_datadir}/fish/vendor_completions.d/ya.fish %{_datadir}/zsh/site-functions/_yazi %{_datadir}/zsh/site-functions/_ya %changelog %autochangelog