2020-01-24 02:05:57 +00:00
|
|
|
# Generated by rust2rpm 13
|
2019-04-24 06:39:10 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate skim
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2020-02-23 16:53:09 +00:00
|
|
|
Version: 0.8.0
|
|
|
|
Release: 1%{?dist}
|
2019-04-24 06:39:10 +00:00
|
|
|
Summary: Fuzzy Finder in Rust
|
|
|
|
|
2019-06-24 19:44:09 +00:00
|
|
|
# Upstream license specification: MIT
|
2019-04-24 06:39:10 +00:00
|
|
|
License: MIT
|
|
|
|
URL: https://crates.io/crates/skim
|
|
|
|
Source: %{crates_source}
|
2019-06-05 01:00:03 +00:00
|
|
|
|
2019-04-24 06:39:10 +00:00
|
|
|
ExclusiveArch: %{rust_arches}
|
2019-06-24 19:44:09 +00:00
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
2019-06-24 19:44:09 +00:00
|
|
|
|
|
|
|
%global _description %{expand:
|
|
|
|
Fuzzy Finder in rust!.}
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
%description %{_description}
|
|
|
|
|
2019-06-24 19:44:09 +00:00
|
|
|
%if ! %{__cargo_skip_build}
|
2019-04-24 06:39:10 +00:00
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n %{crate} %{_description}
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.md
|
|
|
|
%{_bindir}/sk
|
|
|
|
%{_bindir}/sk-tmux
|
2019-12-15 13:33:33 +00:00
|
|
|
%{_mandir}/man1/sk.1*
|
|
|
|
%{_mandir}/man1/sk-tmux.1*
|
2019-04-24 06:39:10 +00:00
|
|
|
%{_datadir}/skim/
|
|
|
|
%{_datadir}/vim/vimfiles/plugin/skim.vim
|
|
|
|
%{_datadir}/nvim/site/plugin/skim.vim
|
|
|
|
%dir %{_datadir}/bash-completion
|
|
|
|
%dir %{_datadir}/bash-completion/completions
|
|
|
|
%{_datadir}/bash-completion/completions/sk
|
|
|
|
%dir %{_datadir}/zsh
|
|
|
|
%dir %{_datadir}/zsh/site-functions
|
|
|
|
%{_datadir}/zsh/site-functions/_sk
|
2019-06-24 19:44:09 +00:00
|
|
|
%endif
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGELOG.md README.md
|
2019-12-15 13:33:33 +00:00
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
2019-12-15 13:33:33 +00:00
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
|
|
|
# Cleanup interpreters
|
|
|
|
sed -i -e '/^#!\//, 1d' shell/completion.*
|
|
|
|
sed -i -e '1d;2i#!/bin/bash' bin/sk-tmux
|
2019-06-24 19:44:09 +00:00
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
2019-06-24 19:44:09 +00:00
|
|
|
install -Dpm0755 -t %{buildroot}%{_bindir} \
|
|
|
|
bin/sk-tmux
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 \
|
|
|
|
man/man1/*
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
install -d %{buildroot}%{_datadir}/skim
|
|
|
|
|
|
|
|
# Install vim plugin
|
2019-06-24 19:44:09 +00:00
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/vim/vimfiles/plugin \
|
|
|
|
plugin/skim.vim
|
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/nvim/site/plugin \
|
|
|
|
plugin/skim.vim
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
# Install shell completion
|
|
|
|
install -Dpm0644 shell/completion.bash %{buildroot}%{_datadir}/bash-completion/completions/sk
|
|
|
|
install -Dpm0644 shell/completion.zsh %{buildroot}%{_datadir}/zsh/site-functions/_sk
|
|
|
|
|
|
|
|
# Install shell key bindings (not enabled)
|
2019-06-24 19:44:09 +00:00
|
|
|
install -Dpm0644 -t %{buildroot}%{_datadir}/skim/shell \
|
|
|
|
shell/key-bindings.*
|
2019-04-24 06:39:10 +00:00
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2020-02-23 16:53:09 +00:00
|
|
|
* Sun Feb 23 17:27:21 CET 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 0.8.0-1
|
|
|
|
- Update to 0.8.0
|
|
|
|
|
2020-01-30 22:01:09 +00:00
|
|
|
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2020-01-24 02:05:57 +00:00
|
|
|
* Fri Jan 24 2020 Josh Stone <jistone@redhat.com> - 0.7.0-1
|
|
|
|
- Update to 0.7.0
|
|
|
|
|
2019-12-15 13:36:49 +00:00
|
|
|
* Sun Dec 15 14:29:21 CET 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.9-2
|
2019-12-15 13:33:33 +00:00
|
|
|
- Update derive_builder to 0.9
|
|
|
|
|
2019-09-23 05:59:06 +00:00
|
|
|
* Mon Sep 23 07:58:05 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.9-1
|
|
|
|
- Update to 0.6.9
|
|
|
|
|
2019-07-26 22:04:36 +00:00
|
|
|
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.8-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-06-24 19:44:09 +00:00
|
|
|
* Mon Jun 24 21:43:07 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.8-1
|
|
|
|
- Update to 0.6.8
|
|
|
|
|
2019-06-05 01:00:03 +00:00
|
|
|
* Wed Jun 05 2019 Josh Stone <jistone@redhat.com> - 0.6.7-2
|
|
|
|
- Bump nix to 0.14
|
|
|
|
|
2019-05-31 18:12:57 +00:00
|
|
|
* Fri May 31 20:09:57 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.7-1
|
|
|
|
- Release 0.6.7
|
|
|
|
|
2019-04-24 06:39:10 +00:00
|
|
|
* Sun Apr 14 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.6.6-1
|
|
|
|
- Initial package
|