File mqtt-actions.spec of Package mqtt-actions

#
# spec file for package mqtt-actions
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


Name:           mqtt-actions
Version:        20250826.0fa324e
Release:        0
Summary:        Listens to MQTT topics and acts accordingly
License:        Apache-2.0
URL:            https://github.com/thkukuk/mqtt-actions/
Source:         %{name}-%{version}.tar.xz
Source1:        vendor.tar.xz
BuildRequires:  golang(API) >= 1.22

%description
The mqtt-actions daemon listens on MQTT topics and creates new ones if a matching one was seen
Resources

%prep
%autosetup -a1

%build
%make_build build USE_VENDOR="-mod vendor"

%install
mkdir -p %{buildroot}%{_sbindir}
install -m 755 bin/mqtt-actions %{buildroot}%{_sbindir}/mqtt-actions
mkdir -p %{buildroot}%{_datadir}/mqtt-actions
cp -a config.yaml %{buildroot}%{_datadir}/mqtt-actions/

%files
%license LICENSE
%doc README.md
%{_sbindir}/mqtt-actions
%{_datadir}/mqtt-actions

%changelog
openSUSE Build Service is sponsored by