forked from apache/bigtop
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbigtop-select.spec
More file actions
84 lines (67 loc) · 2.26 KB
/
Copy pathbigtop-select.spec
File metadata and controls
84 lines (67 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# 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 lib_dir /usr/lib/bigtop-select
%define bin_dir /usr/bin
%define default_parent_dir /usr/bigtop/%{bigtop_base_version}
%if "%{parent_dir}" != ""
%define default_parent_dir %{parent_dir}
%endif
Name: bigtop-select
Version: %{bigtop_select_version}
Release: %{bigtop_select_release}
Summary: Collection of useful tools for Bigtop
Group: Applications/Engineering
License: ASL 2.0
URL: http://bigtop.apache.org/
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildArch: noarch
Source0: install_select.sh
Source1: LICENSE
Source2: distro-select
Source3: conf-select
Requires: bash
# "which" command is needed for a lot of projects.
# It is part of the package "util-linux" on suse and "which" everywhere else
%if %{?suse_version:1}0
Requires: util-linux
%else
Requires: which
%endif
%description
This includes a collection of useful tools and files for Bigtop and Ambari
# disable shebang mangling of python scripts
%undefine __brp_mangle_shebangs
%prep
%setup -q -T -c
install -p -m 755 %{SOURCE0} .
install -p -m 755 %{SOURCE1} .
install -p -m 755 %{SOURCE2} .
install -p -m 755 %{SOURCE3} .
%build
%install
bash %{SOURCE0} \
--distro-dir=${RPM_SOURCE_DIR} \
--build-dir=${PWD} \
--prefix=${RPM_BUILD_ROOT} \
--parent-dir=%{default_parent_dir} \
--bigtop-base-version=%{bigtop_base_version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE
%{lib_dir}
%{default_parent_dir}
%changelog