forked from pool/python-pan-python
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pan-python?expand=0&rev=10
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jun 9 14:23:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 2 15:51:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
Mon Jun 2 15:51:57 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%bcond_without libalternatives
|
||||||
Name: python-pan-python
|
Name: python-pan-python
|
||||||
Version: 0.16.0
|
Version: 0.16.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -28,10 +29,10 @@ Source: https://files.pythonhosted.org/packages/source/p/pan-python/pan-
|
|||||||
BuildRequires: %{python_module pip}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires(post): alts
|
Requires: alts
|
||||||
Requires(postun): alts
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# SECTION test requirements
|
# SECTION test requirements
|
||||||
#BuildRequires: %%{python_module pytest}
|
#BuildRequires: %%{python_module pytest}
|
||||||
@@ -71,19 +72,12 @@ rm -f %{buildroot}%{_bindir}/_current_flavor
|
|||||||
# Upstream does not have any tests yet
|
# Upstream does not have any tests yet
|
||||||
#%%pytest
|
#%%pytest
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative panxapi
|
%python_libalternatives_reset_alternative panxapi
|
||||||
%python_install_alternative panwfapi
|
%python_libalternatives_reset_alternative panwfapi
|
||||||
%python_install_alternative panlicapi
|
%python_libalternatives_reset_alternative panlicapi
|
||||||
%python_install_alternative panconf
|
%python_libalternatives_reset_alternative panconf
|
||||||
%python_install_alternative panafapi
|
%python_libalternatives_reset_alternative panafapi
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative panxapi
|
|
||||||
%python_uninstall_alternative panwfapi
|
|
||||||
%python_uninstall_alternative panlicapi
|
|
||||||
%python_uninstall_alternative panconf
|
|
||||||
%python_uninstall_alternative panafapi
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|||||||
Reference in New Issue
Block a user