From 6e4453de93863444a4f68903c05ed70a375f0fc3 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Apr 07 2022 13:28:03 +0000 Subject: Update to 12.0.0 --- diff --git a/.gitignore b/.gitignore index cd39bd0..d7f3744 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /azure-mgmt-cdn-11.0.0.zip +/azure-mgmt-cdn-12.0.0.zip diff --git a/python-azure-mgmt-cdn.spec b/python-azure-mgmt-cdn.spec index 0b1fe43..94250f4 100644 --- a/python-azure-mgmt-cdn.spec +++ b/python-azure-mgmt-cdn.spec @@ -1,8 +1,11 @@ +# Tests require docker + network access. Disabled for now. +%bcond_with tests + %global srcname azure-mgmt-cdn Name: python-%{srcname} -Version: 11.0.0 -Release: 4%{?dist} +Version: 12.0.0 +Release: %autorelease Summary: Microsoft Azure CDN Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ @@ -10,10 +13,16 @@ Source0: %{pypi_source %{srcname} %{version} zip} BuildArch: noarch - BuildRequires: python3-devel -BuildRequires: pyproject-rpm-macros +%if %{with tests} +BuildRequires: python3-azure-sdk-tools +BuildRequires: python3dist(azure-devtools) +BuildRequires: python3dist(azure-mgmt-keyvault) +BuildRequires: python3dist(azure-mgmt-resource) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(python-dotenv) +%endif %global _description %{expand: Microsoft Azure CDN Client Library for Python} @@ -23,7 +32,6 @@ Microsoft Azure CDN Client Library for Python} %package -n python3-%{srcname} Summary: %{summary} -Obsoletes: python3-azure-sdk < 5.0.1 %description -n python3-%{srcname} %{_description} @@ -39,6 +47,12 @@ Obsoletes: python3-azure-sdk < 5.0.1 %pyproject_wheel +%if %{with tests} +%check +%pytest +%endif + + %install %pyproject_install %pyproject_save_files azure @@ -49,14 +63,4 @@ Obsoletes: python3-azure-sdk < 5.0.1 %changelog -* Fri Jan 21 2022 Fedora Release Engineering - 11.0.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - -* Wed Sep 08 2021 Major Hayden - 11.0.0-3 -- Move obsoletes into subpackage - -* Fri Jul 23 2021 Fedora Release Engineering - 11.0.0-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild - -* Tue Jun 01 2021 Major Hayden - 11.0.0-1 -- First package. +%autochangelog diff --git a/sources b/sources index d18b5d5..60487e3 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-mgmt-cdn-11.0.0.zip) = 1d7fbcc5238a4f0a1158733b08b7bac2850236d12a8664dc3129dca7da91ae1f87d7e2685da64934b3e17f13664d1f9f3411bb23fcf48973df85da8b7a3b6e34 +SHA512 (azure-mgmt-cdn-12.0.0.zip) = 820a97f94bdff877b81a7825b5f85b7114fd1063a02cd6c9718850c35b9f0432029961a0d934c3e18985f6815aad65332f249db7c86b09ed35ad8a08eb5ad856