Blame python-azure-mgmt-synapse.spec

674ce3d
# No tests included by upstream yet.
674ce3d
%bcond_with     tests
674ce3d
6556527
%global         srcname     azure-mgmt-synapse
6556527
6556527
Name:           python-%{srcname}
4aa16b3
Version:        2.1.0~b5
4aa16b3
%global         pypi_version    2.1.0b5
f3464f6
Release:        %autorelease
6556527
Summary:        Microsoft Azure Synapse Management Client Library for Python
6556527
License:        MIT
6556527
URL:            https://pypi.org/project/%{srcname}/
4aa16b3
Source0:        %{pypi_source %{srcname} %{pypi_version} zip}
6556527
6556527
BuildArch:      noarch
6556527
6bda71e
BuildRequires:  python3-devel
6556527
bd03ca2
# NOTE(mhayden): Made an error with 2.1.0b2 and didn't use the tilde in the
bd03ca2
# version number. This broke the update to b5. BZ 2165622.
bd03ca2
Epoch:          1
bd03ca2
674ce3d
%if %{with tests}
674ce3d
BuildRequires:  python3dist(azure-devtools)
674ce3d
BuildRequires:  python3dist(azure-mgmt-keyvault)
674ce3d
BuildRequires:  python3dist(azure-mgmt-resource)
674ce3d
BuildRequires:  python3dist(azure-sdk-tools)
674ce3d
BuildRequires:  python3dist(pytest)
674ce3d
BuildRequires:  python3dist(pytest-aiohttp)
674ce3d
BuildRequires:  python3dist(python-dotenv)
674ce3d
%endif
6556527
6556527
%global _description %{expand:
6556527
Microsoft Azure Synapse Management Client Library for Python}
6556527
6556527
%description %{_description}
6556527
6556527
6bda71e
%package -n python3-%{srcname}
6556527
Summary:        %{summary}
674ce3d
6bda71e
%description -n python3-%{srcname} %{_description}
6556527
6556527
6556527
%prep
4aa16b3
%autosetup -n %{srcname}-%{pypi_version}
6556527
6556527
6556527
%generate_buildrequires
674ce3d
%pyproject_buildrequires
6556527
6556527
6556527
%build
6556527
%pyproject_wheel
6556527
6556527
6556527
%install
6556527
%pyproject_install
6556527
%pyproject_save_files azure
6556527
6556527
674ce3d
%check
674ce3d
%pyproject_check_import
674ce3d
674ce3d
%if %{with tests}
674ce3d
%pytest
674ce3d
%endif
674ce3d
674ce3d
6556527
%files -n python3-%{srcname} -f %{pyproject_files}
6556527
%doc README.md
6556527
6556527
6556527
%changelog
f3464f6
%autochangelog