Blame python-azure-mgmt-storage.spec

1ab97c6
# All tests are skipped by upstream. Skip installing test requirements.
fbc611a
%bcond_with     tests
5bab468
0d3b608
%global         srcname     azure-mgmt-storage
0d3b608
0d3b608
Name:           python-%{srcname}
420db26
Version:        21.1.0
5bab468
Release:        %autorelease
0d3b608
Summary:        Microsoft Azure Storage Management Client Library for Python
0d3b608
License:        MIT
0d3b608
URL:            https://pypi.org/project/%{srcname}/
420db26
Source0:        %{pypi_source %{srcname} %{version}}
0d3b608
0d3b608
BuildArch:      noarch
0d3b608
fbc611a
BuildRequires:  python3-devel
0d3b608
5bab468
%if %{with tests}
ea375fe
BuildRequires:  python3-azure-sdk-tools
5bab468
BuildRequires:  python3dist(azure-devtools)
5bab468
BuildRequires:  python3dist(azure-mgmt-keyvault)
5bab468
BuildRequires:  python3dist(azure-mgmt-resource)
5bab468
BuildRequires:  python3dist(pytest)
5bab468
BuildRequires:  python3dist(pytest-aiohttp)
ea375fe
BuildRequires:  python3dist(python-dotenv)
5bab468
%endif
0d3b608
0d3b608
%global _description %{expand:
0d3b608
Microsoft Azure Storage Management Client Library for Python}
0d3b608
0d3b608
%description %{_description}
0d3b608
0d3b608
4ffaf70
%package -n python3-%{srcname}
0d3b608
Summary:        %{summary}
fbc611a
4ffaf70
%description -n python3-%{srcname} %{_description}
0d3b608
0d3b608
0d3b608
%prep
0d3b608
%autosetup -n %{srcname}-%{version}
0d3b608
0d3b608
0d3b608
%generate_buildrequires
fbc611a
%pyproject_buildrequires
0d3b608
0d3b608
0d3b608
%build
0d3b608
%pyproject_wheel
0d3b608
0d3b608
0d3b608
%install
0d3b608
%pyproject_install
0d3b608
%pyproject_save_files azure
0d3b608
0d3b608
5bab468
%check
fbc611a
%pyproject_check_import
fbc611a
fbc611a
%if %{with tests}
fbc611a
%pytest
5bab468
%endif
0d3b608
0d3b608
5bab468
%files -n python3-%{srcname} -f %{pyproject_files}
5bab468
%doc README.md CHANGELOG.md
4ffaf70
68fdb52
5bab468
%changelog
5bab468
%autochangelog