2020-01-31 09:07:23 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-redfish
|
|
|
|
#
|
2022-01-16 14:08:07 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2021-09-01 18:58:13 +00:00
|
|
|
# Copyright (c) 2020-2021, Martin Hauke <mardnh@gmx.de>
|
2020-01-31 09:07:23 +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.
|
|
|
|
|
2020-03-19 05:05:03 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-01-31 09:07:23 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-redfish
|
2022-01-16 14:08:07 +00:00
|
|
|
Version: 3.1.0
|
2020-01-31 09:07:23 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Redfish Python Library
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: https://github.com/DMTF/python-redfish-library
|
|
|
|
Source: https://github.com/DMTF/python-redfish-library/archive/%{version}.tar.gz#/redfish-%{version}.tar.gz
|
2022-01-16 14:08:07 +00:00
|
|
|
# submitted as gh#DMTF/python-redfish-library#118
|
|
|
|
Patch1: collections-python310.patch
|
2020-01-31 09:07:23 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: python-jsonpatch
|
|
|
|
Requires: python-jsonpath-rw
|
|
|
|
Requires: python-jsonpointer
|
2022-01-16 14:08:07 +00:00
|
|
|
Requires: python-requests
|
2020-01-31 09:07:23 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module jsonpatch}
|
|
|
|
BuildRequires: %{python_module jsonpath-rw}
|
|
|
|
BuildRequires: %{python_module jsonpointer}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2021-10-26 06:22:20 +00:00
|
|
|
BuildRequires: %{python_module requests-toolbelt}
|
2022-01-16 14:08:07 +00:00
|
|
|
BuildRequires: %{python_module requests}
|
2020-01-31 09:07:23 +00:00
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Redfish library performs the basic HTTPS operations GET, POST,
|
|
|
|
PUT, PATCH and DELETE on resources using the HATEOAS (Hypermedia as
|
|
|
|
the Engine of Application State) Redfish architecture.
|
|
|
|
|
|
|
|
%prep
|
2022-01-16 14:08:07 +00:00
|
|
|
%autosetup -p1 -n %{name}-library-%{version}
|
2020-01-31 09:07:23 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
%pytest
|
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%license LICENSE.md
|
|
|
|
%doc README.rst CHANGELOG.md
|
|
|
|
%{python_sitelib}/redfish*
|
|
|
|
|
|
|
|
%changelog
|