Name: taplo
Version: 0.9.1
Release: alt1
Summary: A TOML toolkit written in Rust
License: MIT
Group: Publishing
Url: https://taplo.tamasfe.dev/
# https://github.com/tamasfe/taplo/archive/refs/tags/release-taplo-cli-0.9.1.tar.gz
Source: %name-release-%name-cli-%version.tar.gz
Source1: vendor.tar

BuildRequires(pre): rpm-build-rust
BuildRequires: rust-cargo


%description
A versatile, feature-rich TOML toolkit.

%prep
%setup -a 1 -n %name-release-%name-cli-%version
mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
%rust_build --locked --features lsp


%install
%rust_install


%check
%rust_test

%files
%_bindir/%name

%changelog
* Sat Apr 13 2024 ... 5.14.1-alt1
- Initial build.
