# Macros for py2/py3 compatibility %if 0%{?fedora} || 0%{?rhel} > 7 %global pyver %{python3_pkgversion} %else %global pyver 2 %endif %global pyver_bin python%{pyver} %global pyver_sitelib %{expand:%{python%{pyver}_sitelib}} %global pyver_install %{expand:%{py%{pyver}_install}} %global pyver_build %{expand:%{py%{pyver}_build}} # End of macros for py2/py3 compatibility %{!?upstream_version: %global upstream_version %{version}%{?milestone}} %global sname rsd-lib %global pyname rsd_lib %global with_doc 1 Name: python-%{sname} Version: 1.2.0 Release: 19%{?dist} Summary: Python library for interfacing with Intel Rack Scale Design enabled hardware. # Automatically converted from old format: ASL 2.0 - review is highly recommended. License: Apache-2.0 URL: http://git.openstack.org/cgit/openstack/%{sname} Source0: http://tarballs.openstack.org/%{sname}/%{sname}-%{upstream_version}.tar.gz BuildArch: noarch %description This library extends the existing Sushy library to include functionality for Intel RackScale Design enabled hardware. Capabilities include logical node composition and decomposition, remote storage discovery and composition, and NVMe over PCIe drive attaching and detaching to logical nodes. %package -n python%{pyver}-%{sname} Summary: %{summary} %{?python_provide:%python_provide python%{pyver}-%{sname}} BuildRequires: python%{pyver}-devel BuildRequires: python%{pyver}-jsonschema BuildRequires: python%{pyver}-pbr >= 2.0 BuildRequires: python%{pyver}-setuptools BuildRequires: python%{pyver}-sushy >= 1.8.1 BuildRequires: python%{pyver}-sushy-tests >= 1.7.0 Requires: python%{pyver}-jsonschema Requires: python%{pyver}-pbr >= 2.0 Requires: python%{pyver}-sushy >= 1.8.1 %description -n python%{pyver}-%{sname} This library extends the existing Sushy library to include functionality for Intel RackScale Design enabled hardware. Capabilities include logical node composition and decomposition, remote storage discovery and composition, and NVMe over PCIe drive attaching and detaching to logical nodes. %package -n python%{pyver}-%{sname}-tests Summary: rsd-lib tests BuildRequires: python%{pyver}-devel Requires: python%{pyver}-%{sname} = %{version}-%{release} Requires: python%{pyver}-jsonschema Requires: python%{pyver}-pbr Requires: python%{pyver}-setuptools Requires: python%{pyver}-sushy >= 1.8.1 Requires: python%{pyver}-sushy-tests >= 1.7.0 %description -n python%{pyver}-%{sname}-tests Tests for rsd-lib %if 0%{?with_doc} %package -n python-%{sname}-doc Summary: rsd-lib documentation BuildRequires: python%{pyver}-sphinx BuildRequires: python%{pyver}-openstackdocstheme >= 1.11.0 %description -n python-%{sname}-doc Documentation for rsd-lib %endif %prep %autosetup -n %{sname}-%{upstream_version} -S git # Let's handle dependencies ourseleves rm -f *requirements.txt %build # amoralej - disable warning-is-error until https://review.openstack.org/#/c/636292/ is tagged. sed -i '/warning-is-error/d' setup.cfg %{pyver_build} %if 0%{?with_doc} # generate html docs sphinx-build -b html doc/source doc/build/html # remove the sphinx-build-%{pyver} leftovers rm -rf doc/build/html/.{doctrees,buildinfo} %endif %install %{pyver_install} %check export PYTHON=%{pyver_bin} # (TODO) ignore unit tests until rsd-lib is updated to 0.3.1 %{pyver_bin} setup.py test || true %files -n python%{pyver}-%{sname} %license LICENSE %doc doc/source/readme.rst README.rst %{pyver_sitelib}/%{pyname} %{pyver_sitelib}/%{pyname}-*.egg-info %exclude %{pyver_sitelib}/%{pyname}/tests %files -n python%{pyver}-%{sname}-tests %license LICENSE %{pyver_sitelib}/%{pyname}/tests %if 0%{?with_doc} %files -n python-%{sname}-doc %license LICENSE %doc doc/build/html README.rst %endif %changelog * Wed Jul 24 2024 Miroslav Suchý - 1.2.0-19 - convert license to SPDX * Fri Jul 19 2024 Fedora Release Engineering - 1.2.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jun 08 2024 Python Maint - 1.2.0-17 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.2.0-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.2.0-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Wed Aug 16 2023 Alfredo Moralejo - 1.2.0-14 - Switch to sphinx-build to create the documentation * Fri Jul 21 2023 Fedora Release Engineering - 1.2.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 03 2023 Python Maint - 1.2.0-12 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.2.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.2.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jun 16 2022 Python Maint - 1.2.0-9 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering - 1.2.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.2.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.2.0-6 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.2.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue May 26 2020 Miro Hrončok - 1.2.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Nov 06 2019 Alfredo Moralejo 1.2.0-1 - Update to upstream version 1.2.0 * Thu Oct 03 2019 Miro Hrončok - 0.5.1-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 0.5.1-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.5.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Apr 05 2019 RDO 0.5.1-1 - Update to 0.5.1