# Generated by rust2rpm 28 %bcond check 1 %global crate tealdeer %global _trivial .0 %global _buildid .1 %global __brp_mangle_shebangs /usr/bin/true Name: rust-tealdeer Version: 1.7.3 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Fetch and show tldr help pages for many CLI commands License: MIT OR Apache-2.0 URL: https://crates.io/crates/tealdeer Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * use native-tls instead of rustls BuildRequires: rust-toolset BuildRequires: openssl-devel %global _description %{expand: Fetch and show tldr help pages for many CLI commands. Full featured offline client with caching support.} %description %{_description} %package -n %{crate} Summary: %{summary} # 0BSD OR MIT OR Apache-2.0 # 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 Zlib OR Apache-2.0 # Unicode-3.0 # Unlicense OR MIT License: %{shrink: Apache-2.0 AND MIT AND Unicode-3.0 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (Apache-2.0 OR BSL-1.0) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/tldr %{bash_completions_dir}/tldr.bash %{fish_completions_dir}/tldr.fish %{zsh_completions_dir}/_tldr %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep -v vendor %build export OPENSSL_NO_VENDOR=1 %cargo_build %{cargo_license_summary} %{cargo_vendor_manifest} %{cargo_license} > LICENSE.dependencies %install %cargo_install # install shell completions install -Dpm0644 completion/bash_tealdeer %{buildroot}/%{bash_completions_dir}/tldr.bash install -Dpm0644 completion/fish_tealdeer %{buildroot}/%{fish_completions_dir}/tldr.fish install -Dpm0644 completion/zsh_tealdeer %{buildroot}/%{zsh_completions_dir}/_tldr %if %{with check} %check # * integration tests need a working internet connection %cargo_test -- --bins %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored build