aboutsummaryrefslogtreecommitdiff
path: root/bigtop-packages/src/rpm/gpdb/SPECS/gpdb.spec
blob: 248058d3cdca6ec1e67dc10c073ff1d35e84c30d (plain)
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
# 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 man_dir %{_mandir}

%if  %{?suse_version:1}0
%define bin_gpdb /usr/lib/gpdb
%define doc_gpdb %{_docdir}/%{name}
%define autorequire no
%else
%define bin_gpdb /usr/lib/gpdb
%define doc_gpdb %{_docdir}/%{name}-%{gpdb_version}
%define autorequire yes
%endif
%define  debug_package %{nil}

Name: gpdb
Version: %{gpdb_version}
Release: %{gpdb_release}
Summary: Greenplum MPP database enginer
URL: https://github.com/greenplum-db/gpdb
Group: Development/Libraries
Buildroot: %{_topdir}/INSTALL/%{name}-%{version}
License: ASL 2.0
Source0: gpdb-%{gpdb_base_version}.tar.gz
Source1: do-component-build
Source2: install_gpdb.sh
Source3: do-component-configure
AutoReqProv: %{autorequire}

%description
gpdb

%prep
%setup -n %{name}-%{gpdb_base_version}

%build
bash %{SOURCE3} %{bin_gpdb}
bash %{SOURCE1}

%install
%__rm -rf $RPM_BUILD_ROOT
bash %{SOURCE2} %{_tmppath}
mkdir -p $RPM_BUILD_ROOT%{bin_gpdb}
cp -f -r %{_tmppath}%{bin_gpdb}/* $RPM_BUILD_ROOT/%{bin_gpdb}
%__rm -rf %{_tmppath}%{bin_gpdb}

%files
%defattr(-,root,root)
%{bin_gpdb}

%changelog