# Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/goccy/go-yaml %global goipath github.com/goccy/go-yaml Version: 1.9.5 %gometa %global common_description %{expand: Go package similar to github.com/go-yaml/yaml with some additional features.} %global golicenses LICENSE %global godocs README.md CHANGELOG.md Name: %{goname} Release: 1%{?dist} Summary: YAML support for the Go language License: MIT URL: %{gourl} Source0: %{gosource} # https://github.com/goccy/go-yaml/pull/293 Patch0: 0001-Fix-tests-on-32bits-arches.patch %if %{with check} BuildRequires: golang(github.com/go-playground/validator/v10) %endif %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck %endif %files %license LICENSE %doc README.md CHANGELOG.md %{_bindir}/* %gopkgfiles %changelog * Fri Jun 24 2022 Julien Rische - 1.9.5-1 - Initial package