forked from pool/python-pip-run
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip-run?expand=0&rev=13
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 19 07:23:16 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to libalternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Aug 14 06:13:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Wed Aug 14 06:13:40 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pip-run
|
# spec file for package python-pip-run
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@@ -27,12 +26,12 @@
|
|||||||
%endif
|
%endif
|
||||||
# Disables installing nbformat for tests in Ring1 (see also Patch1)
|
# Disables installing nbformat for tests in Ring1 (see also Patch1)
|
||||||
%bcond_with ringdisabled
|
%bcond_with ringdisabled
|
||||||
|
|
||||||
# Do not depend on nbformat for SLES or SLFO:Main
|
# Do not depend on nbformat for SLES or SLFO:Main
|
||||||
%if ( 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400 ) || 0%{?suse_version} == 1600
|
%if ( 0%{?suse_version} == 1500 && 0%{?sle_version} >= 150400 ) || 0%{?suse_version} == 1600
|
||||||
%bcond_without ringdisabled
|
%bcond_without ringdisabled
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-pip-run%{psuffix}
|
Name: python-pip-run%{psuffix}
|
||||||
Version: 8.8.2
|
Version: 8.8.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -50,14 +49,15 @@ BuildRequires: %{python_module pip}
|
|||||||
BuildRequires: %{python_module setuptools >= 56}
|
BuildRequires: %{python_module setuptools >= 56}
|
||||||
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
BuildRequires: %{python_module setuptools_scm >= 3.4.1}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: alts
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
|
Requires: alts
|
||||||
Requires: python-autocommand
|
Requires: python-autocommand
|
||||||
Requires: python-packaging
|
Requires: python-packaging
|
||||||
Requires: python-path >= 15.1
|
Requires: python-path >= 15.1
|
||||||
Requires: python-pip >= 19.3
|
Requires: python-pip >= 19.3
|
||||||
Requires(post): update-alternatives
|
BuildArch: noarch
|
||||||
Requires(postun): update-alternatives
|
|
||||||
%if 0%{?python_version_nodots} < 38
|
%if 0%{?python_version_nodots} < 38
|
||||||
Requires: python-importlib-metadata
|
Requires: python-importlib-metadata
|
||||||
%endif
|
%endif
|
||||||
@@ -70,7 +70,6 @@ BuildRequires: ca-certificates-mozilla
|
|||||||
BuildRequires: %{python_module nbformat}
|
BuildRequires: %{python_module nbformat}
|
||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
BuildArch: noarch
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -114,11 +113,8 @@ dont_test=""
|
|||||||
%pytest -k "$dont_test"
|
%pytest -k "$dont_test"
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%post
|
%pre
|
||||||
%python_install_alternative pip-run
|
%python_libalternatives_reset_alternative pip-run
|
||||||
|
|
||||||
%postun
|
|
||||||
%python_uninstall_alternative pip-run
|
|
||||||
|
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
|
Reference in New Issue
Block a user