# Generated by go2rpm 1.18.0 %bcond check 1 %global debug_package %{nil} # https://github.com/natesales/q %global goipath github.com/natesales/q Version: 0.19.10 %global tag v%{version} %gometa -L -f Name: q Release: %autorelease Summary: None # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND GPL-3.0-only AND ISC AND MIT AND Unlicense URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description # FIXME %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on %if 0%{?fedora} <= 42 export GOTOOLCHAIN="auto" export GOSUMDB="sum.golang.org" %endif export GO_LDFLAGS="-s -w -X main.version=%{version}-%{release}" %gobuild -o %{gobuilddir}/bin/q %{goipath} %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %if 0%{?fedora} > 42 %go_vendor_license_check -c %{S:2} %endif %if %{with check} %if 0%{?fedora} <= 42 export GOTOOLCHAIN="auto" export GOSUMDB="sum.golang.org" %endif %gotest ./... %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc README.md %{_bindir}/q %changelog %autochangelog