forked from pool/python-ospd-openvas
Fix a silly typo (fails build); I hopeI hope this does not require a changelog entry OBS-URL: https://build.opensuse.org/request/show/1062478 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ospd-openvas?expand=0&rev=6
92 lines
3.0 KiB
RPMSpec
92 lines
3.0 KiB
RPMSpec
#
|
|
# spec file for package python-ospd-openvas
|
|
#
|
|
# Copyright (c) 2023 SUSE LLC
|
|
#
|
|
# 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
|
|
Name: python-ospd-openvas
|
|
Version: 22.4.5
|
|
Release: 0
|
|
Summary: An OSP server implementation
|
|
License: AGPL-3.0-or-later
|
|
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.asc
|
|
Source99: https://www.greenbone.net/GBCommunitySigningKey.asc#/ospd-openvas.keyring
|
|
BuildRequires: %{python_module base >= 3.7}
|
|
BuildRequires: %{python_module defusedxml >= 0.6}
|
|
BuildRequires: %{python_module gnupg >= 0.4.8}
|
|
BuildRequires: %{python_module lxml >= 4.5.2}
|
|
BuildRequires: %{python_module paho-mqtt >= 1.5.1}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module poetry}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-defusedxml >= 0.6
|
|
Requires: python-gnupg >= 0.4.8
|
|
Requires: python-lxml >= 4.5.2
|
|
Requires: python-packaging
|
|
Requires: python-paho-mqtt >= 1.5.1
|
|
Requires: python-psutil >= 5.5.1
|
|
Requires: python-redis >= 3.5.3
|
|
Provides: ospd-openvas = %{version}
|
|
Provides: python-ospd = %{version}
|
|
Obsoletes: python-ospd < %{version}
|
|
BuildArch: noarch
|
|
# SECTION test requirements
|
|
BuildRequires: %{python_module Deprecated >= 1.2.10}
|
|
BuildRequires: %{python_module packaging >= 20.4}
|
|
BuildRequires: %{python_module psutil >= 5.5.1}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module redis >= 3.5.3}
|
|
# /SECTION
|
|
%python_subpackages
|
|
|
|
%description
|
|
An OSP server implementation to allow GVM to remotely control OpenVAS.
|
|
|
|
%prep
|
|
%setup -q -n ospd-openvas-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_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
|
|
%{python_sitelib}/ospd_openvas*
|
|
|
|
%changelog
|