## START: Set by rpmautospec ## (rpmautospec version 0.6.0) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: python-opentelemetry-resource-detector-azure Version: 0.1.5 Release: %autorelease Summary: OpenTelemetry Resource detectors for Azure License: Apache-2.0 URL: https://pypi.org/project/opentelemetry-resource-detector-azure Source: %{pypi_source opentelemetry_resource_detector_azure} BuildArch: noarch BuildRequires: python3-devel BuildRequires: %{py3_dist pytest} %global common_description %{expand: This library contains OpenTelemetry Resource Detectors for the following Azure resources: • Azure App Service • Azure Virtual Machines} %description %{common_description} %package -n python3-opentelemetry-resource-detector-azure Summary: %{summary} %description -n python3-opentelemetry-resource-detector-azure %{common_description} %prep %autosetup -n opentelemetry_resource_detector_azure-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install # The opentelemetry and opentelemetry/sdk directies are shared # namespace package directories; they are co-owned with other opentelemetry # packages, including subpackages of python-opentelemetry and/or # python-opentelemetry-contrib. See RHBZ#1935266. %pyproject_save_files -l opentelemetry %check # Test failure regression in TestAzureVMResourceDetector # https://github.com/open-telemetry/opentelemetry-python-contrib/issues/2102 k="${k-}${k+ and }not (TestAzureVMResourceDetector and test_linux)" k="${k-}${k+ and }not (TestAzureVMResourceDetector and test_windows)" %pytest -k "${k-}" -v %files -n python3-opentelemetry-resource-detector-azure -f %{pyproject_files} %doc README.rst %changelog ## START: Generated by rpmautospec * Fri May 17 2024 Benjamin A. Beasley - 0.1.5-1 - Update to 0.1.5 (close RHBZ#2280897) * Fri Apr 05 2024 Benjamin A. Beasley - 0.1.4-1 - Update to 0.1.4 (close RHBZ#2273723) * Wed Feb 21 2024 Benjamin A. Beasley - 0.1.3-1 - Initial package (separate from python-opentelemetry-contrib); close RHBZ#2263742 ## END: Generated by rpmautospec