File gocover-cobertura.spec of Package gocover-cobertura
#
# spec file for package gocover-cobertura
#
# Copyright (c) 2023 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: gocover-cobertura
Version: v1.2.0
Release: 0
Summary: A go tool cover XML exporter
License: MIT
URL: https://github.com/boumenot/gocover-cobertura
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
BuildRequires: golang-packaging
BuildRequires: golang(API) >= 1.21
%description
This is a simple helper tool for generating XML output in Cobertura format for CIs like Jenkins and others from go tool cover output.
%prep
%setup -q
%setup -q -T -D -a 1
%build
go build -mod=vendor -buildmode=pie -o gocover-cobertura ./...
%install
install -D -m 755 gocover-cobertura "%{buildroot}%{_bindir}/gocover-cobertura"
%files
%defattr(-,root,root)
%{_bindir}/gocover-cobertura
%changelog