Blame python-azure-mgmt-eventhub.spec

4be3eba
# Upstream removed tests.
cad3f0b
%bcond_with     tests
6baeb7c
7dbb2a5
%global         srcname     azure-mgmt-eventhub
7dbb2a5
7dbb2a5
Name:           python-%{srcname}
4be3eba
Version:        10.1.0
6baeb7c
Release:        %autorelease
7dbb2a5
Summary:        Microsoft Azure EventHub Management Client Library for Python
7dbb2a5
License:        MIT
7dbb2a5
URL:            https://pypi.org/project/%{srcname}/
7dbb2a5
Source0:        %{pypi_source %{srcname} %{version} zip}
7dbb2a5
7dbb2a5
BuildArch:      noarch
7dbb2a5
2512fd4
Epoch:          1
2512fd4
342b2c0
BuildRequires:  python3-devel
7dbb2a5
6baeb7c
%if %{with tests}
6baeb7c
BuildRequires:  python3dist(azure-devtools)
6baeb7c
BuildRequires:  python3dist(azure-mgmt-authorization)
6baeb7c
BuildRequires:  python3dist(azure-mgmt-keyvault)
6baeb7c
BuildRequires:  python3dist(azure-mgmt-resource)
6baeb7c
BuildRequires:  python3dist(azure-mgmt-storage)
6baeb7c
BuildRequires:  python3dist(azure-mgmt-network)
6baeb7c
BuildRequires:  python3dist(azure-sdk-tools)
6baeb7c
BuildRequires:  python3dist(pytest)
6baeb7c
BuildRequires:  python3dist(pytest-aiohttp)
6a58a32
BuildRequires:  python3dist(python-dotenv)
6baeb7c
%endif
6baeb7c
7dbb2a5
7dbb2a5
%global _description %{expand:
7dbb2a5
Microsoft Azure EventHub Management Client Library for Python}
7dbb2a5
7dbb2a5
%description %{_description}
7dbb2a5
7dbb2a5
2512fd4
%package -n python3-%{srcname}
7dbb2a5
Summary:        %{summary}
63e9219
2512fd4
%description -n python3-%{srcname} %{_description}
7dbb2a5
7dbb2a5
7dbb2a5
%prep
7dbb2a5
%autosetup -n %{srcname}-%{version}
7dbb2a5
7dbb2a5
7dbb2a5
%generate_buildrequires
63e9219
%pyproject_buildrequires
7dbb2a5
7dbb2a5
7dbb2a5
%build
7dbb2a5
%pyproject_wheel
7dbb2a5
7dbb2a5
7dbb2a5
%install
7dbb2a5
%pyproject_install
7dbb2a5
%pyproject_save_files azure
7dbb2a5
7dbb2a5
6baeb7c
%check
63e9219
%pyproject_check_import
63e9219
63e9219
%if %{with tests}
6baeb7c
%pytest --disable-warnings
6baeb7c
%endif
6baeb7c
6baeb7c
7dbb2a5
%files -n python3-%{srcname} -f %{pyproject_files}
7dbb2a5
%doc README.md
7dbb2a5
7dbb2a5
7dbb2a5
%changelog
6baeb7c
%autochangelog