# Generated by rust2rpm 21 %bcond_without check %global crate git-delta Name: rust-%{crate} Version: 0.13.0 Release: %autorelease Summary: Syntax-highlighting pager for git # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/git-delta Source0: %{crates_source} Source1: LICENSE.dependencies ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Syntax-highlighting pager for git.} %description %{_description} %package -n %{crate} Summary: %{summary} # 0BSD or MIT or ASL 2.0 # ASL 2.0 # ASL 2.0 or Boost # ASL 2.0 or MIT # BSD # CC0 # LGPLv3+ # MIT # MIT OR Apache-2.0 # MIT and GPLv2 with exceptions and BSD # MIT or ASL 2.0 # MIT or ASL 2.0 or zlib # MIT or zlib or ASL 2.0 # Unlicense or MIT # zlib or ASL 2.0 or MIT License: ASL 2.0 and BSD and CC0 and GPLv2 with exceptions and LGPLv3+ and MIT # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc ARCHITECTURE.md %doc CONTRIBUTING.md %doc README.md %{_bindir}/delta %dir %{_datadir}/bash-completion %dir %{_datadir}/bash-completion/completions %{_datadir}/bash-completion/completions/delta.bash %dir %{_datadir}/zsh %dir %{_datadir}/zsh/site-functions %{_datadir}/zsh/site-functions/_delta %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 cp %{SOURCE1} . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %if %{with check} echo 'git-core' %endif %build %cargo_build %install %cargo_install install -Dpm0644 etc/completion/completion.bash \ -T %{buildroot}%{_datadir}/bash-completion/completions/delta.bash install -Dpm0644 etc/completion/completion.zsh \ -T %{buildroot}%{_datadir}/zsh/site-functions/_delta %if %{with check} %check %cargo_test %endif %changelog %autochangelog