# Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. # Disable build id note requirement for now %undefine _missing_build_ids_terminate_build # Force special prefix for Vespa %define _prefix /opt/vespa-deps # Version %define ver_major 1 %define ver_minor 1 %define ver_patch 1 %define ver_release 1 Summary: Telegraf Name: vespa-telegraf Version: %{ver_major}.%{ver_minor}.%{ver_patch} Release: %{ver_release}%{?dist} License: MIT URL: https://github.com/olaaun/telegraf/tree/vespa-input-plugin Source: https://github.com/olaaun/telegraf/archive/vespa-input-plugin.tar.gz BuildRequires: gcc %description Telegraf package for Vespa. %prep curl -O https://dl.google.com/go/go1.14.linux-amd64.tar.gz echo "08df79b46b0adf498ea9f320a0f23d6ec59e9003660b4c9c1ce8e5e2c6f823ca go1.14.linux-amd64.tar.gz" | sha256sum -c tar -xzf go1.14.linux-amd64.tar.gz %setup -q -n telegraf-vespa-input-plugin %build env PATH=$PATH:%{_builddir}/go/bin make %install env PATH=$PATH:%{_builddir}/go/bin %make_install PREFIX=%{_prefix} %files %{_prefix}/bin/ %doc %changelog