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:
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