Blame python-azure-mgmt-web.spec

caec7e6
%bcond_without  tests
caec7e6
b2710e6
%global         srcname     azure-mgmt-web
b2710e6
b2710e6
Name:           python-%{srcname}
caec7e6
Version:        4.0.0
caec7e6
Release:        %autorelease
b2710e6
Summary:        Microsoft Azure Web Apps Management Client Library for Python
b2710e6
License:        MIT
b2710e6
URL:            https://pypi.org/project/%{srcname}/
b2710e6
Source0:        %{pypi_source %{srcname} %{version} zip}
b2710e6
b2710e6
BuildArch:      noarch
b2710e6
0a4886b
Epoch:          1
0a4886b
b2710e6
BuildRequires:  pyproject-rpm-macros
b2710e6
caec7e6
%if %{with tests}
caec7e6
BuildRequires:  python3dist(azure-devtools)
caec7e6
BuildRequires:  python3dist(azure-mgmt-keyvault)
caec7e6
BuildRequires:  python3dist(azure-mgmt-resource)
caec7e6
BuildRequires:  python3dist(azure-sdk-tools)
caec7e6
BuildRequires:  python3dist(pytest)
caec7e6
BuildRequires:  python3dist(pytest-aiohttp)
caec7e6
%endif
b2710e6
b2710e6
%global _description %{expand:
b2710e6
Microsoft Azure Web Apps Management Client Library for Python}
b2710e6
b2710e6
%description %{_description}
b2710e6
b2710e6
0a4886b
%package -n python3-%{srcname}
b2710e6
Summary:        %{summary}
45be940
Obsoletes:      python3-azure-sdk < 5.0.1
0a4886b
%description -n python3-%{srcname} %{_description}
b2710e6
b2710e6
b2710e6
%prep
b2710e6
%autosetup -n %{srcname}-%{version}
b2710e6
b2710e6
b2710e6
%generate_buildrequires
b2710e6
%pyproject_buildrequires -r
b2710e6
b2710e6
b2710e6
%build
b2710e6
%pyproject_wheel
b2710e6
b2710e6
b2710e6
%install
b2710e6
%pyproject_install
b2710e6
%pyproject_save_files azure
b2710e6
b2710e6
caec7e6
%if %{with tests}
caec7e6
%check
caec7e6
%pytest --disable-warnings
caec7e6
%endif
b2710e6
b2710e6
caec7e6
%files -n python3-%{srcname} -f %{pyproject_files}
caec7e6
%doc README.md CHANGELOG.md
4844581
0a4886b
caec7e6
%changelog
caec7e6
%autochangelog