You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
1.8 KiB
80 lines
1.8 KiB
# Generated by rust2rpm 15
|
|
%bcond_without check
|
|
%global __cargo_skip_build 0
|
|
|
|
%global crate git-delta
|
|
|
|
Name: rust-%{crate}
|
|
Version: 0.1.1
|
|
Release: 2%{?dist}
|
|
Summary: Syntax-highlighting pager for git
|
|
|
|
# Upstream license specification: MIT
|
|
License: MIT
|
|
URL: https://crates.io/crates/git-delta
|
|
Source: %{crates_source}
|
|
# Initial patched metadata
|
|
# * Update console to 0.11, https://github.com/dandavison/delta/pull/143
|
|
# * Update shell-words to 1, https://github.com/dandavison/delta/pull/182
|
|
Patch0: git-delta-fix-metadata.diff
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
%global _description %{expand:
|
|
Syntax-highlighting pager for git.}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n %{crate}
|
|
Summary: %{summary}
|
|
# * ASL 2.0
|
|
# * ASL 2.0 or Boost
|
|
# * ASL 2.0 or MIT
|
|
# * BSD
|
|
# * ISC
|
|
# * LGPLv3+
|
|
# * MIT
|
|
# * MIT or ASL 2.0
|
|
# * Unlicense or MIT
|
|
# * zlib
|
|
License: MIT and ASL 2.0 and BSD and ISC and LGPLv3+ and zlib
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
%files -n %{crate}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{_bindir}/delta
|
|
%dir %{_datadir}/bash-completion
|
|
%dir %{_datadir}/bash-completion/completions
|
|
%{_datadir}/bash-completion/completions/delta.bash
|
|
|
|
%prep
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
%cargo_prep
|
|
|
|
%generate_buildrequires
|
|
%cargo_generate_buildrequires
|
|
|
|
%build
|
|
%cargo_build
|
|
|
|
%install
|
|
%cargo_install
|
|
install -Dpm0644 completion/bash/completion.sh \
|
|
-T %{buildroot}%{_datadir}/bash-completion/completions/delta.bash
|
|
|
|
%if %{with check}
|
|
%check
|
|
%cargo_test
|
|
%endif
|
|
|
|
%changelog
|
|
* Sat May 30 08:01:45 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.1-2
|
|
- Update shell-words to 1
|
|
|
|
* Sat May 02 10:50:26 CEST 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.1.1-1
|
|
- Initial package
|