Initial import - Close: rhbz#2110130

This commit is contained in:
Robert-André Mauchin 2022-08-01 22:17:23 +02:00
parent a9bac1829e
commit 0e36cb58ef
3 changed files with 62 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/vuln-348460952d62720df9244d4e7b81008a9195e109.tar.gz

60
golang-x-vuln.spec Normal file
View File

@ -0,0 +1,60 @@
# Generated by go2rpm 1.6.0
%bcond_without check
# https://github.com/golang/vuln
%global goipath golang.org/x/vuln
%global forgeurl https://github.com/golang/vuln
%global commit 348460952d62720df9244d4e7b81008a9195e109
%gometa
%global common_description %{expand:
The database client and tools for the Go vulnerability database.}
%global golicenses LICENSE PATENTS
%global godocs doc CONTRIBUTING.md README.md
Name: %{goname}
Version: 0
Release: %autorelease -p
Summary: Database client and tools for the Go vulnerability database
# Upstream license specification: BSD-3-Clause
License: BSD-3-Clause
URL: %{gourl}
Source0: %{gosource}
%description
%{common_description}
%gopkg
%prep
%goprep
%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
%gocheck -t cmd
%endif
%files
%license LICENSE PATENTS
%doc doc CONTRIBUTING.md README.md
%{_bindir}/govulncheck
%gopkgfiles
%changelog
%autochangelog

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (vuln-348460952d62720df9244d4e7b81008a9195e109.tar.gz) = 86b0a957de04271483e4990a9c915a9be0f4c7c03a777e39597883bb6a533b79a0ad20feee4b57c09beb0460753693ab0c48fe9cca288faa8d7f89b9462918f5