From b92f47d667c5d204292258c296bcfb01604b3303e6f5b86aca572d362d6d6c9b Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 11 Aug 2020 17:27:29 +0000 Subject: [PATCH] Accepting request 825815 from home:mnhauke Intial package for python-python-gvm OBS-URL: https://build.opensuse.org/request/show/825815 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-gvm?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + python-gvm-1.6.0.tar.gz | 3 ++ python-python-gvm.changes | 4 +++ python-python-gvm.spec | 70 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-gvm-1.6.0.tar.gz create mode 100644 python-python-gvm.changes create mode 100644 python-python-gvm.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-gvm-1.6.0.tar.gz b/python-gvm-1.6.0.tar.gz new file mode 100644 index 0000000..dc9ee71 --- /dev/null +++ b/python-gvm-1.6.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8d77268f3ad72ed6dfa65cebeaab6fb4d0492077651165199043d3855448f9e +size 124621 diff --git a/python-python-gvm.changes b/python-python-gvm.changes new file mode 100644 index 0000000..6dc762c --- /dev/null +++ b/python-python-gvm.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Aug 11 07:59:27 UTC 2020 - Martin Hauke + +- Initial package, version 1.6.0 diff --git a/python-python-gvm.spec b/python-python-gvm.spec new file mode 100644 index 0000000..c069759 --- /dev/null +++ b/python-python-gvm.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-python-gvm +# +# Copyright (c) 2020, Martin Hauke +# +# 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-python-gvm +Version: 1.6.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 +# SECTION test requirements +BuildRequires: %{python_module defusedxml >= 0.6.0} +BuildRequires: %{python_module lxml >= 4.5.0} +BuildRequires: %{python_module paramiko >= 2.7.1} +# /SECTION +Requires: python-defusedxml >= 0.6.0 +Requires: python-lxml >= 4.5.0 +Requires: python-paramiko >= 2.7.1 +BuildArch: noarch +%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 +%python_exec -m unittest discover tests/ -v + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/gvm +%{python_sitelib}/python_gvm* + +%changelog