File neuvector-scanner.spec of Package neuvector-scanner
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define tool_name scanner
Name: neuvector-scanner
Version: 0
Release: 0
Summary: NeuVector vulnerability scanner for the SUSE NeuVector Container Security Platform
License: Apache-2.0
Url: http://www.neuvector.com
Source: %{tool_name}-%{version}.tar.xz
BuildRequires: golang(API) >= 1.17
BuildRequires: golang-packaging
%{go_nostrip}
%description
NeuVector vulnerability scanner for the SUSE NeuVector Container Security Platform.
A viewable version of docs can be seen at https://open-docs.neuvector.com.
%prep
%autosetup -p1 -n %{tool_name}-%{version}
%build
go build -mod=vendor -buildmode=pie
%install
install -D -m 0755 scanner %{buildroot}%{_bindir}/neuvector-scanner
%files
%license LICENSE
%doc README.md SECURITY.md
%{_bindir}/neuvector-scanner
%changelog