## START: Set by rpmautospec %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 3; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by rust2rpm 17 %bcond_without check %global crate skim Name: rust-%{crate} Version: 0.9.4 Release: %autorelease Summary: Fuzzy Finder in Rust # Upstream license specification: MIT License: MIT URL: https://crates.io/crates/skim Source: %{crates_source} # Initial patched metadata # * Bump from nix 0.19 to 0.20 # * Bump from vte 0.9 to 0.10 # * Bump from shlex to 1 Patch0: skim-fix-metadata.diff ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Fuzzy Finder in rust!.} %description %{_description} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # ASL 2.0 or MIT # MIT # MIT or ASL 2.0 # MPLv2.0 # Unlicense or MIT License: MIT and MPLv2.0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/sk %{_bindir}/sk-tmux %{_mandir}/man1/sk.1* %{_mandir}/man1/sk-tmux.1* %{_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 %endif %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 README.md CHANGELOG.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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 %ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml %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 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install install -Dpm0755 -t %{buildroot}%{_bindir} \ bin/sk-tmux install -Dpm0644 -t %{buildroot}%{_mandir}/man1 \ man/man1/* install -d %{buildroot}%{_datadir}/skim # Install vim plugin install -Dpm0644 -t %{buildroot}%{_datadir}/vim/vimfiles/plugin \ plugin/skim.vim install -Dpm0644 -t %{buildroot}%{_datadir}/nvim/site/plugin \ plugin/skim.vim # 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) install -Dpm0644 -t %{buildroot}%{_datadir}/skim/shell \ shell/key-bindings.* %if %{with check} %check %ifarch %{arm} %{ix86} # integer overflow in test code on 32-bit architectures # https://github.com/lotabout/skim/issues/415 %cargo_test -- -- --skip test_atoi %else %cargo_test %endif %endif %changelog * Sat Jul 17 2021 Robert-André Mauchin 0.9.4-3 - Uncommitted changes * Tue Jun 29 2021 Fabio Valentini 0.9.4-2 - work around harmless test failure on 32-bit architectures * Tue Jun 29 2021 Fabio Valentini 0.9.4-1 - update to version 0.9.4 * Wed Jan 27 2021 Fedora Release Engineering 0.8.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Dec 28 2020 Igor Raits 0.8.2-5 - Rebuild * Sun Aug 16 2020 Igor Raits 0.8.2-4 - Rebuild * Sat Aug 01 2020 Fedora Release Engineering 0.8.2-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering 0.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jun 26 2020 Igor Raits 0.8.2-1 - Update to 0.8.2 * Wed Apr 08 2020 Josh Stone 0.8.1-1 - Update to 0.8.1 * Sun Feb 23 2020 Igor Raits 0.8.0-1 - Update to 0.8.0 * Thu Jan 30 2020 Fedora Release Engineering 0.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Jan 24 2020 Josh Stone 0.7.0-1 - Update to 0.7.0 * Sun Dec 15 2019 Igor Gnatenko 0.6.9-3 - Fixup changelog * Sun Dec 15 2019 Igor Gnatenko 0.6.9-2 - Update derive_builder to 0.9 * Mon Sep 23 2019 Igor Gnatenko 0.6.9-1 - Update to 0.6.9 * Fri Jul 26 2019 Fedora Release Engineering 0.6.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Jun 24 2019 Igor Gnatenko 0.6.8-1 - Update to 0.6.8 * Wed Jun 05 2019 Josh Stone 0.6.7-2 - Bump nix to 0.14 * Fri May 31 2019 Robert-André Mauchin 0.6.7-1 - Release 0.6.7 * Wed Apr 24 2019 Igor Gnatenko 0.6.6-1 - Initial import