2018-11-30 13:36:20 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-bindep
|
|
|
|
|
#
|
2025-01-28 01:52:50 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2018-11-30 13:36:20 +00:00
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-11-30 13:44:14 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-11-30 13:36:20 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2023-05-05 12:22:01 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2018-11-30 13:36:20 +00:00
|
|
|
Name: python-bindep
|
2025-05-06 08:54:13 +00:00
|
|
|
Version: 2.13.0
|
2018-11-30 13:36:20 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Binary dependency utility
|
|
|
|
|
License: Apache-2.0
|
2023-03-21 20:41:06 +00:00
|
|
|
URL: https://docs.opendev.org/opendev/bindep
|
2018-11-30 13:44:14 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/b/bindep/bindep-%{version}.tar.gz
|
|
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2022-01-11 20:56:23 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2023-03-21 20:41:06 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
|
BuildRequires: %{python_module distro >= 1.7.0}
|
|
|
|
|
BuildRequires: %{python_module Parsley}
|
|
|
|
|
BuildRequires: %{python_module coverage >= 3.6}
|
|
|
|
|
BuildRequires: %{python_module fixtures >= 0.3.12}
|
2023-03-27 06:49:55 +00:00
|
|
|
BuildRequires: %{python_module hatchling}
|
2023-03-21 20:41:06 +00:00
|
|
|
BuildRequires: %{python_module packaging}
|
|
|
|
|
BuildRequires: %{python_module pbr >= 2.0.0}
|
2023-03-27 06:49:55 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2023-03-21 20:41:06 +00:00
|
|
|
BuildRequires: %{python_module python-subunit}
|
|
|
|
|
BuildRequires: %{python_module testrepository >= 0.0.13}
|
|
|
|
|
BuildRequires: %{python_module testtools >= 0.9.27}
|
2023-03-27 06:49:55 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2023-03-21 20:41:06 +00:00
|
|
|
# /SECTION
|
|
|
|
|
BuildRequires: fdupes
|
2023-03-27 06:49:55 +00:00
|
|
|
BuildRequires: openSUSE-release
|
2025-05-06 08:54:13 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
|
Requires(postun): update-alternatives
|
2018-11-30 13:36:20 +00:00
|
|
|
Requires: python-Parsley
|
2023-03-21 20:41:06 +00:00
|
|
|
Requires: python-distro >= 1.7.0
|
2022-01-04 14:40:32 +00:00
|
|
|
Requires: python-packaging
|
|
|
|
|
Requires: python-pbr >= 2.0.0
|
2023-03-21 20:41:06 +00:00
|
|
|
Suggests: python-distro < 1.7.0
|
|
|
|
|
Suggests: python-packaging < 21.0
|
2018-11-30 13:36:20 +00:00
|
|
|
BuildArch: noarch
|
2018-11-30 13:44:14 +00:00
|
|
|
%python_subpackages
|
2022-01-04 14:40:32 +00:00
|
|
|
|
2018-11-30 13:36:20 +00:00
|
|
|
%description
|
|
|
|
|
Bindep is a tool for checking the presence of binary packages needed to
|
|
|
|
|
use an application / library. It started life as a way to make it easier to set
|
|
|
|
|
up a development environment for OpenStack projects. While OpenStack depends
|
|
|
|
|
heavily on `pip` for installation of Python dependencies, some dependencies are
|
|
|
|
|
not Python based, and particularly for testing, some dependencies have to be
|
|
|
|
|
installed before `pip` can be used - such as `virtualenv` and `pip` itself.
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-03-27 06:49:55 +00:00
|
|
|
%autosetup -p1 -n bindep-%{version}
|
2018-11-30 13:36:20 +00:00
|
|
|
|
|
|
|
|
%build
|
2023-03-27 06:49:55 +00:00
|
|
|
%pyproject_wheel
|
2018-11-30 13:36:20 +00:00
|
|
|
|
|
|
|
|
%install
|
2023-03-27 06:49:55 +00:00
|
|
|
%pyproject_install
|
2018-11-30 13:44:14 +00:00
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bindep
|
2023-03-21 20:41:06 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
2023-03-27 06:49:55 +00:00
|
|
|
%check
|
|
|
|
|
%pytest -s -k 'not (test_arch_implies_pacman or test_manjaro_implies_pacman)'
|
2018-11-30 13:44:14 +00:00
|
|
|
|
|
|
|
|
%post
|
2023-03-21 20:41:06 +00:00
|
|
|
%python_install_alternative bindep
|
2018-11-30 13:44:14 +00:00
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative bindep
|
2018-11-30 13:36:20 +00:00
|
|
|
|
2018-11-30 13:44:14 +00:00
|
|
|
%files %{python_files}
|
2023-03-21 20:41:06 +00:00
|
|
|
%doc AUTHORS ChangeLog NEWS.rst README.rst
|
2018-11-30 13:44:14 +00:00
|
|
|
%license LICENSE
|
|
|
|
|
%python_alternative %{_bindir}/bindep
|
2023-03-27 06:49:55 +00:00
|
|
|
%{python_sitelib}/bindep
|
|
|
|
|
%{python_sitelib}/bindep-%{version}*info
|
2018-11-30 13:36:20 +00:00
|
|
|
|
|
|
|
|
%changelog
|