# Generated by rust2rpm 28 %bcond check 1 %global crate git-delta %global _trivial .0 %global _buildid .1 Name: rust-git-delta Version: 0.19.1 Release: 1%{?dist}%{?_trivial}%{?_buildid} Summary: Syntax-highlighting pager for git License: MIT URL: https://crates.io/crates/git-delta Source: %{name}-%{version}-processed.tar.gz # Manually created patch for downstream crate metadata changes # * bump rstest dev-dependency from 0.21.0 to 0.26.0: # https://github.com/dandavison/delta/pull/1970#issuecomment-3153268557 # * relax console dependency from 0.15.0 to >=0.15.0,<0.17.0 # * bump terminal-colorsaurus from 0.4.8 to 1.0.3: # https://github.com/dandavison/delta/pull/2119 # * https://github.com/dandavison/delta/pull/2119 BuildRequires: rust-toolset %if %{with check} BuildRequires: git-core %endif %global _description %{expand: A syntax-highlighting pager for git.} %description %{_description} %package -n %{crate} Summary: %{summary} # (Apache-2.0 OR MIT) AND BSD-3-Clause # (MIT OR Apache-2.0) AND Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND CC-BY-SA-3.0 AND MIT AND Unlicense AND WTFPL # (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 # 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 # LGPL-3.0-or-later # MIT # MIT OR Apache-2.0 # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unicode-3.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: %{shrink: MIT AND 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND CC-BY-SA-3.0 AND GPL-2.0-only WITH GCC-exception-2.0 AND LGPL-3.0-or-later AND MIT AND MPL-2.0 AND Unicode-3.0 AND Unicode-DFS-2016 AND Unlicense AND WTFPL AND (0BSD OR MIT OR Apache-2.0) 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 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 %license LICENSE-bat %license LICENSE.dependencies %license cargo-vendor.txt %doc ARCHITECTURE.md %doc CONTRIBUTING.md %doc README.md %{_bindir}/delta %{bash_completions_dir}/delta.bash %{fish_completions_dir}/delta.fish %{zsh_completions_dir}/_delta %dir %{_datadir}/delta %{_datadir}/delta/themes.gitconfig %prep %autosetup -n %{crate}-%{version} -p1 cp -p src/utils/bat/LICENSE LICENSE-bat %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 etc/completion/completion.bash \ -T %{buildroot}/%{bash_completions_dir}/delta.bash install -Dpm0644 etc/completion/completion.fish \ -T %{buildroot}/%{fish_completions_dir}/delta.fish install -Dpm0644 etc/completion/completion.zsh \ -T %{buildroot}/%{zsh_completions_dir}/_delta install -dm 0755 %{buildroot}%{_datadir}/delta/ install -Dpm0644 themes.gitconfig \ -T %{buildroot}%{_datadir}/delta/themes.gitconfig %if %{with check} %check %cargo_test %endif %changelog * Fri Jul 03 2026 AL2023 rebuild - %{version}-1 - AL2023 rust-toolset vendored build