Blame python-azure-mgmt-hdinsight.spec

b508f00
# Tests require python packages that aren't included anywhere I can find.
b508f00
%bcond_with     tests
b508f00
572eba5
%global         srcname     azure-mgmt-hdinsight
572eba5
572eba5
Name:           python-%{srcname}
91d4c73
Version:        9.0.0
91d4c73
Release:        %autorelease
572eba5
Summary:        Microsoft Azure HDInsight Management Client Library for Python
572eba5
License:        MIT
572eba5
URL:            https://pypi.org/project/%{srcname}/
572eba5
Source0:        %{pypi_source %{srcname} %{version} zip}
572eba5
572eba5
BuildArch:      noarch
572eba5
91d4c73
BuildRequires:  python3-devel
572eba5
b508f00
%if %{with tests}
b508f00
BuildRequires:  python3dist(azure-devtools)
b508f00
BuildRequires:  python3dist(azure-mgmt-keyvault)
b508f00
BuildRequires:  python3dist(azure-mgmt-resource)
b508f00
BuildRequires:  python3dist(azure-sdk-tools)
b508f00
BuildRequires:  python3dist(pytest)
b508f00
BuildRequires:  python3dist(pytest-aiohttp)
b508f00
BuildRequires:  python3dist(python-dotenv)
b508f00
%endif
572eba5
572eba5
%global _description %{expand:
572eba5
Microsoft Azure HDInsight Management Client Library for Python}
572eba5
572eba5
%description %{_description}
572eba5
572eba5
91d4c73
%package -n python3-%{srcname}
572eba5
Summary:        %{summary}
b508f00
91d4c73
%description -n python3-%{srcname} %{_description}
572eba5
572eba5
572eba5
%prep
572eba5
%autosetup -n %{srcname}-%{version}
572eba5
572eba5
572eba5
%generate_buildrequires
b508f00
%pyproject_buildrequires
572eba5
572eba5
572eba5
%build
572eba5
%pyproject_wheel
572eba5
572eba5
572eba5
%install
572eba5
%pyproject_install
572eba5
%pyproject_save_files azure
572eba5
572eba5
b508f00
%check
b508f00
%pyproject_check_import
b508f00
b508f00
%if %{with tests}
b508f00
%pytest
b508f00
%endif
b508f00
b508f00
572eba5
%files -n python3-%{srcname} -f %{pyproject_files}
572eba5
%doc README.md
572eba5
572eba5
572eba5
%changelog
91d4c73
%autochangelog