From 3060ab35f45ecfa45fc7e2f4d951f92b3c0a85be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dirk=20M=C3=BCller?= Date: Tue, 19 Sep 2023 14:50:34 +0200 Subject: [PATCH] Add sushy-oem-idrac Change-Id: I2a706255d550689b7ce664dd8b9a4ccb3813ff9b --- .../sushy-oem-idrac/sushy-oem-idrac.spec.j2 | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 openstack/sushy-oem-idrac/sushy-oem-idrac.spec.j2 diff --git a/openstack/sushy-oem-idrac/sushy-oem-idrac.spec.j2 b/openstack/sushy-oem-idrac/sushy-oem-idrac.spec.j2 new file mode 100644 index 000000000..62bb33cd5 --- /dev/null +++ b/openstack/sushy-oem-idrac/sushy-oem-idrac.spec.j2 @@ -0,0 +1,63 @@ +{% set pypi_name = 'sushy-oem-idrac' %} +{% set upstream_version = upstream_version('5.0.0') %} +{% set rpm_release = '1' %} +{% set source = url_pypi() %} + +Name: {{ py2name() }} +Version: {{ py2rpmversion() }} +Release: {{ py2rpmrelease() }} +Summary: Dell EMC iDRAC OEM extension package for the sushy library +License: {{ license('Apache-2.0') }} +Group: Development/Languages/Python +URL: https://docs.openstack.org/{{ pypi_name }} +Source0: {{ source }} +BuildRequires: openstack-macros +BuildRequires: {{ py3('oslotest') }} +BuildRequires: {{ py3('pbr') }} +BuildRequires: {{ py3('python-dateutil') }} +BuildRequires: {{ py3('python-subunit') }} +BuildRequires: {{ py3('reno') }} +BuildRequires: {{ py3('stestr') }} +BuildRequires: {{ py3('sushy') }} +BuildArch: noarch + +%description +Redfish specification offers extensibility mechanism to let hardware vendors +introduce their own features with the common Redfish framework. At the same +time, sushy supports extending its data model by loading extensions found +within its "oem" namespace. + +The sushy-oem-idrac package is a sushy extension package that aims at adding +high-level hardware management abstractions, that are specific to Dell EMC BMC +(which is known under the name of iDRAC), to the tree of sushy Redfish +resources. + +%package -n {{ py2name(py_versions='py3') }} +Summary: Dell EMC iDRAC OEM extension package for the sushy library +Requires: {{ py3('pbr') }} +Requires: {{ py3('python-dateutil') }} +Requires: {{ py3('sushy') }} + +%description -n {{ py2name(py_versions='py3') }} +This package provides the iDRAC OEM extensions for sushy + +%prep +%autosetup -p1 -n {{ pypi_name }}-{{ upstream_version }} +%py_req_cleanup + +%build +%{py3_build} + +%install +%{py3_install} + +%check +%{openstack_stestr_run} + +%files -n {{ py2name(py_versions='py3') }} +%license LICENSE +%doc AUTHORS ChangeLog README.md +%{python3_sitelib}/sushy_oem_idrac +%{python3_sitelib}/sushy_oem_idrac*.egg-info + +%changelog