Blob Blame History Raw
# No tests included by upstream yet.
%bcond_with     tests

%global         srcname     azure-mgmt-synapse

Name:           python-%{srcname}
Version:        2.1.0~b5
%global         pypi_version    2.1.0b5
Release:        %autorelease
Summary:        Microsoft Azure Synapse Management Client Library for Python
License:        MIT
URL:  {srcname}/
Source0:        %{pypi_source %{srcname} %{pypi_version} zip}

BuildArch:      noarch

BuildRequires:  python3-devel

# NOTE(mhayden): Made an error with 2.1.0b2 and didn't use the tilde in the
# version number. This broke the update to b5. BZ 2165622.
Epoch:          1

%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)
BuildRequires:  python3dist(python-dotenv)

%global _description %{expand:
Microsoft Azure Synapse Management Client Library for Python}

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}

%description -n python3-%{srcname} %{_description}

%autosetup -n %{srcname}-%{pypi_version}



%pyproject_save_files azure


%if %{with tests}

%files -n python3-%{srcname} -f %{pyproject_files}