# Generated by go2rpm 1.19.0 %bcond check 1 # https://github.com/golang/vuln %global goipath golang.org/x/vuln %global forgeurl https://github.com/golang/vuln Version: 1.1.4 %global commit a9cf566971d512048614ae269b160fe47a1fceb3 %gometa -L %global common_description %{expand: The database client and tools for the Go vulnerability database.} Name: govulncheck Release: %autorelease Summary: Database client and tools for the Go vulnerability database # Package renamed from golang-x-vuln following vendored packaging guidelines Provides: golang-x-vuln = %{version}-%{release} Obsoletes: golang-x-vuln < 1.1.4 # Generated by go-vendor-tools License: Apache-2.0 AND BSD-3-Clause URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml BuildRequires: go-vendor-tools %description %{common_description} %prep %goprep -p1 tar -xf %{S:1} %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build for cmd in cmd/* ; do %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd done %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ %if %{with check} %check %go_vendor_license_check -c %{S:2} %gocheck -t cmd -t internal %endif %files -f %{go_vendor_license_filelist} %doc doc CONTRIBUTING.md README.md %{_bindir}/govulncheck %changelog %autochangelog