File tabloid.spec of Package tabloid

#
# spec file for package tabloid
#
# 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:           tabloid
Version:        0.0.3
Release:        0
Summary:        Easy and Repeatable Kubernetes Development
# https://github.com/patrickdappollonio/tabloid/issues/33
License:        Unknown
URL:            https://github.com/GoogleContainerTools/tabloid
Source:         %{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  go >= 1.22

%description
tabloid is a weekend project. The goal is to be able to parse inputs from
several command line applications like kubectl and docker that use a tabwriter
to format their output: this is, they write column-based outputs where the
first line is the column title -- often uppercased -- and the values come
below, and they're often perfectly aligned.

%prep
%autosetup -p 1 -a 1

%build
go build \
   -mod=vendor \
   -buildmode=pie \
   -tags "netgo" \
   -trimpath \
   -ldflags=" \
   -X main.version=%{version}" \
   -o bin/%{name}

%install
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}

%files
%doc README.md
%{_bindir}/%{name}

%changelog
openSUSE Build Service is sponsored by