File project.diff of Package python-ospd-openvas

--- python-ospd-openvas.changes.orig
+++ python-ospd-openvas.changes
@@ -1,4 +1,83 @@
 -------------------------------------------------------------------
+Thu Dec 16 09:46:22 UTC 2021 - Oliver Bengs <appleonkel@opensuse.org>
+
+- add _service and remove gvm-common as requirement
+- Update to version 21.4.3
+  * Downgrade required version for psutil to 5.5.1 #489
+  * Fix timeout preference handling. #486
+  * Use better defaults for for ospd-openvas settings #454
+  * Improved error logging while trying to acquire a lock file #458
+  * Stopping and interrupting scans. #465
+  * Add new Credentials for SSH to get su privileges. Backport of #419. #426
+  * Remove some special handling for Consider Alive alive test. #413
+
+-------------------------------------------------------------------
+Sat Aug 21 11:50:58 UTC 2021 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 21.0.2
+  * Use better defaults for for ospd-openvas settings.
+  * Improved error logging while trying to acquire a lock file.
+  * Stopping and interrupting scans.
+
+-------------------------------------------------------------------
+Fri Apr 16 19:12:03 UTC 2021 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 21.4.0
+  Added
+  * Add dedicated port list for alive detection (Boreas only) as
+    scanner preference if supplied via OSP.
+  * Add methods for adding VTs to the redis cache.
+  * Add support for supplying alive test methods via separate
+    elements.
+  * Add support CVSSv3 and accept new tags for severity vector,
+    origin, date.
+  Changed
+  * Get all results from main kb.
+  * Extend severities with origin and date.
+- Drop patch
+  * ospd-openvas-fix-dependencies.patch (fixed by upstream)
+
+-------------------------------------------------------------------
+Sat Mar 13 16:26:24 UTC 2021 - Martin Hauke <mardnh@gmx.de>
+
+- Add patch:
+  * ospd-openvas-fix-dependencies.patch
+
+-------------------------------------------------------------------
+Sat Mar 13 16:12:44 UTC 2021 - Martin Hauke <mardnh@gmx.de>
+
+- Update to version 20.8.1
+  Added
+  * Add debug level log messages.
+  Changed
+  * Improve logging for unsatisfied vts dependencies.
+  * Do not use busy wait when waiting for the openvas scan
+    process to finish.
+  * The description field of the systemd ospd-openvas.service file
+    was updated.
+  * Improve logging for unexpected data in script_xref tags.
+  Fixed
+  * Fix nvticache name when for stable version from sources.
+  * Fix stop scan during preferences handling, before spawining
+    OpenVAS.
+  * Fix alive test preferences when a non default method is
+    selected.
+  * Check for empty vts preferences list.
+  * Fix progress calculation when the host count differs from the
+    target string count.
+
+-------------------------------------------------------------------
+Mon Aug 24 19:16:27 UTC 2020 - Martin Hauke <mardnh@gmx.de>
+
+- Package manpage
+
+-------------------------------------------------------------------
+Mon Aug 24 19:09:28 UTC 2020 - Martin Hauke <mardnh@gmx.de>
+
+- Add missing runtime requirement:
+  * python-Deprecated
+
+-------------------------------------------------------------------
 Mon Aug 17 07:54:47 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
 
 - Fix download archives
--- python-ospd-openvas.spec.orig
+++ python-ospd-openvas.spec
@@ -1,7 +1,7 @@
 #
 # spec file for package python-ospd-openvas
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -18,19 +18,23 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define         skip_python2 1
+%define         skip_python39 1
 Name:           python-ospd-openvas
-Version:        20.8.0
+Version:        21.4.3
 Release:        0
 Summary:        An OSP server implementation
 License:        AGPL-3.0-or-later
+Group:          Development/Languages/Python
 URL:            https://github.com/greenbone/ospd-openvas
-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
+Source:         _service
+Source1:        ospd-openvas.service
+Source2:        ospd-openvas.sysconfig
+Source3:        ospd-openvas.tmpfiles.d
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-ospd >= 2.0.0
+Requires:       python-Deprecated
+Requires:       python-ospd >= 21.4.0
 Requires:       python-packaging
 Requires:       python-psutil
 Requires:       python-redis >= 3.0.1
@@ -38,19 +42,30 @@ Provides:       ospd-openvas
 BuildArch:      noarch
 # SECTION test requirements
 BuildRequires:  %{python_module Deprecated}
-BuildRequires:  %{python_module ospd >= 2.0.0}
+BuildRequires:  %{python_module ospd >= 21.4.0}
 BuildRequires:  %{python_module packaging}
 BuildRequires:  %{python_module psutil}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module redis >= 3.0.1}
+Requires:       %{name}-common = %{version}
 # /SECTION
+%{?systemd_ordering}
 %python_subpackages
 
 %description
 An OSP server implementation to allow GVM to remotely control OpenVAS.
 
+%package -n %{name}-common
+Summary:        Common files for %{name}
+Group:          Development/Languages/Python
+Provides:       %{python_module ospd-openvas-common = %{version}}
+
+%description -n %{name}-common
+Common files for %{name}.
+
 %prep
-%setup -q -n ospd-openvas-%{version}
+mv %{_sourcedir}/ospd-openvas-%{version} %{_builddir}/%{name}-%{version}
+%setup -q -D -T 0
 
 %build
 %python_build
@@ -59,6 +74,10 @@ An OSP server implementation to allow GV
 %python_install
 %python_clone -a %{buildroot}%{_bindir}/ospd-openvas
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
+install -D -m0644 docs/ospd-openvas.8 %{buildroot}/%{_mandir}/man8/ospd-openvas.8
+install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/ospd-openvas.service
+install -D -m0644 %{SOURCE2} %{buildroot}%{_fillupdir}/sysconfig.ospd-openvas
+install -D -m0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/ospd-openvas.conf
 
 %post
 %python_install_alternative ospd-openvas
@@ -66,6 +85,26 @@ An OSP server implementation to allow GV
 %postun
 %python_uninstall_alternative ospd-openvas
 
+%pre -n %{name}-common
+%service_add_pre ospd-openvas.service
+getent group gvm >/dev/null || groupadd -r gvm
+getent passwd gvm >/dev/null || useradd -r -g gvm \
+	-d %{_localstatedir}/lib/gvm \
+	-s /sbin/nologin \
+	-c "user for Greenbone Vulnerability Manager" gvm
+
+%post -n %{name}-common
+%fillup_only -n ospd-openvas
+%service_add_post ospd-openvas.service
+%tmpfiles_create %{_tmpfilesdir}/ospd-openvas.conf
+
+%preun -n %{name}-common
+%service_del_preun ospd-openvas.service
+
+%postun -n %{name}-common
+%service_del_postun ospd-openvas.service
+%python_uninstall_alternative ospd-openvas
+
 %check
 %pytest
 
@@ -75,4 +114,11 @@ An OSP server implementation to allow GV
 %python_alternative %{_bindir}/ospd-openvas
 %{python_sitelib}/ospd_openvas*
 
+%files -n %{name}-common
+%{_unitdir}/ospd-openvas.service
+%{_fillupdir}/sysconfig.ospd-openvas
+%{_tmpfilesdir}/ospd-openvas.conf
+%{_mandir}/man8/ospd-openvas.8%{ext_man}
+%dir %attr(-,gvm,gvm) %ghost /run/ospd
+
 %changelog
openSUSE Build Service is sponsored by