forked from pool/python-pan-python
Accepting request 737882 from home:mnhauke:network:automation:test
Initial package for python-pan-python OBS-URL: https://build.opensuse.org/request/show/737882 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pan-python?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
pan-python-0.15.0.tar.gz
Normal file
3
pan-python-0.15.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:f45021a1c67ee126a6f0a2c6b987ae858372982c396e3f4c85678bfefd1b170a
|
||||
size 122068
|
||||
22
python-pan-python.changes
Normal file
22
python-pan-python.changes
Normal file
@@ -0,0 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 12 12:02:37 UTC 2019 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Update to version 0.15.0
|
||||
- Package cleanup
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 7 09:19:24 UTC 2017 - mardnh@gmx.de
|
||||
|
||||
- Update to 0.12.0
|
||||
- Convert to singlespec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 2 19:43:59 UTC 2016 - mardnh@gmx.de
|
||||
|
||||
- remove .py suffix from binaries
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 25 20:56:41 UTC 2016 - mardnh@gmx.de
|
||||
|
||||
- initial package, version 0.10.0
|
||||
|
||||
75
python-pan-python.spec
Normal file
75
python-pan-python.spec
Normal file
@@ -0,0 +1,75 @@
|
||||
#
|
||||
# spec file for package python-pan-python
|
||||
#
|
||||
# Copyright (c) 2017-2019, 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/
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pan-python
|
||||
Version: 0.15.0
|
||||
Release: 0
|
||||
Summary: Multi-tool set for Palo Alto Networks PAN-OS, Panorama, WildFire and AutoFocus
|
||||
Group: Development/Languages/Python
|
||||
License: ISC
|
||||
URL: https://github.com/kevinsteves/pan-python
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pan-python/pan-python-%{version}.tar.gz
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
#BuildRequires: %%{python_module pytest}
|
||||
# /SECTION
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
pan-python is a Python package for Palo Alto Networks' Next-Generation
|
||||
Firewalls, WildFire and AutoFocus. It provides:
|
||||
- a Python and command line interface to the PAN-OS and Panorama XML API
|
||||
- a command line program for managing PAN-OS XML configurations
|
||||
- a Python and command line interface to the WildFire API
|
||||
- a Python and command line interface to the AutoFocus API
|
||||
|
||||
%prep
|
||||
%setup -q -n pan-python-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
# remove .py suffix from binaries
|
||||
cd %{buildroot}/%{_bindir}
|
||||
for f in panxapi panconf panlicapi panwfapi panafapi; do mv "$f.py" "$f"; done
|
||||
#
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
# remove unneeded files
|
||||
rm -f %{buildroot}%{_bindir}/_current_flavor
|
||||
|
||||
%check
|
||||
# Upstream does not have any tests yet
|
||||
#%%pytest
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.txt
|
||||
%doc AUTHORS.rst HISTORY.rst README.rst
|
||||
%python3_only %{_bindir}/panafapi
|
||||
%python3_only %{_bindir}/panconf
|
||||
%python3_only %{_bindir}/panlicapi
|
||||
%python3_only %{_bindir}/panwfapi
|
||||
%python3_only %{_bindir}/panxapi
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user