File chess-tui.spec of Package chess-tui
#
# spec file for package chess-tui
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without check
Name: chess-tui
Version: 1.6.1
Release: 0
Summary: A chess TUI implementation in rust
License: MIT
Group: Amusements/Games/Board/Chess
URL: https://github.com/thomas-mauran/chess-tui
Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo >= 1.81.0
BuildRequires: cargo-packaging
Recommends: stockfish
ExclusiveArch: %{rust_arches}
%description
A chess TUI implementation in rust.
%prep
%autosetup -p1 -a1
sed -i 's|/opt/.*\(stockfish\)|/usr/bin/\1|' src/ui/popups.rs
%build
%{cargo_build}
%install
%{cargo_install}
%if %{with check}
%check
%{cargo_test}
%endif
%files
%doc CONTRIBUTING.md README.md
%{_bindir}/%{name}
%license LICENSE
%changelog