# The SDK tools have never had a versioned release, but they are updated # frequently in the upstream repository. %global srcname azure-sdk-tools %global forgeurl https://github.com/Azure/azure-sdk-for-python/ %global commit 9d4f5a6d6da6ba453c5553a33177553da9d1ba5f %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global distprefix %{nil} %global short_version 0.0.0 %forgemeta Name: python-%{srcname} Version: %{short_version}~git.1.%{shortcommit} Release: 1%{?dist} Summary: Specific tools for Azure SDK for Python testing License: MIT and ASL 2.0 URL: %forgeurl Source0: %forgesource # NOTE(mhayden): The testing tools provided with the package are meant for Azure # SDK's CI processes upstream and are not needed to build this package. This # package contains test framework helpers for other Azure CLI/SDK packages. Patch0: python-azure-sdk-tools-requirements-fix.patch BuildArch: noarch Obsoletes: python-azure-sdk < 5.0.1 BuildRequires: python3-devel BuildRequires: python3-pip BuildRequires: python3-setuptools BuildRequires: python3-wheel BuildRequires: pyproject-rpm-macros %global _description %{expand: Specific tools for Azure SDK for Python testing} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep %forgesetup %patch0 -p0 %build pushd tools/%{srcname} # Some tools are only used for the Azure SDK CI system and there's no need # to package those. rm -rf packaging_tools pypi_tools # There's a dangling empty setup.py in the devtools_testutils directory. rm -f devtools_testutils/setup.py %pyproject_wheel popd %install %pyproject_install %pyproject_save_files devtools_testutils testutils # Some provided executables are only used internally in Azure SDK's CI. rm -f %{buildroot}/%{_bindir}/{auto_codegen,auto_package,generate_package,generate_sdk} %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst %license LICENSE.txt %changelog * Tue Jun 01 2021 Major Hayden - 0.0.0~git.1.9d4f5a6 - First package.