forked from pool/python-pan-python
Accepting request 1282019 from devel:languages:python
- Convert to pip-based build OBS-URL: https://build.opensuse.org/request/show/1282019 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pan-python?expand=0&rev=4
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 2 15:51:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 20 07:26:03 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
Wed May 20 07:26:03 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pan-python
|
# spec file for package python-pan-python
|
||||||
#
|
#
|
||||||
# Copyright (c) 2020 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
# Copyright (c) 2017-2019, Martin Hauke <mardnh@gmx.de>
|
# Copyright (c) 2017-2019, Martin Hauke <mardnh@gmx.de>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,7 +17,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-pan-python
|
Name: python-pan-python
|
||||||
Version: 0.16.0
|
Version: 0.16.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,11 +25,13 @@ License: ISC
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/kevinsteves/pan-python
|
URL: https://github.com/kevinsteves/pan-python
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/pan-python/pan-python-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pan-python/pan-python-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): update-alternatives
|
Requires(post): alts
|
||||||
Requires(postun): update-alternatives
|
Requires(postun): alts
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
#BuildRequires: %%{python_module pytest}
|
#BuildRequires: %%{python_module pytest}
|
||||||
@@ -49,10 +50,10 @@ Firewalls, WildFire and AutoFocus. It provides:
|
|||||||
%setup -q -n pan-python-%{version}
|
%setup -q -n pan-python-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
# remove .py suffix from binaries
|
# remove .py suffix from binaries
|
||||||
cd %{buildroot}/%{_bindir}
|
cd %{buildroot}/%{_bindir}
|
||||||
for f in panxapi panconf panlicapi panwfapi panafapi; do mv "$f.py" "$f"; done
|
for f in panxapi panconf panlicapi panwfapi panafapi; do mv "$f.py" "$f"; done
|
||||||
@@ -92,6 +93,7 @@ rm -f %{buildroot}%{_bindir}/_current_flavor
|
|||||||
%python_alternative %{_bindir}/panlicapi
|
%python_alternative %{_bindir}/panlicapi
|
||||||
%python_alternative %{_bindir}/panwfapi
|
%python_alternative %{_bindir}/panwfapi
|
||||||
%python_alternative %{_bindir}/panxapi
|
%python_alternative %{_bindir}/panxapi
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pan
|
||||||
|
%{python_sitelib}/pan[-_]python-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user