File iamb.spec of Package iamb

#
# spec file for package iamb
#
# Copyright (c) 2023 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_with     tests

Name:           iamb
Version:        0.0.8
Release:        0
Summary:        A Matrix client for the terminal that uses Vim keybindings
License:        Apache-2.0
URL:            https://iamb.chat
#GitHub:        https://github.com/ulyssa/iamb
Source0:        %{name}-%{version}.tar
Source1:        vendor.tar.zst
Source2:        cargo_config

BuildRequires:  cargo-packaging
BuildRequires:  cargo >= 1.66.0

%description
iamb is a work-in-progress, and there's still a lot to be implemented,
but much of the basic client functionality is already present.

%prep
%autosetup -p1 -a1
install -D %{SOURCE2} .cargo/config

%build
%cargo_build

%install
%cargo_install

%if %{with tests}
%check
%cargo_test
%endif

%files
%license LICENSE
%doc CONTRIBUTING.md README.md
%{_bindir}/iamb

%changelog
openSUSE Build Service is sponsored by