summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArne H Juul <arnej27959@users.noreply.github.com>2018-01-30 13:57:57 +0100
committerGitHub <noreply@github.com>2018-01-30 13:57:57 +0100
commit384af9d921919280083a91737e8f848809a4c2b8 (patch)
tree214243400a2bf28ecd35568a9e7d172327ca9a30
parentee4d047e1a18cb0166d511ed0cad699b1accc8b7 (diff)
parent1924d66b4b38c1a23945c6f3a27a7f32dd8380d1 (diff)
Merge pull request #4809 from vespa-engine/arnej/add-logfmt-rpm
add RPM spec for standalone logfmt
-rw-r--r--vespalog/vespa-log-utils.spec38
1 files changed, 38 insertions, 0 deletions
diff --git a/vespalog/vespa-log-utils.spec b/vespalog/vespa-log-utils.spec
new file mode 100644
index 00000000000..b0298239c1b
--- /dev/null
+++ b/vespalog/vespa-log-utils.spec
@@ -0,0 +1,38 @@
+# Copyright 2018 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+
+# Force special prefix for Vespa
+%define _prefix /opt/vespa
+
+Name: vespa-log-utils
+Version: %version
+Release: 1%{?dist}
+BuildArch: noarch
+Summary: Vespa log utilities
+Group: Applications/Databases
+License: Commercial
+URL: http://vespa.ai
+
+Requires: bash
+
+Conflicts: vespa
+
+%description
+Utilities for reading Vespa log files.
+
+%install
+bin_dir=%?buildroot%_prefix/bin
+lev_dir=%?buildroot%_prefix/libexec/vespa
+mkdir -p "$bin_dir"
+mkdir -p "$lev_dir"
+cp vespabase/src/common-env.sh "${lev_dir}"
+cp vespalog/src/vespa-logfmt/vespa-logfmt.pl "${bin_dir}/vespa-logfmt"
+chmod 444 "${lev_dir}/common-env.sh"
+chmod 555 "${bin_dir}/vespa-logfmt"
+ln -s "vespa-logfmt" "${bin_dir}/logfmt"
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,vespa,vespa,-)
+%_prefix/*