forked from bitnine-oss/postgres-xl-ha
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpostgres-xl-ha.spec
39 lines (25 loc) · 887 Bytes
/
postgres-xl-ha.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
%global tag v0.1.0
Name: postgres-xl-ha
Version: 0.1.0
Release: 1
Summary: Postgres-XL resource agents for Pacemaker
License: PostgreSQL
Vendor: Bitnine Global, Inc.
Group: Applications/Databases
BuildArch: noarch
Source: postgres-xl-ha-%{tag}.tar.gz
%description
This package contains two resource agents that manage GTM and coordinator
respectively in a Postgres-XL cluster over Pacemaker.
%prep
%setup -n postgres-xl-ha-%{tag} -q
%install
mkdir -p $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/bitnine
cp -p postgres-xl-coord $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/bitnine
cp -p postgres-xl-data $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/bitnine
cp -p postgres-xl-gtm $RPM_BUILD_ROOT/usr/lib/ocf/resource.d/bitnine
%files
/usr/lib/ocf/resource.d/bitnine/postgres-xl-coord
/usr/lib/ocf/resource.d/bitnine/postgres-xl-data
/usr/lib/ocf/resource.d/bitnine/postgres-xl-gtm
%changelog