biome/biome.spec

55 lines
1.7 KiB
RPMSpec

#
# spec file for package biome
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2022-2023 Avindra Goolcharan <avindra@opensuse.org>
#
# 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/
#
%define rev fa93a147abe64e9c85908d317a8dd1de343ad132
Name: biome
Version: 1.9.4
Release: 0
Summary: A JavaScript and TypeScript toolchain
License: Apache-2.0 AND MIT
Group: Productivity/Other
URL: https://github.com/biomejs/biome
Source0: https://github.com/biomejs/biome/archive/refs/tags/cli/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: vendor.tar.zst
BuildRequires: cargo >= 1.53.0
BuildRequires: cargo-packaging
BuildRequires: zstd
%description
A toolchain for web projects, aimed to provide functionalities to maintain
them. Biome offers formatter and linter, usable via CLI and LSP.
%prep
%autosetup -a1 -p1 -n %{name}-cli-v%{version}
%build
export BIOME_VERSION=%{version}-%{rev}
%{cargo_build} -p biome_cli
%install
mkdir -p %{buildroot}%{_bindir}
cp target/release/%{name} %{buildroot}%{_bindir}
%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/%{name}
%changelog