## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## 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 # golang-github-varlink.spec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/varlink/go %global goipath github.com/varlink/go Version: 0.4.0 %gometa -f %global common_description %{expand: Golang implementation of the Varlink protocol.} %global golicenses COPYRIGHT LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Golang implementation of the Varlink protocol License: Apache-2.0 URL: %{gourl} Source: %{gosource} %description %{common_description} %gopkg %prep %goprep %autopatch -p1 %generate_buildrequires %go_generate_buildrequires %build go generate cmd/varlink-go-certification/orgvarlinkcertification/generate.go 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 COPYRIGHT LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog ## START: Generated by rpmautospec * Sat Jan 13 2024 Sandro - 0.4.0-1 - Initial package ## END: Generated by rpmautospec