diff --git a/.gitignore b/.gitignore index c6dc751..09f8bb5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /azure-mgmt-media-7.0.0.zip /azure-mgmt-media-3.0.0.zip +/azure-mgmt-media-8.0.0.zip diff --git a/python-azure-mgmt-media.spec b/python-azure-mgmt-media.spec index f6a71c3..1d28b60 100644 --- a/python-azure-mgmt-media.spec +++ b/python-azure-mgmt-media.spec @@ -1,7 +1,10 @@ +# No tests included yet. +%bcond_with tests + %global srcname azure-mgmt-media Name: python-%{srcname} -Version: 7.0.0 +Version: 8.0.0 Release: %autorelease Summary: Microsoft Azure Media Services Client Library for Python License: MIT @@ -12,10 +15,17 @@ BuildArch: noarch Epoch: 1 - 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(azure-mgmt-storage) +BuildRequires: python3dist(pytest) +BuildRequires: python3dist(python-dotenv) +%endif %global _description %{expand: Microsoft Azure Media Services Client Library for Python} @@ -25,7 +35,6 @@ Microsoft Azure Media Services Client Library for Python} %package -n python3-%{srcname} Summary: %{summary} -Obsoletes: python3-azure-sdk < 5.0.1 %description -n python3-%{srcname} %{_description} @@ -41,6 +50,12 @@ Obsoletes: python3-azure-sdk < 5.0.1 %pyproject_wheel +%if %{with tests} +%check +%pytest +%endif + + %install %pyproject_install %pyproject_save_files azure diff --git a/sources b/sources index 233d236..64407ad 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (azure-mgmt-media-7.0.0.zip) = 682df30086f4eecd801db51e1fd17acd3364fcb6c7ba5d833c7066c42074227e3efc4fd298ad87bf2e9d54c0e7ffaea3762828a16893b02b022f2666be5b2ac0 +SHA512 (azure-mgmt-media-8.0.0.zip) = 5c42beebc5e9c6d770bbf149e278eff041dedf48d79f345913bcd52ae047c3b367174960ec66502e9aa5a153f3dcc0963f3d05d50c7ded253fe95671b758ba2c