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.
rust-zoxide/rust-zoxide.spec

73 lines
1.4 KiB

# Generated by rust2rpm 17
%bcond_without check
%global __cargo_skip_build 0
%global crate zoxide
Name: rust-%{crate}
Version: 0.5.0
Release: %autorelease
Summary: Faster way to navigate your filesystem
# Upstream license specification: MIT
License: MIT
URL: https://crates.io/crates/zoxide
Source: %{crates_source}
# Initial patched metadata
# * Update dirs-next to 2, upstreamed
Patch0: zoxide-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
%global _description %{expand:
Faster way to navigate your filesystem.}
%description %{_description}
%package -n %{crate}
Summary: %{summary}
# CC0
# MIT
# MIT or ASL 2.0
# Unlicense or MIT
License: MIT and CC0
# For interactive mode
Recommends: fzf
%description -n %{crate} %{_description}
%files -n %{crate}
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/zoxide
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep
%generate_buildrequires
%cargo_generate_buildrequires
%if %{with check}
echo '/usr/bin/bash'
echo '/usr/bin/fish'
echo '/usr/bin/shellcheck'
echo '/usr/bin/xonsh'
echo '/usr/bin/zsh'
%endif
%build
%cargo_build
%install
%cargo_install
%if %{with check}
%check
%cargo_test -- -- --skip shell::tests::test_pwsh --skip shell::tests::test_shfmt_bash --skip shell::tests::test_shfmt_posix
%endif
%changelog
%autochangelog