# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 Name: yazi Version: 26.1.22 Release: %autorelease Summary: Yazi file manager License: MIT URL: https://github.com/sxyazi/yazi Source0: %{URL}/archive/v%{version}/%{name}-%{version}.tar.gz Source1: %{name}-%{version}-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: Yazi file manager.} %description %{_description} %files %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/ya %{_bindir}/yazi %{bash_completions_dir}/%{name}.bash %{bash_completions_dir}/ya.bash %{zsh_completions_dir}/_%{name} %{zsh_completions_dir}/_ya %{fish_completions_dir}/%{name}.fish %{fish_completions_dir}/ya.fish %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install install -Dpm 0755 -t %{buildroot}%{_bindir} target/release/yazi target/release/ya install -Dpm 0644 yazi-boot/completions/%{name}.bash yazi-cli/completions/ya.bash -t %{buildroot}%{bash_completions_dir} install -Dpm 0644 yazi-boot/completions/%{name}.fish yazi-cli/completions/ya.fish -t %{buildroot}%{fish_completions_dir} install -Dpm 0644 yazi-boot/completions/_%{name} yazi-cli/completions/_ya -t %{buildroot}%{zsh_completions_dir} %if %{with check} %check %cargo_test %endif %changelog %autochangelog