Blame python-azure-mgmt-managementgroups.spec

dfd20b9
# No tests included by upstream.
dfd20b9
%bcond_with     tests
dfd20b9
0b5726b
%global         srcname     azure-mgmt-managementgroups
0b5726b
0b5726b
Name:           python-%{srcname}
4ad75f4
Version:        1.0.0
4ad75f4
Release:        %autorelease
0b5726b
Summary:        Microsoft Azure Management Groups Client Library for Python
0b5726b
License:        MIT
0b5726b
URL:            https://pypi.org/project/%{srcname}/
0b5726b
Source0:        %{pypi_source %{srcname} %{version} zip}
0b5726b
0b5726b
BuildArch:      noarch
0b5726b
7c78bae
Epoch:          1
7c78bae
7c78bae
BuildRequires:  python3-devel
0b5726b
dfd20b9
%if %{with tests}
dfd20b9
BuildRequires:  python3dist(azure-devtools)
dfd20b9
BuildRequires:  python3dist(azure-mgmt-keyvault)
dfd20b9
BuildRequires:  python3dist(azure-mgmt-resource)
dfd20b9
BuildRequires:  python3dist(azure-sdk-tools)
dfd20b9
BuildRequires:  python3dist(pytest)
dfd20b9
BuildRequires:  python3dist(pytest-aiohttp)
dfd20b9
BuildRequires:  python3dist(python-dotenv)
dfd20b9
%endif
0b5726b
0b5726b
%global _description %{expand:
0b5726b
Microsoft Azure Management Groups Client Library for Python}
0b5726b
0b5726b
%description %{_description}
0b5726b
0b5726b
7c78bae
%package -n python3-%{srcname}
0b5726b
Summary:        %{summary}
dfd20b9
7c78bae
%description -n python3-%{srcname} %{_description}
0b5726b
0b5726b
0b5726b
%prep
0b5726b
%autosetup -n %{srcname}-%{version}
0b5726b
0b5726b
0b5726b
%generate_buildrequires
dfd20b9
%pyproject_buildrequires
0b5726b
0b5726b
0b5726b
%build
0b5726b
%pyproject_wheel
0b5726b
0b5726b
0b5726b
%install
0b5726b
%pyproject_install
0b5726b
%pyproject_save_files azure
0b5726b
0b5726b
dfd20b9
%check
dfd20b9
%pyproject_check_import
dfd20b9
dfd20b9
%if %{with tests}
dfd20b9
%pytest
dfd20b9
%endif
dfd20b9
dfd20b9
0b5726b
%files -n python3-%{srcname} -f %{pyproject_files}
4ad75f4
%doc README.md CHANGELOG.md
0b5726b
0b5726b
0b5726b
%changelog
4ad75f4
%autochangelog