Blame python-azure-mgmt-automanage.spec

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