This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
gpupgrade.spec
51 lines (43 loc) · 1.61 KB
/
gpupgrade.spec
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
Name: gpupgrade
Version: %{gpupgrade_version}
# Release is a way of versioning the spec file.
# Only bump the Release if shipping gpupgrade without also bumping the
# gpugprade_version (ie: VERSION).
Release: %{gpupgrade_rpm_release}%{?dist}
Summary: %{summary}
License: %{license}
URL: https://github.com/greenplum-db/gpupgrade
Source0: %{name}.tar.gz
Prefix: /usr/local/bin
Requires: openssh rsync >= 3.0
%description
The gpupgrade package contains gpupgrade which performs in-place upgrades
without the need for additional hardware, disk space, and with less downtime.
%prep
# If the gpupgrade_version macro is not defined, it gets interpreted as a
# literal string, use %% to escape it
if [ %{gpupgrade_version} = '%%{gpupgrade_version}' ] ; then
echo "The macro (variable) gpupgrade_version must be supplied as rpmbuild ... --define='gpupgrade_version [VERSION]'"
exit 1
fi
%setup -q -c -n %{name}
%install
# executables
mkdir -p %{buildroot}%{prefix}
mv gpupgrade %{buildroot}%{prefix}
# additional files
mkdir -p %{buildroot}%{prefix}/greenplum/%{name}
mv data-migration-scripts %{buildroot}%{prefix}/greenplum/%{name}
mv gpupgrade_config %{buildroot}%{prefix}/greenplum/%{name}
mv gpupgrade.bash %{buildroot}%{prefix}/greenplum/%{name}
mv open_source_licenses.txt %{buildroot}%{prefix}/greenplum/%{name}
%files
# executables
%{prefix}/gpupgrade
# additional files
%dir %{prefix}/greenplum
%dir %{prefix}/greenplum/%{name}
%{prefix}/greenplum/%{name}/data-migration-scripts
%config %{prefix}/greenplum/%{name}/gpupgrade_config
%{prefix}/greenplum/%{name}/gpupgrade.bash
%{prefix}/greenplum/%{name}/open_source_licenses.txt