From 58f8e051e0b1c5706f544595d7db01e1e511477903c10895401dcf45d00e67d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 2 Jun 2025 15:52:19 +0000 Subject: [PATCH] - Convert to pip-based build OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pan-python?expand=0&rev=7 --- python-pan-python.changes | 5 +++++ python-pan-python.spec | 16 +++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/python-pan-python.changes b/python-pan-python.changes index 8bb6036..b27ba5c 100644 --- a/python-pan-python.changes +++ b/python-pan-python.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jun 2 15:51:57 UTC 2025 - Markéta Machová + +- Convert to pip-based build + ------------------------------------------------------------------- Wed May 20 07:26:03 UTC 2020 - Petr Gajdos diff --git a/python-pan-python.spec b/python-pan-python.spec index 55073a8..8a995c4 100644 --- a/python-pan-python.spec +++ b/python-pan-python.spec @@ -1,7 +1,7 @@ # # spec file for package python-pan-python # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2017-2019, Martin Hauke # # 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 Version: 0.16.0 Release: 0 @@ -26,11 +25,13 @@ License: ISC Group: Development/Languages/Python 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 pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(post): alts +Requires(postun): alts BuildArch: noarch # SECTION test requirements #BuildRequires: %%{python_module pytest} @@ -49,10 +50,10 @@ Firewalls, WildFire and AutoFocus. It provides: %setup -q -n pan-python-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install # remove .py suffix from binaries cd %{buildroot}/%{_bindir} 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}/panwfapi %python_alternative %{_bindir}/panxapi -%{python_sitelib}/* +%{python_sitelib}/pan[-_]python +%{python_sitelib}/pan[-_]python-%{version}*-info %changelog