File git-interactive-rebase-tool.spec of Package git-interactive-rebase-tool

#
# spec file for package git-interactive-rebase-tool
#
# 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/
#


Name:           git-interactive-rebase-tool
Version:        2.4.1
Release:        0
Summary:        Terminal-based sequence editor for git interactive rebase
License:        GPL-3.0-or-later
URL:            https://gitrebasetool.mitmaro.ca/
Source0:        %{name}-%{version}.tar.zst
Source1:        vendor.tar.zst
BuildRequires:  cargo
BuildRequires:  cargo-packaging
BuildRequires:  zlib-devel
BuildRequires:  libgit2-devel

%description
Native cross-platform full feature terminal-based sequence editor for git interactive rebase.

%prep
%autosetup -a1 -p0

%build
%{cargo_build} --locked

%install
install -D -m755 target/release/interactive-rebase-tool -t %{buildroot}%{_bindir}/

%check
# waiting upstream commit bdab383f63be49298e86981c30e930f3b72ffed3 to be in release
# should be enabled in next version
#{cargo_test} --locked

%files
%license LICENSE
%doc README.md
%{_bindir}/interactive-rebase-tool

%changelog
openSUSE Build Service is sponsored by