# Repackages upstream's release build: a static musl binary with libgit2 built in, plus its man pages and completions. %global debug_package %{nil} %global __strip /bin/true %global __os_install_post %{nil} %global _build_id_links none Name: eza Version: 0.23.5 Release: 2%{?dist} Summary: Modern replacement for ls # The binary includes its Rust crates (mostly MIT and Apache-2.0) License: EUPL-1.2 AND MIT URL: https://github.com/eza-community/eza # Corresponding source: https://github.com/eza-community/eza/tree/v%%{version} Source0: eza_x86_64-unknown-linux-musl.tar.gz Source1: completions-%{version}.tar.gz Source2: man-%{version}.tar.gz Source3: LICENSE.txt ExclusiveArch: x86_64 Provides: bundled(libgit2) %description eza is a modern, maintained replacement for the venerable file-listing command ls. It uses colours to distinguish file types and metadata, knows about symlinks, extended attributes and Git, and is a single binary. %prep %setup -q -c -T tar -xzf %{SOURCE0} tar -xzf %{SOURCE1} tar -xzf %{SOURCE2} cp %{SOURCE3} . %build # nothing to build %install install -D -m755 -p eza %{buildroot}%{_bindir}/eza install -D -m644 -p target/man-%{version}/eza.1 %{buildroot}%{_mandir}/man1/eza.1 install -D -m644 -p target/man-%{version}/eza_colors.5 %{buildroot}%{_mandir}/man5/eza_colors.5 install -D -m644 -p target/man-%{version}/eza_colors-explanation.5 %{buildroot}%{_mandir}/man5/eza_colors-explanation.5 install -D -m644 -p target/completions-%{version}/eza %{buildroot}%{bash_completions_dir}/eza install -D -m644 -p target/completions-%{version}/eza.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/eza.fish install -D -m644 -p target/completions-%{version}/_eza %{buildroot}%{_datadir}/zsh/site-functions/_eza %files %license LICENSE.txt %{_bindir}/eza %{_mandir}/man1/eza.1* %{_mandir}/man5/eza_colors.5* %{_mandir}/man5/eza_colors-explanation.5* %{bash_completions_dir}/eza %{_datadir}/fish/vendor_completions.d/eza.fish %{_datadir}/zsh/site-functions/_eza %changelog %autochangelog