diff --git a/.gitignore b/.gitignore index e87a729..9c2d6f7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /azure-mgmt-web-3.0.0.zip /azure-mgmt-web-2.0.0.zip +/azure-mgmt-web-4.0.0.zip diff --git a/python-azure-mgmt-web.spec b/python-azure-mgmt-web.spec index a316705..cdd3fc9 100644 --- a/python-azure-mgmt-web.spec +++ b/python-azure-mgmt-web.spec @@ -1,8 +1,10 @@ +%bcond_without tests + %global srcname azure-mgmt-web Name: python-%{srcname} -Version: 2.0.0 -Release: 3%{?dist} +Version: 4.0.0 +Release: %autorelease Summary: Microsoft Azure Web Apps Management Client Library for Python License: MIT URL: https://pypi.org/project/%{srcname}/ @@ -12,10 +14,16 @@ BuildArch: noarch Epoch: 1 - -BuildRequires: python3-devel BuildRequires: pyproject-rpm-macros +%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 Web Apps Management Client Library for Python} @@ -46,19 +54,15 @@ Obsoletes: python3-azure-sdk < 5.0.1 %pyproject_save_files azure -%files -n python3-%{srcname} -f %{pyproject_files} -%doc README.md +%if %{with tests} +%check +%pytest --disable-warnings +%endif -%changelog -* Wed Sep 08 2021 Major Hayden - 1:2.0.0-3 -- Move obsoletes into subpackage - -* Fri Jul 23 2021 Major Hayden - 1:2.0.0-2 -- Add epoch number for 2.0.0 downgrade +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.md CHANGELOG.md -* Thu Jul 22 2021 Major Hayden - 2.0.0-1 -- Downgrade to 2.0.0 -* Tue Jun 01 2021 Major Hayden - 3.0.0-1 -- First package. +%changelog +%autochangelog diff --git a/sources b/sources index 5197ea4..2dcd47e 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-mgmt-web-2.0.0.zip) = 73193149838d73c3d9e1d9095a269c592cd14111701c809d92fe10c1db1af68f8785656dbd7bbe3e35b89783d841cd1c2610d7490bc935cbb59702baea73e8d1 +SHA512 (azure-mgmt-web-4.0.0.zip) = bde8e0989b74d906721493986030edd37ab056b4de16ea49362cc817f0f4077b798a6c4c577f2366eaf8a64dc9442d1165433e0cfa25655f8da0cfb7bd4286d2