2018-11-30 13:36:20 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-bindep
|
|
|
|
|
#
|
2022-01-04 14:40:32 +00:00
|
|
|
# Copyright (c) 2022 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
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2018-11-30 13:44:14 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2022-01-04 14:40:32 +00:00
|
|
|
%global pythons python3
|
2018-11-30 13:36:20 +00:00
|
|
|
Name: python-bindep
|
2022-01-04 14:40:32 +00:00
|
|
|
Version: 2.10.1
|
2018-11-30 13:36:20 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Binary dependency utility
|
|
|
|
|
License: Apache-2.0
|
|
|
|
|
Group: Development/Languages/Python
|
2022-01-04 14:40:32 +00:00
|
|
|
URL: https://docs.openstack.org/infra/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 Parsley}
|
2022-01-04 14:40:32 +00:00
|
|
|
BuildRequires: %{python_module cliff}
|
2018-11-30 13:44:14 +00:00
|
|
|
BuildRequires: %{python_module pbr}
|
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2018-11-30 13:36:20 +00:00
|
|
|
Requires: python-Parsley
|
2018-11-30 13:44:14 +00:00
|
|
|
Requires: python-distro
|
2022-01-04 14:40:32 +00:00
|
|
|
Requires: python-packaging
|
|
|
|
|
Requires: python-pbr >= 2.0.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
|
|
|
|
|
%setup -q -n bindep-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
2018-11-30 13:44:14 +00:00
|
|
|
%python_build
|
2018-11-30 13:36:20 +00:00
|
|
|
|
|
|
|
|
%install
|
2018-11-30 13:44:14 +00:00
|
|
|
%python_install
|
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/bindep
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%{python_install_alternative bindep}
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%python_uninstall_alternative bindep
|
2018-11-30 13:36:20 +00:00
|
|
|
|
2022-01-04 14:40:32 +00:00
|
|
|
# %check
|
|
|
|
|
# %xpython_exec setup.py test
|
2018-11-30 13:36:20 +00:00
|
|
|
|
2018-11-30 13:44:14 +00:00
|
|
|
%files %{python_files}
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst ChangeLog AUTHORS NEWS.rst
|
|
|
|
|
%python_alternative %{_bindir}/bindep
|
2018-11-30 13:36:20 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|