Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37853252
en ru br
ALT Linux repos
S:0.10.1-alt2

Group :: System/Base
RPM: exa

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1

Name: exa
Version: 0.10.1
Release: alt2

Summary: A modern replacement for ls
License: MIT
Group: System/Base
Url: https://the.exa.website/

#Upstream: https://github.com/ogham/exa

Source: %name-%version.tar
Source1: %name-%version-vendor.tar
Patch0: %name-%version-alt.patch

BuildRequires: /proc
BuildRequires: rust
BuildRequires: rust-cargo
BuildRequires: libgit2-devel
BuildRequires: cmake


%description
exa is a modern replacement for the venerable file-listing
command-line program ls that ships with Unix and Linux operating
systems, giving it more features and better defaults. It uses
colours to distinguish file types and metadata. It knows about
symlinks, extended attributes, and Git. And it's small, fast,
and just one single binary.

%prep
%setup -a1
%patch0 -p1

# Disable lto to fix build on rust 1.61.0

# See: https://github.com/ogham/exa/issues/1068
sed -i -e "s/lto = true/lto = false/" Cargo.toml

mkdir -p .cargo
cat > .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release %{?_smp_mflags} --all-targets --offline

%install
install -D -m755 target/release/exa %buildroot%_bindir/exa

%files
%doc LICENCE
%doc README.md
%_bindir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin