aboutsummaryrefslogtreecommitdiff
path: root/dist/fedora/pgbak.spec
blob: 823e9a958ffd6b1b642ca1775fb9159f29b660c9 (plain) (blame)
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
Name:           pgbak
Version:        0.0.1
Release:        %autorelease
Summary:        A robust WAL archiver for PostgreSQL

License:        LGPL-3.0-or-later
URL:            https://git.venev.name/hristo/pgbak/about/
Source0:        pgbak-%{version}.tar.xz

BuildRequires:  make
BuildRequires:  gcc

%description
pgbak is a robust WAL archiver for PostgreSQL. It automates compression as well as the creation of full snapshots.


%prep
%autosetup

%build
%make_build


%install
install -Dm755 -t "$RPM_BUILD_ROOT"%{_bindir} pgbak
install -Dm755 etc/systemd-pgbak.conf "$RPM_BUILD_ROOT"%{_unitdir}/postgresql.service.d/10-pgbak.conf


%files
%{_bindir}/pgbak
%{_unitdir}/postgresql.service.d/10-pgbak.conf
%license LICENSE LICENSE.GPL3
%doc README.md