-
Notifications
You must be signed in to change notification settings - Fork 98
/
pghoard.spec
87 lines (66 loc) · 2.52 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
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: python3-botocore
Requires: python3-cryptography >= 0.8
Requires: python3-dateutil
Requires: python3-psycopg2
Requires: python3-pydantic
Requires: python3-requests
Requires: python3-snappy
Requires: python3-zstandard
Requires: systemd
Conflicts: pgespresso93 < 1.2, pgespresso94 < 1.2, pgespresso95 < 1.2
BuildRequires: golang
BuildRequires: python3-devel
BuildRequires: python3-flake8
BuildRequires: python3-pylint
BuildRequires: python3-pytest
BuildRequires: systemd
%undefine _missing_build_ids_terminate_build
%define debug_package %{nil}
%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.
%{?python_disable_dependency_generator}
%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 Feb 11 2020 Tapio Oikarinen <[email protected]> - 2.1.1
- Security fix for gnutaremu
* 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