Blame python-azure-mgmt-netapp.spec

1fb66fa
# Tests require docker + networking. Disabled for now.
1fb66fa
%bcond_with     tests
1fb66fa
1fb626c
%global         srcname     azure-mgmt-netapp
1fb626c
1fb626c
Name:           python-%{srcname}
201a5a9
Version:        10.1.0
1a10a2b
Release:        %autorelease
1fb626c
Summary:        Microsoft Azure NetApp Files Management Client Library for Python
1fb626c
License:        MIT
1fb626c
URL:            https://pypi.org/project/%{srcname}/
1fb626c
Source0:        %{pypi_source %{srcname} %{version} zip}
1fb626c
1fb626c
BuildArch:      noarch
1fb626c
1fb66fa
BuildRequires:  python3-devel
1fb626c
1fb66fa
%if %{with tests}
1fb66fa
BuildRequires:  python3-azure-sdk-tools
1fb66fa
BuildRequires:  python3dist(azure-devtools)
1fb66fa
BuildRequires:  python3dist(azure-mgmt-keyvault)
1fb66fa
BuildRequires:  python3dist(azure-mgmt-resource)
1fb66fa
BuildRequires:  python3dist(pytest)
1fb66fa
BuildRequires:  python3dist(python-dotenv)
1fb66fa
%endif
1fb626c
1fb626c
%global _description %{expand:
1fb626c
Microsoft Azure NetApp Files Management Client Library for Python}
1fb626c
1fb626c
%description %{_description}
1fb626c
1fb626c
b062810
%package -n python3-%{srcname}
1fb626c
Summary:        %{summary}
2e82443
b062810
%description -n python3-%{srcname} %{_description}
1fb626c
1fb626c
1fb626c
%prep
1fb626c
%autosetup -n %{srcname}-%{version}
1fb626c
1fb626c
1fb626c
%generate_buildrequires
2e82443
%pyproject_buildrequires
1fb626c
1fb626c
1fb626c
%build
1fb626c
%pyproject_wheel
1fb626c
1fb626c
1fb626c
%install
1fb626c
%pyproject_install
1fb626c
%pyproject_save_files azure
1fb626c
1fb626c
2e82443
2e82443
%check
2e82443
%pyproject_check_import
2e82443
2e82443
%if %{with tests}
2e82443
%pytest
2e82443
%endif
2e82443
2e82443
1fb626c
%files -n python3-%{srcname} -f %{pyproject_files}
1fb66fa
%doc CHANGELOG.md README.md
1fb626c
1fb626c
1fb626c
%changelog
1a10a2b
%autochangelog