# Generated by rust2rpm 28 %bcond check 1 %global crate lsd %global _trivial .0 %global _buildid .1 Name: rust-lsd Version: 1.2.0 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Ls command with a lot of pretty colors and some other stuff License: Apache-2.0 URL: https://crates.io/crates/lsd Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * relax clap dependencies from 4.5.* to 4.5 # * update lscolors from 0.20 to 0.21: https://github.com/lsd-rs/lsd/pull/1195 # * update uzers from 0.11.3 to 0.12: https://github.com/lsd-rs/lsd/pull/1208 # * update xdg from 2.5 to 3: https://github.com/lsd-rs/lsd/pull/1209 # based on https://github.com/lsd-rs/lsd/pull/1209 BuildRequires: rust-toolset %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 # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT License: %{shrink: (MIT OR Apache-2.0) AND BSD-3-Clause AND GPL-2.0-only WITH GCC-exception-2.0 AND MIT AND Unicode-DFS-2016 AND Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND MIT AND MPL-2.0 AND Unicode-3.0 AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/lsd %{bash_completions_dir}/lsd.bash %{fish_completions_dir}/lsd.fish %{zsh_completions_dir}/_lsd %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build export OPENSSL_NO_VENDOR=1 mkdir completions export SHELL_COMPLETIONS_DIR=completions %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies %install %cargo_install install -Dpm 0644 completions/lsd.bash -t %{buildroot}/%{bash_completions_dir} install -Dpm 0644 completions/lsd.fish -t %{buildroot}/%{fish_completions_dir} install -Dpm 0644 completions/_lsd -t %{buildroot}/%{zsh_completions_dir} %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 * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored build