## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %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.3 %bcond_without check # https://github.com/denisbrodbeck/machineid %global goipath github.com/denisbrodbeck/machineid Version: 1.0.1 %gometa %global common_description %{expand: Get the unique machine id of any host (without admin privileges).} %global golicenses LICENSE.md %global godocs README.md logo.png Name: %{goname} Release: %autorelease Summary: Get the unique machine id of any host (without admin privileges) License: MIT URL: %{gourl} Source0: %{gosource} %description %{common_description} %package -n machineid Summary: %{summary} %description -n machineid %{common_description} %gopkg %prep %goprep %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 -n machineid %license LICENSE.md %doc README.md logo.png %{_bindir}/* %gopkgfiles %changelog * Thu Jan 20 2022 Fedora Release Engineering 1.0.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Aug 17 2021 Davide Cavalca 1.0.1-1 - Initial import; Fixes: RHBZ#1979785