forked from pool/python-python-gvm
* Use universal release action, not python specific d7d4ea59 * Add workaround for non-standard SSH ports (#925) 6a8c2f19 * Format workflows, update actions and support Python 3.11 * Format workflows, update actions and support Python 3.11 * Improve error output in case of unix socket connection issues * Start to deploy the python-gvm docs at github pages too 98ac0c56 * Remove hardcoded ignore_pagination from get_reports (#821) * Update links and terms in README and docs 6bd8c78e * Fix setting the port for the SSH connection #818 9784cf52 * Improve installation chapter d1d602e4 * Use furo theme for sphinx based docs for improved navigation * Use sphinx directly for typehints in API docs f707efdf * Update gvmd socket location to /run/gvmd/gvmd.sock 4a0f1706 * Adjust PR template for using Conventional Commits 6287140d * Update lastest Gmp class to 22.4 44e85036 * Add missing API docs for GMP 22.4 class (#804) fb69ec30 * Use isort for sorting Python import automatically e61b9ac5 * OSP Scanner is deprecated with 22.04 (#789) 1cf0559a * Normalize all strings with black fbf0083d * Check port in overrides/notes like in gvmd 905e85ab * severity values of '0' have not been passed to gvmd cd4e0b44 gvm/compare/22.6.1.dev1...22.6.1 * Don't mention ALLINFO in the get_info_list method dc288185 * Deprecate ifaces and icafes allow_parameters in user commands * Rename GMP 21.10 to GMP 22.04 [#691] f5ef7672 * Unwrap SSL socket before closing transport socket. (#737) * Ensure that connection is closed when using context manager * Added support for PEP-561 c354da8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=10
77 lines
2.6 KiB
RPMSpec
77 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-python-gvm
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
# Copyright (c) 2020-2021, 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%define skip_python2 1
|
|
%define skip_python36 1
|
|
%define skip_python39 1
|
|
Name: python-python-gvm
|
|
Version: 23.2.0
|
|
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
|
|
Source: https://files.pythonhosted.org/packages/source/p/python_gvm/python_gvm-%{version}.tar.gz
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-defusedxml >= 0.6.0
|
|
Requires: python-lxml >= 4.5.0
|
|
Requires: python-paramiko >= 2.7.1
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module defusedxml >= 0.6.0}
|
|
BuildRequires: %{python_module lxml >= 4.5.0}
|
|
BuildRequires: %{python_module paramiko >= 2.7.1}
|
|
BuildRequires: %{python_module pytest}
|
|
# /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
|
|
%setup -q -n python_gvm-%{version}
|
|
|
|
%build
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
# Remove tests from sitelib
|
|
%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
rm -v tests/connections/test_unix_socket_connection.py tests/connections/test_ssh_connection.py
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/gvm
|
|
%{python_sitelib}/python_gvm*
|
|
|
|
%changelog
|