2020-08-11 17:27:29 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-python-gvm
|
|
|
|
#
|
2024-11-13 12:48:12 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
Accepting request 897675 from home:mnhauke:OpenVAS
- Update to version 21.5.0
* Dropped support for GMP v7, v8 and v9!
* Introduced new explicit API calls for SecInfo: get_nvt(),
get_nvt_list(), get_cpe(), get_cpe_list(), get_cve(),
get_cve_list(), get_cert_bund_advisory(),
get_cert_bund_advisory_list(), get_dnf_cert_advisory(),
get_dnf_cert_advisory_list(), get_oval_definition(),
get_oval_definition_list().
Changed
* Splitted up get_preference(s) into get_nvt_preference(s) and
get_scan_config_preference(s).
* Improved and changed help(): Introduced HelpFormat Enum,
changed format parameter to help_format using HelpFormat,
changed help_type to brief and bool, as it only has two
options (default and brief).
* Changed filter to filter_string in getter functions.
* API changes: get_setting(s) -> get_user_setting(s),
modify_setting -> modify_user_setting. #472
* Changed all API calls for _config to _scan_config to match
other Greenbone components. #465
* Split up get_asset(s) into get_host(s) and
get_operating_system(s). #459
* Split up delete_asset into delete_host and
delete_operating_system. #459
* Split up modify_asset into modify_host and
modify_operating_system. #459
* Deleted AssetType. It is not required anymore. #459
* Changed the API calls get_nvt() and get_nvts() to
get_scan_config_nvt() and get_scan_config_nvts(). #456
* Splitted up the GmpMonolith class
OBS-URL: https://build.opensuse.org/request/show/897675
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=8
2021-06-05 12:21:54 +00:00
|
|
|
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
|
2020-08-11 17:27:29 +00:00
|
|
|
#
|
|
|
|
# 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-12 07:47:49 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-08-11 17:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-python-gvm
|
2024-11-13 12:48:12 +00:00
|
|
|
Version: 24.8.0
|
2020-08-11 17:27:29 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library to communicate with remote servers over GMP or OSP
|
|
|
|
License: GPL-3.0-only
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/greenbone/python-gvm
|
2023-03-06 12:18:48 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/python_gvm/python_gvm-%{version}.tar.gz
|
2024-11-25 10:53:24 +00:00
|
|
|
# PATCH-FIX-OPENSUSE opensuse-fix-tests-1-core.patch -- bsc#1233398
|
|
|
|
# Fix tests running with 1 core in VM
|
|
|
|
Patch: opensuse-fix-tests-1-core.patch
|
2023-08-01 09:49:02 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module poetry-core}
|
2020-08-11 17:27:29 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2023-08-01 09:49:02 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-08-11 17:27:29 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2023-03-06 12:18:48 +00:00
|
|
|
Requires: python-lxml >= 4.5.0
|
|
|
|
Requires: python-paramiko >= 2.7.1
|
|
|
|
BuildArch: noarch
|
2020-08-11 17:27:29 +00:00
|
|
|
# SECTION test requirements
|
2023-03-06 12:18:48 +00:00
|
|
|
BuildRequires: %{python_module lxml >= 4.5.0}
|
|
|
|
BuildRequires: %{python_module paramiko >= 2.7.1}
|
2020-08-12 07:47:49 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2020-08-11 17:27:29 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Greenbone Vulnerability Management Python API library python-gvm is a
|
|
|
|
collection of APIs that help with remote controlling a Greenbone Security
|
|
|
|
Manager (GSM) appliance and its underlying Greenbone Vulnerability Manager
|
|
|
|
(GVM). The library essentially abstracts accessing the communication protocols
|
|
|
|
Greenbone Management Protocol (GMP) and Open Scanner Protocol (OSP).
|
|
|
|
|
|
|
|
%prep
|
2024-11-25 10:53:24 +00:00
|
|
|
%autosetup -p1 -n python_gvm-%{version}
|
2020-08-11 17:27:29 +00:00
|
|
|
|
|
|
|
%build
|
2023-08-01 09:49:02 +00:00
|
|
|
%pyproject_wheel
|
2020-08-11 17:27:29 +00:00
|
|
|
|
|
|
|
%install
|
2023-08-01 09:49:02 +00:00
|
|
|
%pyproject_install
|
2020-08-11 17:27:29 +00:00
|
|
|
# Remove tests from sitelib
|
|
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2024-11-13 12:48:12 +00:00
|
|
|
# test_pretty_print needs pontos, which we don't have
|
|
|
|
rm tests/xml/test_pretty_print.py
|
2020-08-12 07:47:49 +00:00
|
|
|
%pytest
|
2020-08-11 17:27:29 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/gvm
|
|
|
|
%{python_sitelib}/python_gvm*
|
|
|
|
|
|
|
|
%changelog
|