|
|
|
@ -0,0 +1,93 @@
|
|
|
|
|
## START: Set by rpmautospec
|
|
|
|
|
## (rpmautospec version 0.3.5)
|
|
|
|
|
## 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.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 6ad3e3d0781578532aaedbed543b25d7d586c746
|
|
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
* Mon Apr 22 2024 Sergey Cherevko <s.cherevko@msvsphere-os.ru> 0-0.7
|
|
|
|
|
- Rebuilt for MSVSphere 9.4
|
|
|
|
|
|
|
|
|
|
* Tue Dec 19 2023 Michel Lind <salimma@fedoraproject.org> - 0-0.7
|
|
|
|
|
- Revert commit matching unpushed update
|
|
|
|
|
|
|
|
|
|
* Mon Aug 07 2023 Alejandro Sáez <asm@redhat.com> - 0-0.6
|
|
|
|
|
- Update to fix FTBFS
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Feb 21 2023 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 0-0.4
|
|
|
|
|
- Update to commit 6ad3e3d0781578532aaedbed543b25d7d586c746
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Aug 01 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.2
|
|
|
|
|
- Fix typo
|
|
|
|
|
|
|
|
|
|
* Mon Aug 01 2022 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1
|
|
|
|
|
- Initial import - Close: rhbz#2110130
|