|
|
|
@ -45,6 +45,9 @@ License: MIT and ASL 2.0 and BSD and ISC and LGPLv3+ and zlib
|
|
|
|
|
%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
|
|
|
|
@ -58,8 +61,10 @@ License: MIT and ASL 2.0 and BSD and ISC and LGPLv3+ and zlib
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%cargo_install
|
|
|
|
|
install -Dpm0644 completion/bash/completion.sh \
|
|
|
|
|
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
|
|
|
|
|