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