File neuvector-scanner.spec of Package neuvector-scanner.41310

#
# spec file for package neuvector-scanner
#
# Copyright (c) 2025 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/
#


Name:           neuvector-scanner
Version:        0212004
Release:        0
Summary:        NeuVector vulnerability scanner
License:        Apache-2.0
Group:          Development/Tools/Other
URL:            https://github.com/neuvector/scanner
Source:         neuvector-scanner-%{version}.tar.xz
Source1:        go-vendor.tar.zst
BuildRequires:  golang(API) = 1.24
BuildRequires:  zstd
ExclusiveArch:  x86_64 aarch64

%description
NeuVector vulnerability scanner for the SUSE NeuVector Container Security
Platform.

%prep
%setup -q -n neuvector-scanner-%{version} -a1

%build
./make_bin.sh

%install
install -D -m 0755 -t %{buildroot}%{_prefix}/local/bin \
    monitor/monitor scanner task/scannerTask

%files
%license LICENSE
%doc README.md
%{_prefix}/local/bin/monitor
%{_prefix}/local/bin/scanner
%{_prefix}/local/bin/scannerTask

%changelog
openSUSE Build Service is sponsored by