Blame python-azure-mgmt-sqlvirtualmachine.spec

1ba1504
# No tests provided by upstream.
1ba1504
%bcond_with     tests
1ba1504
5aa30f3
%global         srcname     azure-mgmt-sqlvirtualmachine
5aa30f3
5aa30f3
Name:           python-%{srcname}
4ae7d05
Version:        1.0.0~b5
4ae7d05
%global         pypi_version    1.0.0b5
9339cfc
Release:        %autorelease
5aa30f3
Summary:        Microsoft Azure SQL Virtual Machine Management Client Library for Python
5aa30f3
License:        MIT
5aa30f3
URL:            https://pypi.org/project/%{srcname}/
e8876be
Source0:        %{pypi_source %{srcname} %{pypi_version} zip}
5aa30f3
5aa30f3
BuildArch:      noarch
5aa30f3
d3ebca0
BuildRequires:  python3-devel
5aa30f3
1ba1504
%if %{with tests}
1ba1504
BuildRequires:  python3dist(azure-devtools)
1ba1504
BuildRequires:  python3dist(azure-mgmt-keyvault)
1ba1504
BuildRequires:  python3dist(azure-mgmt-resource)
1ba1504
BuildRequires:  python3dist(azure-sdk-tools)
1ba1504
BuildRequires:  python3dist(pytest)
1ba1504
BuildRequires:  python3dist(pytest-aiohttp)
1ba1504
BuildRequires:  python3dist(python-dotenv)
1ba1504
%endif
5aa30f3
5aa30f3
%global _description %{expand:
5aa30f3
Microsoft Azure SQL Virtual Machine Management Client Library for Python}
5aa30f3
5aa30f3
%description %{_description}
5aa30f3
5aa30f3
d3ebca0
%package -n python3-%{srcname}
5aa30f3
Summary:        %{summary}
d3ebca0
%description -n python3-%{srcname} %{_description}
5aa30f3
5aa30f3
5aa30f3
%prep
e8876be
%autosetup -n %{srcname}-%{pypi_version}
5aa30f3
5aa30f3
5aa30f3
%generate_buildrequires
1ba1504
%pyproject_buildrequires
5aa30f3
5aa30f3
5aa30f3
%build
5aa30f3
%pyproject_wheel
5aa30f3
5aa30f3
5aa30f3
%install
5aa30f3
%pyproject_install
5aa30f3
%pyproject_save_files azure
5aa30f3
5aa30f3
1ba1504
%check
1ba1504
%pyproject_check_import
1ba1504
1ba1504
%if %{with tests}
1ba1504
%pytest
1ba1504
%endif
1ba1504
1ba1504
5aa30f3
%files -n python3-%{srcname} -f %{pyproject_files}
e8876be
%doc README.md CHANGELOG.md
5aa30f3
5aa30f3
5aa30f3
%changelog
9339cfc
%autochangelog