File television.spec of Package television
#
# spec file for package television
#
# copyright (c) 2025 munix9@googlemail.com
#
%bcond_without tests
Name: television
Version: 0.13.11
Release: 0
Summary: A cross-platform, fast and extensible general purpose fuzzy finder
License: MIT
URL: https://alexpasmantier.github.io/television/
Source0: %{name}-%{version}.tar.zst
Source1: vendor.tar.zst
BuildRequires: cargo-packaging
BuildRequires: rust >= 1.90
Recommends: bat
Recommends: fd
ExclusiveArch: %{rust_tier1_arches}
%if %{with tests}
BuildRequires: bat
BuildRequires: fd
%endif
%description
Television is a cross-platform, fast and extensible fuzzy finder for
the terminal.
It integrates with your shell and lets you quickly search through any
kind of data source (files, git repositories, environment variables,
docker images, you name it) using a fuzzy matching algorithm and is
designed to be extensible.
%prep
%autosetup -a1 -p1
%build
%{cargo_build}
%install
%{cargo_install}
install -D -m 0644 -t %{buildroot}%{_mandir}/man1 man/tv.1
%check
export PATH=%{buildroot}%{_bindir}:$PATH
tv --version
%if %{with tests}
export TV_CI=1
%{cargo_test} -- \
%if 0%{?suse_version} < 1600
--skip config::cli_overrides::test_cli_working_directory_override \
%endif
%{nil}
%endif
%files
%license LICENSE
%doc CHANGELOG.md README.md docs/*
%{_bindir}/tv
%{_mandir}/man1/tv.1%{?ext_man}
%changelog