aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--node-admin/vespa-node-admin.spec51
-rw-r--r--standalone-container/vespa-standalone-container.spec104
-rw-r--r--vespabase/vespa-base.spec50
3 files changed, 0 insertions, 205 deletions
diff --git a/node-admin/vespa-node-admin.spec b/node-admin/vespa-node-admin.spec
deleted file mode 100644
index b48e5b1980d..00000000000
--- a/node-admin/vespa-node-admin.spec
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright 2017 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
-
-# Hack to speed up jar packing for now. This does not affect the rpm size.
-%define __jar_repack %{nil}
-
-Name: vespa-node-admin
-Version: %version
-Release: 1%{?dist}
-BuildArch: x86_64
-Summary: Vespa Node Admin
-Group: Applications/Databases
-License: Commercial
-URL: http://vespa.ai
-
-Requires: bash
-Requires: vespa-base = %{version}
-Requires: vespa-standalone-container = %{version}
-Requires: vespa-log-utils = %{version}
-
-Conflicts: vespa
-
-%description
-The Node Admin manages the machine so it is a suitable host for one or more
-Vespa nodes.
-
-%install
-app_dir=%?buildroot%_prefix/conf/node-admin-app
-mkdir -p "$app_dir"/components
-cp node-admin/src/main/application/services.xml "$app_dir"
-
-declare -a jar_components=(
- docker-api/target/docker-api-jar-with-dependencies.jar
- flags/target/flags-jar-with-dependencies.jar
- node-admin/target/node-admin-jar-with-dependencies.jar
-)
-for path in "${jar_components[@]}"; do
- cp "$path" "$app_dir"/components
-done
-
-mkdir -p %buildroot%_prefix/libexec/vespa
-cp node-admin/src/main/sh/node-admin.sh %buildroot%_prefix/libexec/vespa
-
-%clean
-rm -rf %buildroot
-
-%files
-%defattr(-,vespa,vespa,-)
-%_prefix/*
diff --git a/standalone-container/vespa-standalone-container.spec b/standalone-container/vespa-standalone-container.spec
deleted file mode 100644
index 5624d9c02dc..00000000000
--- a/standalone-container/vespa-standalone-container.spec
+++ /dev/null
@@ -1,104 +0,0 @@
-# Copyright 2017 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
-
-# Hack to speed up jar packing for now. This does not affect the rpm size.
-%define __jar_repack %{nil}
-
-Name: vespa-standalone-container
-Version: %version
-BuildArch: x86_64
-Release: 1%{?dist}
-Summary: Vespa standalone JDisc container
-Group: Applications/Databases
-License: Commercial
-URL: http://vespa.ai
-
-Requires: bash
-Requires: vespa-base = %{version}
-
-Conflicts: vespa
-
-%description
-The Vespa standalone JDisc container is a runtime environment for Java
-applications.
-
-%install
-declare jars_dir=%buildroot%_prefix/lib/jars
-mkdir -p "$jars_dir"
-
-declare -a dirs=(
- jdisc_http_service/target/dependency
- jdisc_jetty/target/dependency
- vespa_jersey2/target/dependency
-)
-for dir in "${dirs[@]}"; do
- cp "$dir"/* "$jars_dir"
-done
-
-declare -a modules=(
- component
- config-bundle
- config-model-api
- config-model
- config-provisioning
- configdefinitions
- container-disc
- container-jersey2
- container-search-and-docproc
- container-search-gui
- defaults
- docprocs
- jdisc-security-filters
- jdisc_core
- jdisc_http_service
- model-evaluation
- model-integration
- security-tools
- security-utils
- simplemetrics
- standalone-container
- vespa-athenz
- vespaclient-container-plugin
- zkfacade
-)
-for module in "${modules[@]}"; do
- cp "$module"/target/"$module"-jar-with-dependencies.jar "$jars_dir"
-done
-
-# vespajlib must be installed _without_ dependencies.
-cp vespajlib/target/vespajlib.jar "$jars_dir"
-
-# Copy from submodules, so must be done separately
-cp zookeeper-server/zookeeper-server-common/target/zookeeper-server-common-jar-with-dependencies.jar "$jars_dir"
-cp zookeeper-server/zookeeper-server-3.5.6/target/zookeeper-server-3.5.6-jar-with-dependencies.jar "$jars_dir"
-# Symlink to default version
-ln -s zookeeper-server-3.5.6-jar-with-dependencies.jar "$jars_dir"/zookeeper-server-jar-with-dependencies.jar
-
-declare -a libexec_files=(
- standalone-container/src/main/sh/standalone-container.sh
- security-tools/src/main/sh/vespa-curl-wrapper
-)
-declare libexec_dir=%buildroot%_prefix/libexec/vespa
-mkdir -p "$libexec_dir"
-for file in "${libexec_files[@]}"; do
- cp "$file" "$libexec_dir"
-done
-
-declare -a bin_files=(
- security-tools/src/main/sh/vespa-security-env
-)
-
-declare bin_dir=%buildroot%_prefix/bin
-mkdir -p "$bin_dir"
-for file in "${bin_files[@]}"; do
- cp "$file" "$bin_dir"
-done
-
-%clean
-rm -rf %buildroot
-
-%files
-%defattr(-,vespa,vespa,-)
-%_prefix/*
diff --git a/vespabase/vespa-base.spec b/vespabase/vespa-base.spec
deleted file mode 100644
index e385d0b7367..00000000000
--- a/vespabase/vespa-base.spec
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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-base
-Version: %version
-Release: 1%{?dist}
-BuildArch: x86_64
-Summary: Vespa common files
-Group: Applications/Databases
-License: Commercial
-URL: http://vespa.ai
-
-Requires: bash
-
-Conflicts: vespa
-
-%description
-Common files for Vespa RPMs
-
-%install
-lev_dir=%?buildroot%_prefix/libexec/vespa
-mkdir -p "$lev_dir"
-cp vespabase/src/common-env.sh "${lev_dir}"
-chmod 444 "${lev_dir}/common-env.sh"
-
-%clean
-rm -rf %buildroot
-
-%pre
-getent group vespa >/dev/null || groupadd -r vespa
-getent passwd vespa >/dev/null || \
- useradd -r -g vespa -d %{_prefix} -s /sbin/nologin \
- -c "Create owner of all Vespa data files" vespa
-echo "pathmunge %{_prefix}/bin" > /etc/profile.d/vespa.sh
-echo "export VESPA_HOME=%{_prefix}" >> /etc/profile.d/vespa.sh
-chmod +x /etc/profile.d/vespa.sh
-exit 0
-
-%postun
-if [ $1 -eq 0 ]; then # this is an uninstallation
- rm -f /etc/profile.d/vespa.sh
- ! getent passwd vespa >/dev/null || userdel vespa
- ! getent group vespa >/dev/null || groupdel vespa
-fi
-
-%files
-%defattr(-,vespa,vespa,-)
-%_prefix/*