## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/sters/yaml-diff %global goipath github.com/sters/yaml-diff Version: 0.5.0 %gometa %global common_description %{expand: Make a diff between 2 yaml files.} %global golicenses LICENSE %global godocs example README.md Name: %{goname} Release: %autorelease Summary: Make a diff between 2 yaml files License: MIT URL: %{gourl} Source: %{gosource} BuildRequires: golang(github.com/goccy/go-yaml) BuildRequires: golang(github.com/google/go-cmp/cmp) %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %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 example README.md %{_bindir}/* %gopkgfiles %changelog * Tue May 23 2023 John Doe - 0.5.0-1 - Uncommitted changes