%{!?upstream_version: %global upstream_version %{version}%{?milestone}} %global srcname shade %global common_desc shade is a simple client library for operating OpenStack clouds. Name: python-%{srcname} Version: 1.33.0 Release: 13%{?dist} Summary: Python module for operating OpenStack clouds License: Apache-2.0 URL: https://pypi.python.org/pypi/shade Source0: https://tarballs.openstack.org/shade/shade-%{upstream_version}.tar.gz # Use unittest.mock instead of mock Patch0: shade-use-unittest-mock.diff BuildArch: noarch BuildRequires: git BuildRequires: python3-pbr BuildRequires: python3-devel # test-requirements.txt BuildRequires: python3-betamax BuildRequires: python3-stestr # requirements.txt BuildRequires: python3-six BuildRequires: python3-keystoneauth1 BuildRequires: python3-munch BuildRequires: python3-os-client-config BuildRequires: python3-requestsexceptions BuildRequires: python3-jmespath BuildRequires: python3-testrepository BuildRequires: python3-testscenarios BuildRequires: python3-decorator BuildRequires: python3-netifaces BuildRequires: python3-dogpile-cache BuildRequires: python3-requests-mock %description %{common_desc} %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} Requires: python3-jmespath >= 0.9.0 Requires: python3-keystoneauth1 >= 3.3.0 Requires: python3-munch >= 2.1.0 Requires: python3-os-client-config >= 1.28.0 Requires: python3-openstacksdk >= 0.15.0 Requires: python3-pbr >= 2.0.0 Requires: python3-requestsexceptions >= 1.2.0 Requires: python3-six >= 1.10.0 Requires: python3-dogpile-cache >= 0.6.2 Requires: python3-decorator >= 3.4.0 Requires: python3-netifaces >= 0.10.4 %description -n python3-%{srcname} %{common_desc} %prep %autosetup -n %{srcname}-%{upstream_version} -p1 %build %py3_build %check # some tests currently fail # ====== # Totals # ====== # Ran: 818 tests in 1.7937 sec. # - Passed: 676 # - Skipped: 0 # - Expected Fail: 0 # - Unexpected Success: 0 # - Failed: 142 # Sum of execute time for each test: 23.2021 sec. PYTHON=%{__python3} stestr run || true %install %py3_install mv $RPM_BUILD_ROOT%{_bindir}/shade-inventory \ $RPM_BUILD_ROOT%{_bindir}/shade-inventory-3 ln -s shade-inventory-3 \ $RPM_BUILD_ROOT%{_bindir}/shade-inventory %files -n python3-%{srcname} %license LICENSE %doc README.rst AUTHORS %{python3_sitelib}/shade* %{_bindir}/shade-inventory-3 %{_bindir}/shade-inventory %changelog * Tue Feb 27 2024 Michel Lind - 1.33.0-13 - Reenable tests - Use SPDX license identifier - Refactor to use unittest.mock * Fri Jan 26 2024 Fedora Release Engineering - 1.33.0-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.33.0-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.33.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jul 10 2023 Python Maint - 1.33.0-9 - Rebuilt for Python 3.12 * Fri Jan 20 2023 Fedora Release Engineering - 1.33.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 22 2022 Fedora Release Engineering - 1.33.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jan 21 2022 Fedora Release Engineering - 1.33.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Jul 23 2021 Fedora Release Engineering - 1.33.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 1.33.0-4 - Rebuilt for Python 3.10 * Wed Jan 27 2021 Fedora Release Engineering - 1.33.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.33.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jun 04 2020 Joel Capitao 1.33.0-1 - Update to upstream version 1.33.0 * Tue May 26 2020 Miro Hrončok - 1.32.0-3 - Rebuilt for Python 3.9 * Thu Jan 30 2020 Fedora Release Engineering - 1.32.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Nov 06 2019 Alfredo Moralejo 1.32.0-1 - Update to upstream version 1.32.0 * Thu Oct 03 2019 Miro Hrončok - 1.31.0-4 - Rebuilt for Python 3.8.0rc1 (#1748018) * Mon Aug 19 2019 Miro Hrončok - 1.31.0-3 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 1.31.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Mon Mar 11 2019 RDO 1.31.0-1 - Update to 1.31.0