362fe10
%global pypi_name metrics2mqtt
362fe10
362fe10
Name:           %{pypi_name}
362fe10
Version:        0.1.18
414d687
Release:        7%{?dist}
362fe10
Summary:        Publish system performance metrics to a MQTT broker
362fe10
362fe10
License:        MIT
362fe10
URL:            https://github.com/jamiebegin/metrics2mqtt
362fe10
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
362fe10
BuildArch:      noarch
362fe10
362fe10
BuildRequires:  python3-devel
362fe10
BuildRequires:  python3dist(setuptools)
362fe10
BuildRequires:  python3dist(wheel)
362fe10
362fe10
Requires:       python3-%{pypi_name} = %{?epoch:%{epoch}:}%{version}-%{release}
362fe10
362fe10
%description
362fe10
metrics2mqtt is a lightweight wrapper around psutil that publishes
362fe10
CPU utilization, free memory, and other system-level stats to a MQTT
362fe10
broker.
362fe10
362fe10
%package -n     python3-%{pypi_name}
362fe10
Summary:        %{summary}
362fe10
%{?python_provide:%python_provide python3-%{pypi_name}}
362fe10
362fe10
%description -n python3-%{pypi_name}
362fe10
metrics2mqtt is a lightweight wrapper around psutil that publishes
362fe10
CPU utilization, free memory, and other system-level stats to a MQTT
362fe10
broker.
362fe10
362fe10
%prep
362fe10
%autosetup -n %{pypi_name}-%{version}
362fe10
rm -rf %{pypi_name}.egg-info
362fe10
sed -i -e '/^#!\//, 1d' metrics2mqtt/base.py
362fe10
362fe10
%build
362fe10
%py3_build
362fe10
362fe10
%install
362fe10
%py3_install
362fe10
362fe10
%files
362fe10
%{_bindir}/%{pypi_name}
362fe10
362fe10
%files -n python3-%{pypi_name}
362fe10
%doc README.md
362fe10
%license LICENSE
362fe10
%{python3_sitelib}/%{pypi_name}/
362fe10
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
362fe10
362fe10
%changelog
414d687
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-7
414d687
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
414d687
6f07c41
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.18-6
6f07c41
- Rebuilt for Python 3.11
6f07c41
1fe0796
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-5
1fe0796
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
1fe0796
7e9b7dd
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-4
7e9b7dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
7e9b7dd
3a63049
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.18-3
3a63049
- Rebuilt for Python 3.10
3a63049
bb7ed6d
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.18-2
bb7ed6d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
bb7ed6d
362fe10
* Fri Sep 04 2020 Fabian Affolter <mail@fabian-affolter.ch> - 0.1.18-1
362fe10
- Initial package for Fedora