This is an automated email from the ASF dual-hosted git repository. junhe pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/bigtop.git
commit 688db693a4768065f183e20bc7c7c12b1fd3d808 Author: Yuqi Gu <[email protected]> AuthorDate: Tue Sep 8 08:45:24 2020 +0000 Add RPM scripts for making Mpack as a standalone component Change-Id: If996dd00259f1de4dbfc5c9a1876a7d91468729a Signed-off-by: Yuqi Gu <[email protected]> --- .../SPECS/bigtop-ambari-mpack.spec | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/bigtop-packages/src/rpm/bigtop-ambari-mpack/SPECS/bigtop-ambari-mpack.spec b/bigtop-packages/src/rpm/bigtop-ambari-mpack/SPECS/bigtop-ambari-mpack.spec new file mode 100644 index 0000000..be1bc3b --- /dev/null +++ b/bigtop-packages/src/rpm/bigtop-ambari-mpack/SPECS/bigtop-ambari-mpack.spec @@ -0,0 +1,62 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +%define pkg_name bigtop-ambari-mpack +%define lib_bigtop_ambari_mpack /usr/lib/%{pkg_name} +%define _binaries_in_noarch_packages_terminate_build 0 +%define _unpackaged_files_terminate_build 0 + +# disable repacking jars +%define __os_install_post %{nil} + +# Disable debuginfo package +%define debug_package %{nil} + +Name: bigtop-ambari-mpack +Version: %{bigtop_ambari_mpack_version} +Release: %{bigtop_ambari_mpack_release} +Summary: Bigtop Ambari Management Packages +Group: Application/Internet +Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +License: ASL 2.0 +Source0: apache-ambari-2.6.1-src.tar.gz +Source1: do-component-build +Source2: install_mpack.sh +Requires: bigtop-utils >= 0.7 +Buildarch: noarch +AutoProv: no +AutoReqProv: no + +%description +Apache Ambari Management Packs decouples Ambari's core functionality (cluster management and monitoring) +from stack management and definition. Mpack can bundle multiple service definitions, stack definitions, +stack add-on service definitions, view definitions services. + +%prep +%setup -n apache-ambari-2.6.1-src + +%build +bash $RPM_SOURCE_DIR/do-component-build + +%install +%__rm -rf $RPM_BUILD_ROOT +bash $RPM_SOURCE_DIR/install_mpack.sh \ + --build-dir=`pwd` \ + --prefix=$RPM_BUILD_ROOT \ + --distro-dir=$RPM_SOURCE_DIR + +%files +%defattr(-,root,root,755) +%{lib_bigtop_ambari_mpack}
