diff --git a/README.md b/README.md index 1329002..c92cb6d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # mqtt-explorer +An all-round MQTT client that provides a structured topic overview. + diff --git a/mqtt-explorer.desktop b/mqtt-explorer.desktop new file mode 100644 index 0000000..a15fe3c --- /dev/null +++ b/mqtt-explorer.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=MQTT Explorer +GenericName=MQTT Explorer +Comment=A comprehensive and easy-to-use MQTT Client. +Exec=yarn --cwd /usr/share/mqtt-explorer start +Icon=/usr/share/mqtt-explorer/icon +StartupNotify=false +Terminal=false +Type=Application +Categories=Utility; +Keywords=MQTT;Explorer; diff --git a/mqtt-explorer.spec b/mqtt-explorer.spec new file mode 100644 index 0000000..617a3ad --- /dev/null +++ b/mqtt-explorer.spec @@ -0,0 +1,60 @@ +Name: mqtt-explorer +Version: 0.3.5 +Release: 1mamba +Summary: An all-round MQTT client that provides a structured topic overview +Group: Graphical Desktop/Applications/Networking +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://mqtt-explorer.com/ +Source: https://github.com/thomasnordquist/MQTT-Explorer.git/v%{version}/MQTT-Explorer-%{version}.tar.bz2 +Source1: mqtt-explorer.desktop +License: CCPL:by-nd +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: yarn +Requires: yarn + +%description +An all-round MQTT client that provides a structured topic overview. + +%debug_package + +%prep +%setup -q -n MQTT-Explorer-%{version} + +%global __requires_exclude_from ^%{_datadir}/mqtt-explorer/.*$ + +%build +yarn +yarn build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_datadir}/mqtt-explorer +cp -r * %{buildroot}%{_datadir}/mqtt-explorer/ + +install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/mqtt-explorer.desktop + +install -d -m0755 %{buildroot}%{_bindir} +cat > %{buildroot}%{_datadir}/mqtt-explorer/mqtt-explorer << _EOF +#!/bin/bash +yarn --cwd %{_datadir}/mqtt-explorer start +_EOF + +chmod +x %{buildroot}%{_datadir}/mqtt-explorer/mqtt-explorer +ln -s ../share/mqtt-explorer/mqtt-explorer %{buildroot}%{_bindir}/mqtt-explorer + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/mqtt-explorer +%{_datadir}/applications/mqtt-explorer.desktop +%dir %{_datadir}/mqtt-explorer +%{_datadir}/mqtt-explorer/* + +%changelog +* Wed Jul 07 2021 Silvan Calarco 0.3.5-1mamba +- package created using the webbuild interface