## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist} ## END: Set by rpmautospec # Tests are not included in the PyPi source, but this PR should include them: # https://github.com/Azure/azure-sdk-for-python/pull/21543 %bcond_with tests %global srcname azure-common Name: python-%{srcname} Version: 1.1.28 Release: %autorelease Summary: Microsoft Azure Client Library for Python (Common) License: MIT URL: https://pypi.org/project/%{srcname}/ Source0: %{pypi_source %{srcname} %{version} zip} Epoch: 1 BuildArch: noarch BuildRequires: python3-devel # Upstream imports adal/msrestazure, but it doesn't include adal/msrestazure in its # required packages list. # Bug: https://github.com/Azure/azure-sdk-for-python/issues/24948 Requires: python3dist(msrestazure) BuildRequires: python3dist(msrestazure) %if %{with tests} BuildRequires: python3dist(azure-devtools) BuildRequires: python3dist(azure-mgmt-keyvault) BuildRequires: python3dist(azure-mgmt-resource) BuildRequires: python3dist(azure-sdk-tools) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-aiohttp) %endif %global _description %{expand: Microsoft Azure Client Library for Python (Common)} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -r %build %pyproject_wheel %install %pyproject_install %pyproject_save_files azure %check %pyproject_check_import %if %{with tests} %pytest %endif %files -n python3-%{srcname} -f %{pyproject_files} %doc CHANGELOG.md README.md %changelog * Thu Sep 01 2022 Major Hayden 1:1.1.28-1 - Update to 1.1.28 rhbz#2050397 * Fri Jul 22 2022 Fedora Release Engineering 1:1.1.22-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Wed Jun 22 2022 Major Hayden 1:1.1.22-8 - Add import check * Mon Jun 13 2022 Python Maint 1:1.1.22-7 - Rebuilt for Python 3.11 * Fri Jan 21 2022 Fedora Release Engineering 1:1.1.22-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Nov 02 2021 Major Hayden 1:1.1.22-5 - Clean up for consistency * Wed Sep 08 2021 Major Hayden 1:1.1.22-4 - Move obsoletes into subpackage * Wed Sep 08 2021 Major Hayden 1:1.1.22-3 - Move obsoletes into subpackage * Fri Jul 23 2021 Major Hayden 1:1.1.22-2 - Add epoch number for downgrade to 1.1.22 * Thu Jul 22 2021 Major Hayden 1:1.1.22-1 - Add epoch number for downgrade * Thu Jul 22 2021 Major Hayden 1.1.22-1 - Back to version 1.1.22 * Fri Jun 18 2021 Major Hayden 1.1.27-1 - Initial import (#1970619)