Blame python-azure-ai-formrecognizer.spec

a98a697
# Upstream shipped the tests without vcr cassettes.
a98a697
# https://github.com/Azure/azure-sdk-for-python/issues/25528
a98a697
%bcond_with     tests
a98a697
a98a697
%global         srcname     azure-ai-formrecognizer
a98a697
a98a697
Name:           python-%{srcname}
a98a697
Version:        3.2.0
a98a697
Release:        %autorelease
a98a697
Summary:        Microsoft Azure Form Recognizer Client Library for Python
a98a697
License:        MIT
a98a697
URL:            https://pypi.org/project/%{srcname}/
a98a697
Source0:        %{pypi_source %{srcname} %{version} zip}
a98a697
a98a697
BuildArch:      noarch
a98a697
a98a697
BuildRequires:  python3-devel
a98a697
a98a697
%if %{with tests}
a98a697
BuildRequires:  python3dist(azure-devtools)
a98a697
BuildRequires:  python3dist(azure-mgmt-keyvault)
a98a697
BuildRequires:  python3dist(azure-mgmt-resource)
a98a697
BuildRequires:  python3dist(azure-sdk-tools)
a98a697
BuildRequires:  python3dist(pytest)
a98a697
BuildRequires:  python3dist(pytest-aiohttp)
a98a697
BuildRequires:  python3dist(python-dotenv)
a98a697
%endif
a98a697
a98a697
%global _description %{expand:
a98a697
Microsoft Azure Form Recognizer Client Library for Python}
a98a697
a98a697
%description %{_description}
a98a697
a98a697
a98a697
%package -n python3-%{srcname}
a98a697
Summary:        %{summary}
a98a697
a98a697
%description -n python3-%{srcname} %{_description}
a98a697
a98a697
a98a697
%prep
a98a697
%autosetup -n %{srcname}-%{version}
a98a697
a98a697
a98a697
%generate_buildrequires
a98a697
%pyproject_buildrequires
a98a697
a98a697
a98a697
%build
a98a697
%pyproject_wheel
a98a697
a98a697
a98a697
%install
a98a697
%pyproject_install
a98a697
%pyproject_save_files azure
a98a697
a98a697
a98a697
%check
a98a697
%pyproject_check_import
a98a697
a98a697
%if %{with tests}
a98a697
%pytest
a98a697
%endif
a98a697
a98a697
a98a697
%files -n python3-%{srcname} -f %{pyproject_files}
a98a697
%license LICENSE
a98a697
%doc README.md CHANGELOG.md
a98a697
a98a697
a98a697
%changelog
a98a697
%autochangelog