15
0
forked from pool/python-bindep

Accepting request 1073470 from home:ojkastl_buildservice:Branch_devel_languages_python

recreate spec file using py2pack, needs python-mock (see SR#1073469)

OBS-URL: https://build.opensuse.org/request/show/1073470
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-bindep?expand=0&rev=9
This commit is contained in:
2023-03-21 20:41:06 +00:00
committed by Git OBS Bridge
parent 755320e91a
commit 2febc4ba61
2 changed files with 33 additions and 16 deletions

View File

@@ -1,13 +1,18 @@
-------------------------------------------------------------------
Tue Mar 21 07:08:38 UTC 2023 - Johannes Kastl <kastl@b1-systems.de>
- recreate spec file using py2pack
-------------------------------------------------------------------
Fri Sep 23 02:33:16 UTC 2022 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to 2.11.0
- Update to 2.11.0
* Add support for Rocky Linux and Manjaro to Bindep.
-------------------------------------------------------------------
Tue Jan 11 20:56:10 UTC 2022 - Dirk Müller <dmueller@suse.com>
- add python-rpm-macros dependency
- add python-rpm-macros dependency
-------------------------------------------------------------------
Tue Jan 4 09:01:17 UTC 2022 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-bindep
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,24 +17,35 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global pythons python3
Name: python-bindep
Version: 2.11.0
Release: 0
Summary: Binary dependency utility
License: Apache-2.0
Group: Development/Languages/Python
URL: https://docs.openstack.org/infra/bindep
URL: https://docs.opendev.org/opendev/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}
BuildRequires: python-rpm-macros
# 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}
BuildRequires: %{python_module mock >= 2.0}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pbr >= 2.0.0}
BuildRequires: %{python_module python-subunit}
BuildRequires: %{python_module testrepository >= 0.0.13}
BuildRequires: %{python_module testtools >= 0.9.27}
# /SECTION
BuildRequires: fdupes
Requires: python-Parsley
Requires: python-distro
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
@@ -55,19 +66,20 @@ installed before `pip` can be used - such as `virtualenv` and `pip` itself.
%install
%python_install
%python_clone -a %{buildroot}%{_bindir}/bindep
%post
%{python_install_alternative bindep}
%postun
%python_uninstall_alternative bindep
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# %check
# %xpython_exec setup.py test
%post
%python_install_alternative bindep
%postun
%python_uninstall_alternative bindep
%files %{python_files}
%doc AUTHORS ChangeLog NEWS.rst README.rst
%license LICENSE
%doc README.rst ChangeLog AUTHORS NEWS.rst
%python_alternative %{_bindir}/bindep
%{python_sitelib}/*