Blame python-azure-mgmt-cdn.spec

6e4453d
# Tests require docker + network access. Disabled for now.
6e4453d
%bcond_with     tests
6e4453d
5357e48
%global         srcname     azure-mgmt-cdn
5357e48
5357e48
Name:           python-%{srcname}
6e4453d
Version:        12.0.0
6e4453d
Release:        %autorelease
5357e48
Summary:        Microsoft Azure CDN Client Library for Python
5357e48
License:        MIT
5357e48
URL:            https://pypi.org/project/%{srcname}/
f25fde6
# This source comes from making a git archive of the main azure-sdk-for-python
f25fde6
# repository. To reproduce the source code, run the generate-source.sh script.
f25fde6
Source0:        %{srcname}-%{version}.tgz
5357e48
5357e48
BuildArch:      noarch
5357e48
1a08e7d
BuildRequires:  python3-devel
5357e48
6e4453d
%if %{with tests}
6e4453d
BuildRequires:  python3dist(azure-devtools)
6e4453d
BuildRequires:  python3dist(azure-mgmt-keyvault)
6e4453d
BuildRequires:  python3dist(azure-mgmt-resource)
f25fde6
BuildRequires:  python3dist(azure-sdk-tools)
6e4453d
BuildRequires:  python3dist(pytest)
6e4453d
BuildRequires:  python3dist(python-dotenv)
6e4453d
%endif
5357e48
5357e48
%global _description %{expand:
5357e48
Microsoft Azure CDN Client Library for Python}
5357e48
5357e48
%description %{_description}
5357e48
5357e48
1a08e7d
%package -n python3-%{srcname}
5357e48
Summary:        %{summary}
1a08e7d
%description -n python3-%{srcname} %{_description}
5357e48
5357e48
5357e48
%prep
5357e48
%autosetup -n %{srcname}-%{version}
5357e48
5357e48
5357e48
%generate_buildrequires
f25fde6
%pyproject_buildrequires
5357e48
5357e48
5357e48
%build
5357e48
%pyproject_wheel
5357e48
5357e48
6e4453d
%check
f25fde6
%pyproject_check_import
f25fde6
f25fde6
%if %{with tests}
6e4453d
%pytest
6e4453d
%endif
6e4453d
6e4453d
5357e48
%install
5357e48
%pyproject_install
5357e48
%pyproject_save_files azure
5357e48
5357e48
5357e48
%files -n python3-%{srcname} -f %{pyproject_files}
5357e48
%doc README.md CHANGELOG.md
5357e48
5357e48
5357e48
%changelog
6e4453d
%autochangelog