Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37919349
en ru br
Репозитории ALT

Группа :: Система/Основа
Пакет: exa

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin