forked from pool/python-bindep
- Convert to libalternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bindep?expand=0&rev=18
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_without libalternatives
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-bindep
|
||||
Version: 2.13.0
|
||||
@@ -26,11 +27,22 @@ URL: https://docs.opendev.org/opendev/bindep
|
||||
Source: https://files.pythonhosted.org/packages/source/b/bindep/bindep-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pbr}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: alts
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: openSUSE-release
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: alts
|
||||
Requires: python-Parsley
|
||||
Requires: python-distro >= 1.7.0
|
||||
Requires: python-packaging
|
||||
Requires: python-pbr >= 2.0.0
|
||||
Suggests: python-distro < 1.7.0
|
||||
Suggests: python-packaging < 21.0
|
||||
BuildArch: noarch
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module distro >= 1.7.0}
|
||||
BuildRequires: %{python_module Parsley}
|
||||
BuildRequires: %{python_module coverage >= 3.6}
|
||||
BuildRequires: %{python_module distro >= 1.7.0}
|
||||
BuildRequires: %{python_module fixtures >= 0.3.12}
|
||||
BuildRequires: %{python_module hatchling}
|
||||
BuildRequires: %{python_module packaging}
|
||||
@@ -42,17 +54,6 @@ BuildRequires: %{python_module testrepository >= 0.0.13}
|
||||
BuildRequires: %{python_module testtools >= 0.9.27}
|
||||
BuildRequires: %{python_module wheel}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: openSUSE-release
|
||||
Requires(post): update-alternatives
|
||||
Requires(postun): update-alternatives
|
||||
Requires: python-Parsley
|
||||
Requires: python-distro >= 1.7.0
|
||||
Requires: python-packaging
|
||||
Requires: python-pbr >= 2.0.0
|
||||
Suggests: python-distro < 1.7.0
|
||||
Suggests: python-packaging < 21.0
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
@@ -77,11 +78,8 @@ installed before `pip` can be used - such as `virtualenv` and `pip` itself.
|
||||
%check
|
||||
%pytest -s -k 'not (test_arch_implies_pacman or test_manjaro_implies_pacman)'
|
||||
|
||||
%post
|
||||
%python_install_alternative bindep
|
||||
|
||||
%postun
|
||||
%python_uninstall_alternative bindep
|
||||
%pre
|
||||
%python_libalternatives_reset_alternative bindep
|
||||
|
||||
%files %{python_files}
|
||||
%doc AUTHORS ChangeLog NEWS.rst README.rst
|
||||
|
||||
Reference in New Issue
Block a user