forked from pool/python-bindep
* Add old python packaging pin * Add release note for rocky and manjaro * feat: Add test support for Manjaro Linux * feat: Add support for Manjaro Linux * Require packaging * Add Rocky Linux support * Correctly skip sdist building in tox.ini * Fix formatting issues in docs * Build releases on ubuntu-focal * Update contributor doc and readme * Overhaul Python package metadata * Remove release note about rpm path references * Build docs for OpenDev * Move all jobs in-repo * Publish release notes * Add missing release notes * Assure bindep can be called as a module * ArchLinux: ignore unrelated warnings from pacman * Fixed pep8 job * Add centos 8 and focal testing * Cull the test bindep file * Use abstracted virtualenv\_command from ensure-pip * Tolerate missing bindep.txt when using --profiles * Add OracleLinux support * Fix test execution failure on Darwin * Expose base python version as an atom * Fix emerge testcases * Replace Trusty with Bionic in the testing * Some cleanups OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bindep?expand=0&rev=5
74 lines
2.3 KiB
RPMSpec
74 lines
2.3 KiB
RPMSpec
#
|
|
# spec file for package python-bindep
|
|
#
|
|
# Copyright (c) 2022 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
%global pythons python3
|
|
Name: python-bindep
|
|
Version: 2.10.1
|
|
Release: 0
|
|
Summary: Binary dependency utility
|
|
License: Apache-2.0
|
|
Group: Development/Languages/Python
|
|
URL: https://docs.openstack.org/infra/bindep
|
|
Source: https://files.pythonhosted.org/packages/source/b/bindep/bindep-%{version}.tar.gz
|
|
BuildRequires: %{python_module Parsley}
|
|
BuildRequires: %{python_module cliff}
|
|
BuildRequires: %{python_module pbr}
|
|
BuildRequires: %{python_module setuptools}
|
|
Requires: python-Parsley
|
|
Requires: python-distro
|
|
Requires: python-packaging
|
|
Requires: python-pbr >= 2.0.0
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%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
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_clone -a %{buildroot}%{_bindir}/bindep
|
|
|
|
%post
|
|
%{python_install_alternative bindep}
|
|
|
|
%postun
|
|
%python_uninstall_alternative bindep
|
|
|
|
# %check
|
|
# %xpython_exec setup.py test
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.rst ChangeLog AUTHORS NEWS.rst
|
|
%python_alternative %{_bindir}/bindep
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|