## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 7; 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/hashicorp/hc-install %global goipath github.com/hashicorp/hc-install Version: 0.5.2 %gometa -f %global gosupfiles version/VERSION %global common_description %{expand: Go module for downloading or locating HashiCorp binaries, verifying signatures and checksums, and asserting version constraints.} %global golicenses LICENSE %global godocs docs README.md Name: %{goname} Release: %autorelease Summary: Go module for downloading or locating HashiCorp binaries License: MPL-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 "TestLatestVersion_basic" \ "TestLatestVersion_prereleases" \ ; 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 docs README.md %{_bindir}/hc-install %gopkgfiles %changelog ## START: Generated by rpmautospec * Thu Jul 18 2024 Fedora Release Engineering - 0.5.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 0.5.2-6 - Rebuild for golang 1.22.0 * Wed Jan 24 2024 Fedora Release Engineering - 0.5.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jan 20 2024 Fedora Release Engineering - 0.5.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Aug 16 2023 Robert-André Mauchin - 0.5.2-3 - Include VERSION file * Tue Aug 15 2023 Robert-André Mauchin - 0.5.2-2 - Disable some tests * Tue Aug 15 2023 Robert-André Mauchin - 0.5.2-1 - import #2224864 ## END: Generated by rpmautospec