forked from Aiven-Open/pghoard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pghoard.spec
69 lines (51 loc) · 2.18 KB
/
pghoard.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
Name: pghoard
Version: %{major_version}
Release: %{minor_version}%{?dist}
Url: http://github.com/aiven/pghoard
Summary: PostgreSQL streaming backup service
License: ASL 2.0
Source0: pghoard-rpm-src.tar
Requires: systemd
Requires: python3-botocore, python3-cryptography >= 0.8, python3-dateutil
Requires: python3-psycopg2, python3-requests, python3-snappy
Conflicts: pgespresso92 < 1.2, pgespresso93 < 1.2, pgespresso94 < 1.2, pgespresso95 < 1.2
BuildRequires: python3-flake8, python3-pytest, python3-pylint, python3-devel, golang
%undefine _missing_build_ids_terminate_build
%description
PGHoard is a PostgreSQL streaming backup service. Backups are stored in
encrypted and compressed format in a cloud object storage. PGHoard
currently supports Amazon Web Services S3, Google Cloud Storage, OpenStack
Swift and Ceph (using S3 or Swift interfaces with RadosGW.)
Support for Microsoft Azure is experimental.
%prep
%setup -q -n pghoard
%build
go build golang/pghoard_postgres_command_go.go
%install
sed -e s,pghoard_postgres_command,pghoard_postgres_command_go,g -i pghoard/restore.py
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
sed -e "s@#!/bin/python@#!%{_bindir}/python@" -i %{buildroot}%{_bindir}/*
%{__install} -Dm0644 pghoard.unit %{buildroot}%{_unitdir}/pghoard.service
cp -a pghoard_postgres_command_go %{buildroot}%{_bindir}
%check
make test
%files
%defattr(-,root,root,-)
%doc LICENSE README.rst pghoard.json
%{_bindir}/pghoard*
%{_unitdir}/pghoard.service
%{python3_sitelib}/*
%changelog
* Tue Sep 5 2017 Oskari Saarenmaa <[email protected]> - 1.4.0
- Add pghoard_postgres_command_go
* Tue Jul 26 2016 Oskari Saarenmaa <[email protected]> - 1.4.0
- Conflict with pgespresso < 1.2: older versions crash PostgreSQL
when tablespaces are used
* Mon Dec 14 2015 Oskari Saarenmaa <[email protected]> - 0.9.0
- We're Python 3 only now
* Wed Mar 25 2015 Oskari Saarenmaa <[email protected]> - 0.9.0
- Build a single package using Python 3 if possible, Python 2 otherwise
* Thu Feb 26 2015 Oskari Saarenmaa <[email protected]> - 0.9.0
- Refactored
* Thu Feb 19 2015 Hannu Valtonen <[email protected]> - 0.9.0
- Initial RPM package spec