File driplane.spec of Package driplane

#
# spec file for package driplane
#
# Copyright (c) 2021-2023, Martin Hauke <mardnh@gmx.de>
#
# 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:           driplane
Version:        1.16.1
Release:        0
Summary:        Create automated tasks and keep an eye on interesting things
License:        GPL-3.0-only
Group:          System/Monitoring
URL:            https://matrix86.github.io/driplane/
Source:         https://github.com/Matrix86/driplane/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
BuildRequires:  go
BuildRequires:  golang-packaging
%{go_provides}

%description
Driplane allows you to create an automatic alerting system or start
automated tasks triggered by events.

%prep
%autosetup -a 1

%build
%goprep github.com/Matrix86/driplane/
%gobuild -mod=vendor cmd/...

%install
%goinstall

#%%check
#disabled since tests are using external network ressources that are not available on OBS
#%%gotest github.com/Matrix86/driplane/

%files
%license LICENSE.md
%doc README.md
%doc config.yaml.example example.rule
%{_bindir}/driplane

%changelog
openSUSE Build Service is sponsored by