You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rust-exa/rust-exa.spec

84 lines
2.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Generated by rust2rpm 18
%bcond_without check
%global __cargo_skip_build 0
%global crate exa
Name: rust-%{crate}
Version: 0.10.1
Release: %autorelease
Summary: Modern replacement for ls
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/exa
Source: %{crates_source}
# Initial patched metadata
# * disable feature for vendored OpenSSL
Patch0: exa-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
exa is a modern replacement for the command-line program ls that ships
with Unix and Linux operating systems, with more features and better defaults.
It uses colours to distinguish file types and metadata.
It knows about symlinks, extended attributes, and Git. And its small, fast,
and just one single binary.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# MIT
# MIT or ASL 2.0
# MIT or ASL 2.0 or zlib
# Unlicense or MIT
# zlib or ASL 2.0 or MIT
License: MIT
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENCE
%doc README.md
%{_bindir}/exa
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/exa.bash
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/exa.fish
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_exa
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%install
%cargo_install
install -Dpm0644 -T completions/completions.bash \
%{buildroot}%{_datadir}/bash-completion/completions/exa.bash
install -Dpm0644 -T completions/completions.fish \
%{buildroot}%{_datadir}/fish/vendor_completions.d/exa.fish
install -Dpm0644 -T completions/completions.zsh \
%{buildroot}%{_datadir}/zsh/site-functions/_exa
%if %{with check}
%check
%cargo_test
%endif
%changelog
%autochangelog