# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/ComplianceAsCode/veseer %global goipath github.com/ComplianceAsCode/veseer Version: 0.1.2 %gometa -L -f Name: veseer Release: %autorelease Summary: A Claircore-based CVE manager # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LicenseRef-Fedora-Public-Domain AND MIT AND MPL-2.0 AND SunPro AND bcrypt-Solar-Designer AND blessing URL: %{gourl} Source0: %{gosource} # Generated with go-vendor-tools (also used by .packit.yaml): # go_vendor_archive create veseer.spec Source1: %{archivename}-vendor.tar.bz2 %if 0%{?fedora} Source2: go-vendor-tools.toml %endif # Supplemental notices from the musl revision pinned by modernc.org/libc. Source3: musl-notices.txt %if 0%{?fedora} BuildRequires: go-vendor-tools %endif %description A Claircore-based CVE manager %prep %goprep -p1 tar -xf %{S:1} cp -p %{SOURCE3} musl-notices.txt %generate_buildrequires %if 0%{?fedora} %go_vendor_license_buildrequires -c %{S:2} %endif %build %global gomodulesmode GO111MODULE=on export GO_LDFLAGS='-X main.Version=%{version}' for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %if 0%{?fedora} %go_vendor_license_install -c %{S:2} %endif install -Dpm0644 musl-notices.txt \ %{buildroot}%{_licensedir}/%{name}/musl-notices.txt install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %check %if 0%{?fedora} %go_vendor_license_check -c %{S:2} %endif %if %{with check} %gotest ./... %endif %if 0%{?fedora} %files -f %{go_vendor_license_filelist} %else %files %dir %{_licensedir}/%{name} %endif %doc README.md %license %{_licensedir}/%{name}/musl-notices.txt %{_bindir}/veseer %changelog %autochangelog