14
0

Accepting request 825841 from home:mnhauke:OpenVAS

Intial package for python-ospd-openvas

OBS-URL: https://build.opensuse.org/request/show/825841
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ospd-openvas?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2020-08-17 06:52:38 +00:00
committed by Git OBS Bridge
commit f8b0e2e279
8 changed files with 238 additions and 0 deletions

79
python-ospd-openvas.spec Normal file
View File

@@ -0,0 +1,79 @@
#
# spec file for package python-ospd-openvas
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-ospd-openvas
Version: 20.8.0
Release: 0
License: AGPL-3.0-or-later
Summary: An OSP server implementation
Url: https://github.com/greenbone/ospd-openvas
Group: Development/Languages/Python
Source: https://github.com/greenbone/ospd-openvas/archive/v%{version}.tar.gz#/ospd-openvas-%{version}.tar.gz
Source98: https://github.com/greenbone/ospd-openvas/releases/download/v%{version}/ospd-openvas-%{version}.tar.gz.sig
Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/ospd-openvas.keyring
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module ospd >= 2.0.0}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module redis >= 3.0.1}
BuildRequires: %{python_module Deprecated}
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
Requires: python-ospd >= 2.0.0
Requires: python-packaging
Requires: python-psutil
Requires: python-redis >= 3.0.1
BuildArch: noarch
Provides: ospd-openvas
%python_subpackages
%description
An OSP server implementation to allow GVM to remotely control OpenVAS.
%prep
%setup -q -n ospd-openvas-%{version}
%build
%python_build
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/ospd-openvas
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%post
%python_install_alternative ospd-openvas
%postun
%python_uninstall_alternative ospd-openvas
%check
%pytest
%files %{python_files}
%license COPYING
%doc CHANGELOG.md README.md
%python_alternative %{_bindir}/ospd-openvas
%{python_sitelib}/ospd_openvas*
%changelog