2020-08-17 06:44:32 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-gvm-tools
|
|
|
|
|
#
|
2020-08-17 07:04:03 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2020-08-17 06:44:32 +00:00
|
|
|
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
|
|
|
|
|
#
|
|
|
|
|
# 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.
|
|
|
|
|
|
2020-08-17 07:04:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
|
#
|
2020-08-17 06:44:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
%define skip_python2 1
|
|
|
|
|
Name: python-gvm-tools
|
2020-10-26 09:19:09 +00:00
|
|
|
Version: 20.10.1
|
2020-08-17 06:44:32 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Tools to control a GSM/GVM over GMP or OSP
|
|
|
|
|
License: GPL-3.0-or-later
|
|
|
|
|
URL: https://github.com/greenbone/gvm-tools/
|
2020-10-26 09:19:09 +00:00
|
|
|
Source: https://github.com/greenbone/gvm-tools/archive/v%{version}.tar.gz#/gvm-tools-%{version}.tar.gz
|
|
|
|
|
#Source98: https://github.com/greenbone/gvm-tools/releases/download/v%%{version}/v%%{version}.tar.gz.asc#/gvm-tools-%%{version}.tar.gz.sig
|
|
|
|
|
#Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/gvm-tools.keyring
|
2020-10-27 10:44:11 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module poetry}
|
2020-08-17 06:44:32 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
|
Requires: python-python-gvm >= 1.4.0
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
|
BuildRequires: %{python_module python-gvm >= 1.4.0}
|
|
|
|
|
# /SECTION
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The Greenbone Vulnerability Management Tools gvm-tools are a collection
|
|
|
|
|
of tools that help with remote controlling a Greenbone Security Manager
|
|
|
|
|
(GSM) appliance and its underlying Greenbone Vulnerability Manager (GVM).
|
|
|
|
|
The tools aid in accessing the communication protocols GMP (Greenbone
|
|
|
|
|
Management Protocol) and OSP (Open Scanner Protocol).
|
|
|
|
|
|
|
|
|
|
This module is comprised of interactive and non-interactive clients.
|
|
|
|
|
The programming language Python is supported directly for interactive
|
|
|
|
|
scripting. But it is also possible to issue remote GMP/OSP commands
|
|
|
|
|
without programming in Python.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n gvm-tools-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2020-10-27 10:44:11 +00:00
|
|
|
%pyproject_wheel
|
2020-08-17 06:44:32 +00:00
|
|
|
|
|
|
|
|
%install
|
2020-10-27 10:44:11 +00:00
|
|
|
%pyproject_install
|
2020-08-17 06:44:32 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/gvm-cli
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/gvm-pyshell
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/gvm-script
|
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%python_install_alternative gvm-cli gvm-pyshell gvm-script
|
|
|
|
|
|
|
|
|
|
%postun
|
2020-10-27 10:44:11 +00:00
|
|
|
%python_uninstall_alternative gvm-cli
|
2020-08-17 06:44:32 +00:00
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.md
|
|
|
|
|
%python_alternative %{_bindir}/gvm-cli
|
|
|
|
|
%python_alternative %{_bindir}/gvm-pyshell
|
|
|
|
|
%python_alternative %{_bindir}/gvm-script
|
2020-10-27 10:44:11 +00:00
|
|
|
%{python_sitelib}/gvmtools
|
|
|
|
|
%{python_sitelib}/gvm_tools-%{version}*-info
|
2020-08-17 06:44:32 +00:00
|
|
|
|
|
|
|
|
%changelog
|