%global pypi_name metrics2mqtt Name: %{pypi_name} Version: 0.1.18 Release: 15%{?dist} Summary: Publish system performance metrics to a MQTT broker License: MIT URL: https://github.com/jamiebegin/metrics2mqtt Source0: %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz # https://github.com/jamiebegin/metrics2mqtt/pull/18 Patch1: 0001-initial-paho.mqtt-v2-support.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) BuildRequires: python3dist(wheel) Requires: python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release} %description metrics2mqtt is a lightweight wrapper around psutil that publishes CPU utilization, free memory, and other system-level stats to a MQTT broker. %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} metrics2mqtt is a lightweight wrapper around psutil that publishes CPU utilization, free memory, and other system-level stats to a MQTT broker. %prep %autosetup -n %{pypi_name}-%{version} -p1 rm -rf %{pypi_name}.egg-info sed -i -e '/^#!\//, 1d' metrics2mqtt/base.py %build %py3_build %install %py3_install %files %{_bindir}/%{pypi_name} %files -n python3-%{pypi_name} %doc README.md %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Mon Nov 04 2024 Peter Robinson - 0.1.18-15 - Add patch to support paho-mqtt v2+ * Thu Jul 18 2024 Fedora Release Engineering - 0.1.18-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 0.1.18-13 - Rebuilt for Python 3.13 * Thu Jan 25 2024 Fedora Release Engineering - 0.1.18-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jan 21 2024 Fedora Release Engineering - 0.1.18-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Jul 20 2023 Fedora Release Engineering - 0.1.18-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jun 13 2023 Python Maint - 0.1.18-9 - Rebuilt for Python 3.12 * Thu Jan 19 2023 Fedora Release Engineering - 0.1.18-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 0.1.18-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Mon Jun 13 2022 Python Maint - 0.1.18-6 - Rebuilt for Python 3.11 * Thu Jan 20 2022 Fedora Release Engineering - 0.1.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jul 22 2021 Fedora Release Engineering - 0.1.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Fri Jun 04 2021 Python Maint - 0.1.18-3 - Rebuilt for Python 3.10 * Tue Jan 26 2021 Fedora Release Engineering - 0.1.18-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Fri Sep 04 2020 Fabian Affolter - 0.1.18-1 - Initial package for Fedora