forked from pool/python-pip
Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pip?expand=0&rev=104
This commit is contained in:
parent
8e6dc8d6ee
commit
6075e156e4
@ -16,13 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1500
|
%{?sle15_python_module_pythons}
|
||||||
%bcond_without libalternatives
|
|
||||||
%else
|
|
||||||
%bcond_with libalternatives
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python3-%{**}}
|
|
||||||
%global flavor @BUILD_FLAVOR@%{nil}
|
%global flavor @BUILD_FLAVOR@%{nil}
|
||||||
%if "%{flavor}" == "test"
|
%if "%{flavor}" == "test"
|
||||||
%define psuffix -test
|
%define psuffix -test
|
||||||
@ -40,7 +34,11 @@
|
|||||||
%endif
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%global skip_python2 1
|
%global skip_python2 1
|
||||||
%{?sle15_python_module_pythons}
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
Name: python-pip%{psuffix}
|
Name: python-pip%{psuffix}
|
||||||
Version: 23.1.2
|
Version: 23.1.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -62,15 +60,15 @@ Requires: ca-certificates
|
|||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
Requires: python-setuptools
|
Requires: python-setuptools
|
||||||
Requires: python-xml
|
Requires: python-xml
|
||||||
|
Recommends: ca-certificates-mozilla
|
||||||
|
BuildArch: noarch
|
||||||
%if %{with libalternatives}
|
%if %{with libalternatives}
|
||||||
Requires: alts
|
|
||||||
BuildRequires: alts
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
%else
|
%else
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun):update-alternatives
|
||||||
%endif
|
%endif
|
||||||
Recommends: ca-certificates-mozilla
|
|
||||||
BuildArch: noarch
|
|
||||||
%if %{with test}
|
%if %{with test}
|
||||||
# Test requirements:
|
# Test requirements:
|
||||||
BuildRequires: %{python_module PyYAML}
|
BuildRequires: %{python_module PyYAML}
|
||||||
@ -86,11 +84,11 @@ BuildRequires: %{python_module scripttest}
|
|||||||
BuildRequires: %{python_module setuptools-wheel}
|
BuildRequires: %{python_module setuptools-wheel}
|
||||||
BuildRequires: %{python_module virtualenv >= 1.10}
|
BuildRequires: %{python_module virtualenv >= 1.10}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
|
BuildRequires: ca-certificates
|
||||||
|
BuildRequires: git-core
|
||||||
%if 0%{?suse_version} <= 1500
|
%if 0%{?suse_version} <= 1500
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: ca-certificates
|
|
||||||
BuildRequires: git-core
|
|
||||||
%endif
|
%endif
|
||||||
%if %{with wheel}
|
%if %{with wheel}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module wheel}
|
||||||
@ -160,7 +158,7 @@ donttest="test_pip_self_version_check_calls_underlying_implementation"
|
|||||||
# keep the alternative groups separate. Users could decide to let pip and pip3 point to
|
# keep the alternative groups separate. Users could decide to let pip and pip3 point to
|
||||||
# different flavors
|
# different flavors
|
||||||
%python_install_alternative pip
|
%python_install_alternative pip
|
||||||
%if "%python_flavor" != "python2"
|
%if "%{python_flavor}" != "python2"
|
||||||
%python_install_alternative pip3
|
%python_install_alternative pip3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user