diff --git a/sushy-oem-idrac-2.1.0.tar.gz b/sushy-oem-idrac-2.1.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..4f50ee0ab50a41d4c8333463f54b99f16e949e8f Binary files /dev/null and b/sushy-oem-idrac-2.1.0.tar.gz differ diff --git a/sushy-oem-idrac.spec b/sushy-oem-idrac.spec new file mode 100644 index 0000000000000000000000000000000000000000..bb400a74600ebf15a7692188ba99e11cd8cd5c97 --- /dev/null +++ b/sushy-oem-idrac.spec @@ -0,0 +1,105 @@ +%global _empty_manifest_terminate_build 0 +%global common_desc \ + Dell EMC OEM extension for sushy Sushy is a client [library]( designed to \ + communicate with [Redfish]( based BMC.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. + +Name: python-sushy-oem-idrac +Version: 2.1.0 +Release: 1 +Summary: Dell EMC iDRAC OEM extension package for the sushy library +License: Apache-2.0 +URL: https://docs.openstack.org/sushy/latest/ +Source0: https://files.pythonhosted.org/packages/a7/cc/62c8dde44b3411efa19eba03d86558cc1b1ce462b4c049c7c7fcad0e379c/sushy-oem-idrac-2.1.0.tar.gz +BuildArch: noarch +%description +%{common_desc} + +%package -n python3-sushy-oem-idrac +Summary: Dell EMC iDRAC OEM extension package for the sushy library +Provides: python-sushy-oem-idrac +# Base build requires +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pbr +BuildRequires: python3-pip +BuildRequires: python3-wheel +# General requires +BuildRequires: python3-dateutil +BuildRequires: python3-sushy >= 3.7.0 +# for test +BuildRequires: python3-reno >= 2.5.0 +BuildRequires: python3-testtools >= 2.2.0 +BuildRequires: python3-coverage +BuildRequires: python3-subunit >= 1.0.0 +BuildRequires: python3-sphinx >= 1.6.2 +BuildRequires: python3-openstackdocstheme >= 1.18.1 +BuildRequires: python3-oslotest >= 3.2.0 +BuildRequires: python3-stestr >= 2.0.0 +BuildRequires: python3-testscenarios >= 0.4 +# General requires +Requires: python3-pbr +Requires: python3-dateutil +Requires: python3-sushy >= 3.7.0 +%description -n python3-sushy-oem-idrac +%{common_desc} + +%package help +Summary: Dell EMC iDRAC OEM extension package for the sushy library +Provides: python3-sushy-oem-idrac-doc +%description help +%{common_desc} + +%prep +%autosetup -n sushy-oem-idrac-2.1.0 + +%build +%py3_build + + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%check +%{__python3} setup.py test + +%files -n python3-sushy-oem-idrac -f filelist.lst +%dir %{python3_sitelib}/* + + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jul 20 2021 OpenStack_SIG - 2.1.0-1 +- Package Spec generate