14
0

Accepting request 768944 from home:mnhauke

Initial package for python-redfish

OBS-URL: https://build.opensuse.org/request/show/768944
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-redfish?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal
2020-01-31 09:07:23 +00:00
committed by Git OBS Bridge
commit 1fe6941cf6
6 changed files with 231 additions and 0 deletions

68
python-redfish.spec Normal file
View File

@@ -0,0 +1,68 @@
#
# spec file for package python-redfish
#
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
#
# 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 http://bugs.opensuse.org/
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-redfish
Version: 2.1.4
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
Patch0: 0001-remove-urlparse2-dependncy.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-jsonpatch
Requires: python-jsonpath-rw
Requires: python-jsonpointer
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}
# /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
%setup -q -n %{name}-library-%{version}
%patch0 -p1
%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