Compare commits

...
Sign in to create a new pull request.

14 commits

Author SHA1 Message Date
Python Maint
dcb51d450f Rebuilt for Python 3.15.0b4 ABI change 2026-07-22 10:20:13 +02:00
Fedora Release Engineering
f8d7b55b16 Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild 2026-07-17 08:16:39 +00:00
Python Maint
cc8b85f436 Rebuilt for Python 3.15 2026-06-03 22:49:48 +02:00
Fedora Release Engineering
58b248a39d Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild 2026-01-17 19:42:03 +00:00
Python Maint
7d91386376 Rebuilt for Python 3.14.0rc3 bytecode 2025-09-19 15:01:43 +02:00
Python Maint
25f71a283e Rebuilt for Python 3.14.0rc2 bytecode 2025-08-15 15:21:41 +02:00
Fedora Release Engineering
dc49095536 Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild 2025-07-25 19:52:53 +00:00
Python Maint
648f31df87 Rebuilt for Python 3.14 2025-06-02 21:24:22 +02:00
Fedora Release Engineering
7f4722481c Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-19 13:57:01 +00:00
Peter Robinson
e76d2a94c8 Upstream patch to support Paho MQTT v2 2024-11-04 12:29:34 +00:00
Miro Hrončok
0cf1fa2d69 Drop duplicate manually listed BuildRequires
The fact that %tox uses python3-tox-current-env is an internal implementation detail.
The fact that %pyproject_wheel uses python3-pip is an internal implementation detail.
The fact that setuptools uses wheel will change in setuptools 74+.
2024-11-01 15:31:33 +01:00
Fedora Release Engineering
418d0a93f4 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-20 08:25:45 +00:00
Python Maint
b5d1edefdc Rebuilt for Python 3.13 2024-06-08 10:33:28 +02:00
Fedora Release Engineering
9693290980 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-27 07:18:16 +00:00
2 changed files with 30 additions and 6 deletions

View file

@ -0,0 +1,28 @@
From 58fed08a2a1b10122360845c780c9fa17cf9d6b3 Mon Sep 17 00:00:00 2001
From: Michal Sojka <michal.sojka@cvut.cz>
Date: Tue, 30 Apr 2024 14:03:40 +0200
Subject: [PATCH] usbrelayd: Add support for paho-mqtt >= 2.0.0
See https://eclipse.dev/paho/files/paho.mqtt.python/html/migrations.html#change-between-version-1-x-and-2-0
---
usbrelayd | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/usbrelayd b/usbrelayd
index 60c13dc..10bfe1e 100644
--- a/usbrelayd
+++ b/usbrelayd
@@ -95,7 +95,12 @@ else:
# connect to the mqtt broker
-client = mqtt.Client(clientName)
+if "CallbackAPIVersion" in dir(mqtt):
+ # paho-mqtt >= 2.0.0
+ client = mqtt.Client(mqtt.CallbackAPIVersion.VERSION1, clientName)
+else:
+ # paho-mqtt < 2.0.0
+ client = mqtt.Client(clientName)
client.connect(mqttBroker)
publish_states(client)
client.on_message=on_message

View file

@ -5,16 +5,13 @@ Summary: A library and command line tool to control USB-connected relays
License: GPL-2.0-or-later
URL: https://github.com/darrylb123/%{name}
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/darrylb123/usbrelay/pull/112
Patch1: usbrelay-paho-mqttv2.patch
BuildRequires: gcc
BuildRequires: hidapi-devel
BuildRequires: make
BuildRequires: python3
BuildRequires: python3-devel
BuildRequires: python3-pip
BuildRequires: python3-toml
BuildRequires: python3-wheel
BuildRequires: python3-tox-current-env
BuildRequires: systemd-rpm-macros
Requires: systemd-udev
@ -141,7 +138,6 @@ groupadd --force --system usbrelay
%{python3_sitearch}/%{name}_py*.dist-info
%{python3_sitearch}/%{name}
%files mqtt
%{_sbindir}/usbrelayd
%{_unitdir}/usbrelayd.service