15
0
Files
python-gvm-tools/python-gvm-tools.spec
Dirk Mueller bea8072ec2 - update to 23.11.0:
* Support for specifying task type
  * Use function to calculate timestamps
  * Do not truncate operating system names
  * Filter for correct target
- update to 23.10.0:
  * Auto-merge workflow, to enable squash auto-merge in open PRs
  * Improve application-detection requests
  * Group dependabot updates
  * Fix param use in generate-random-reports
  * Fix getting hosts in application-detection
  * Remove superfluous output from check-gmp
- update to 23.9.0:
  * Allow to auto re-build the docs on changes via livehtml
  * Add installation instructions using pipx because of PEP 668
  * CERT-Bund Advisory script, parsing reports to CSV (#964)
  * Drop support for Python 3.7 and 3.8
  * Remove obsolete project files
  * Convert docs to use markdown formatting
  * Update copyright year in README
  * Adjust docker image for Debian Bookworm
  * Use generic reusable workflows
  * Create conventional commits for dependabot
  * Remove `cache: "true"` input (#1004)
  * Fix conventional commits workflow
  * Set permissions for conventional commits workflow
- Do not build for Python 3.6 or 3.9 due to python-python-gvm.
- Kill dephell dependency

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gvm-tools?expand=0&rev=16
2023-12-18 14:05:32 +00:00

94 lines
3.2 KiB
RPMSpec

#
# spec file for package python-gvm-tools
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2020-2023, 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/
#
%define skip_python2 1
%define skip_python36 1
%define skip_python39 1
Name: python-gvm-tools
Version: 23.11.0
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/
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
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-python-gvm >= 23.4.2
Requires(post): update-alternatives
Requires(postun):update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module python-gvm >= 23.4.2}
# /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
%pyproject_wheel
%install
%pyproject_install
%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
%python_uninstall_alternative gvm-cli
%check
%{python_expand find -name '*.snap' | xargs rm
export PYTHONPATH=%{buildroot}%{$python_sitelib}
export PYTHONDONTWRITEBYTECODE=1
py.test-%{$python_version} -vv --ignore-glob=_build.*
}
%files %{python_files}
%license LICENSE
%doc README.md
%python_alternative %{_bindir}/gvm-cli
%python_alternative %{_bindir}/gvm-pyshell
%python_alternative %{_bindir}/gvm-script
%{python_sitelib}/gvmtools
%{python_sitelib}/gvm_tools-%{version}*-info
%changelog