# Generated by rust2rpm 26
%bcond_without check
%global crate lsd
Name: rust-lsd
Version: 1.1.2
Release: %autorelease
Summary: Ls command with a lot of pretty colors and some other stuff
License: Apache-2.0
URL: https://crates.io/crates/lsd
Source: %{crates_source}
# Automatically generated patch to strip dependencies and normalize metadata
Patch: lsd-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * relax clap dependency from 4.3.* to ^4.3
# * bump lscolors dependency from 0.16 to 0.17
Patch: lsd-fix-metadata.diff
BuildRequires: cargo-rpm-macros >= 24
%global _description %{expand:
An ls command with a lot of pretty colors and some other stuff.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# (MIT OR Apache-2.0) AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT
# (MIT OR Apache-2.0) AND Unicode-DFS-2016
# Apache-2.0
# Apache-2.0 OR BSL-1.0
# Apache-2.0 OR MIT
# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
# MIT
# MIT OR Apache-2.0
# MIT OR Apache-2.0 OR Zlib
# MPL-2.0
# Unlicense OR MIT
# Zlib OR Apache-2.0 OR MIT
License: Apache-2.0 AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT)
# LICENSE.dependencies contains a full license breakdown
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%license LICENSE.dependencies
%doc README.md
%{_bindir}/lsd
%prep
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%build
%cargo_build
%{cargo_license_summary}
%{cargo_license} > LICENSE.dependencies
%install
%cargo_install
%if %{with check}
%check
# * skip tests that need to be run from within a git repository
%cargo_test -- -- --skip git::tests::test_git_workflow
%endif
%changelog
%autochangelog