## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-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*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.9.0 %bcond_without check # https://github.com/tklauser/numcpus %global goipath github.com/tklauser/numcpus Version: 0.6.1 %gometa %global common_description %{expand: Package numcpus provides information about the number of CPUs in the system.} %global golicenses LICENSE %global godocs README.md Name: %{goname} Release: %autorelease Summary: Package numcpus provides information about the number of CPUs in the system License: Apache-2.0 URL: %{gourl} Source: %{gosource} %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 for test in "TestGetConfigured" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck %endif %files %license LICENSE %doc README.md %{_bindir}/* %gopkgfiles %changelog ## START: Generated by rpmautospec * Thu Jul 20 2023 Fedora Release Engineering - 0.6.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jun 12 2023 Pavel Solovev - 0.6.1-1 - update to 0.6.1 * Thu Jan 19 2023 Fedora Release Engineering - 0.2.3-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.2.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 0.2.3-8 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jul 09 2022 Maxwell G - 0.2.3-7 - Rebuild for CVE-2022-{24675,28327,29526 in golang} * Thu Jul 29 2021 Robert-André Mauchin 0.2.3-2 - Uncommitted changes * Thu Jul 29 2021 Robert-André Mauchin 0.2.3-1 - Initial release ## END: Generated by rpmautospec