## START: Set by rpmautospec ## (rpmautospec version 0.2.5) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Generated by go2rpm 1.6.0 %bcond_without check # https://github.com/intel/goresctrl %global goipath github.com/intel/goresctrl Version: 0.2.0 %gometa %global common_description %{expand: Golang library for managing resctrl filesystem.} %global golicenses LICENSE %global godocs doc README.md Name: %{goname} Release: %autorelease Summary: Golang library for managing resctrl filesystem # Upstream license specification: Apache-2.0 License: ASL 2.0 URL: %{gourl} Source0: %{gosource} %description %{common_description} %gopkg %prep %goprep %generate_buildrequires %go_generate_buildrequires %build for cmd in cmd/{blockio,sst-ctl} ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %gopkginstall install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/{blockio,sst-ctl} %{buildroot}%{_bindir}/ %if %{with check} %check %gocheck -d pkg/blockio %endif %files %license LICENSE %doc doc README.md %{_bindir}/{blockio,sst-ctl} %gopkgfiles %changelog * Sat Jan 29 2022 Maxwell G 0.2.0-2 - Uncommitted changes * Sat Jan 29 2022 Maxwell G 0.2.0-1 - Initial package