File keep-sorted.spec of Package keep-sorted
#
# spec file for package treefmt
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: keep-sorted
Version: 0.7.1
Release: 0%{?dist}
Summary: sort lines between two markers in a file
License: Apache2.0
URL: https://github.com/google/keep-sorted/
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.zst
BuildRequires: golang-packaging
%description
keep-sorted is a language-agnostic formatter that sorts lines between two markers in a larger file.
%prep
%autosetup -p1 -a1
%build
go build -mod=vendor -buildmode=pie -v -o ./cmd/%name
%install
install -sD ./cmd/%name %{buildroot}%{_bindir}/%name
%files
%{_bindir}/%name
%changelog