## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; 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 %bcond_without tests %global reponame azure-sdk-for-python %global srcname azure-eventhub Name: python-%{srcname} Version: 5.11.3 Release: %autorelease Summary: Microsoft Azure Event Hubs Client Library for Python License: MIT URL: https://github.com/Azure/azure-sdk-for-python Source0: %{url}/archive/%{srcname}_%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %if %{with tests} BuildRequires: python3dist(azure-devtools) BuildRequires: python3dist(azure-identity) BuildRequires: python3dist(azure-mgmt-eventhub) BuildRequires: python3dist(azure-mgmt-keyvault) BuildRequires: python3dist(azure-mgmt-resource) BuildRequires: python3dist(azure-sdk-tools) BuildRequires: python3dist(certifi) BuildRequires: python3dist(pytest) BuildRequires: python3dist(pytest-aiohttp) BuildRequires: python3dist(python-dotenv) %endif %global _description %{expand: The Azure Event Hubs client library allows for publishing and consuming of Azure Event Hubs events and may be used to: - Emit telemetry about your application for business intelligence and diagnostic purposes. - Publish facts about the state of your application which interested parties may observe and use as a trigger for taking action. - Observe interesting operations and interactions happening within your business or other ecosystem, allowing loosely coupled systems to interact without the need to bind them together. - Receive events from one or more publishers, transform them to better meet the needs of your ecosystem, then publish the transformed events to a new stream for consumers to observe.} %description %{_description} %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %{_description} %prep # Upstream buries the package into a subdirectory. 😭 %setup -c -T tar xzf %{SOURCE0} --strip-components=4 \ %{reponame}-%{srcname}_%{version}/sdk/eventhub/%{srcname} ls -alR %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files azure %check %pyproject_check_import %if %{with tests} %pytest %endif %files -n python3-%{srcname} -f %{pyproject_files} %license LICENSE %doc README.md CHANGELOG.md %changelog * Fri Jul 21 2023 Fedora Release Engineering - 5.11.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Jul 13 2023 Major Hayden - 5.11.3-1 - Update to 5.11.3 rhbz#2222464 * Tue Jul 04 2023 Python Maint - 5.11.1-5 - Rebuilt for Python 3.12 * Wed May 17 2023 Major Hayden - 5.11.1-4 - Migrated to SPDX license * Mon May 08 2023 Major Hayden - 5.11.1-3 - S * Fri Feb 10 2023 Major Hayden - 5.11.1-2 - Disable pytest tests temporarily * Fri Feb 10 2023 Major Hayden - 5.11.1-1 - Update to 5.11.1 rhbz#2162564 * Fri Jan 20 2023 Fedora Release Engineering - 5.10.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Tue Sep 13 2022 Major Hayden - 5.10.1-1 - Initial import rhbz#2116843