forked from pool/python-portpicker
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-portpicker?expand=0&rev=20
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 9 15:06:09 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to libalternatives
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 3 11:55:19 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
Name: python-portpicker
|
||||
Version: 1.6.0
|
||||
Release: 0
|
||||
@@ -27,11 +28,11 @@ Source0: https://files.pythonhosted.org/packages/source/p/portpicker/port
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: net-tools-deprecated
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires(post): alts
|
||||
Requires(postun): alts
|
||||
Requires: alts
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@@ -55,11 +56,8 @@ test -f setup.py || echo "import setuptools; setuptools.setup()" > setup.py
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python src/tests/portpicker_test.py
|
||||
|
||||
%post
|
||||
%python_install_alternative portserver.py
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative portserver.py
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative portserver.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user