Blame python-azure-mgmt-recoveryservices.spec

8b6d740
# Upstream has no tests.
ad2e9fc
%bcond_with    tests
92b2112
1db7586
%global         srcname     azure-mgmt-recoveryservices
1db7586
1db7586
Name:           python-%{srcname}
Jeremy Cline 43ee579
Version:        3.0.0
00bc4ec
Release:        %autorelease
1db7586
Summary:        Microsoft Azure Recovery Services Client Library for Python
1db7586
License:        MIT
1db7586
URL:            https://pypi.org/project/%{srcname}/
2ef8df1
Source0:        %{pypi_source %{srcname} %{version}}
1db7586
1db7586
BuildArch:      noarch
1db7586
105491c
Epoch:          1
105491c
1db7586
1e5899a
BuildRequires:  python3-devel
1db7586
92b2112
%if %{with tests}
92b2112
BuildRequires:  python3dist(azure-devtools)
92b2112
BuildRequires:  python3dist(azure-mgmt-keyvault)
92b2112
BuildRequires:  python3dist(azure-mgmt-resource)
92b2112
BuildRequires:  python3dist(azure-sdk-tools)
92b2112
BuildRequires:  python3dist(pytest)
92b2112
BuildRequires:  python3dist(pytest-aiohttp)
1e78397
BuildRequires:  python3dist(python-dotenv)
92b2112
%endif
1db7586
1db7586
%global _description %{expand:
1db7586
Microsoft Azure Recovery Services Client Library for Python}
1db7586
1db7586
%description %{_description}
1db7586
1db7586
1e5899a
%package -n python3-%{srcname}
1db7586
Summary:        %{summary}
907bea6
Obsoletes:      python3-azure-sdk < 5.0.1
1e5899a
%description -n python3-%{srcname} %{_description}
1db7586
1db7586
1db7586
%prep
1db7586
%autosetup -n %{srcname}-%{version}
1db7586
1db7586
1db7586
%generate_buildrequires
1db7586
%pyproject_buildrequires -r
1db7586
1db7586
1db7586
%build
1db7586
%pyproject_wheel
1db7586
1db7586
1db7586
%install
1db7586
%pyproject_install
1db7586
%pyproject_save_files azure
1db7586
1db7586
92b2112
%check
7c79a4f
%pyproject_check_import
7c79a4f
7c79a4f
%if %{with tests}
92b2112
%pytest
92b2112
%endif
92b2112
92b2112
92b2112
# LICENSE missing. Made a PR to fix:
92b2112
# https://github.com/Azure/azure-sdk-for-python/pull/20178
1db7586
%files -n python3-%{srcname} -f %{pyproject_files}
92b2112
%doc README.md CHANGELOG.md
1db7586
1db7586
1db7586
%changelog
00bc4ec
%autochangelog