aboutsummaryrefslogtreecommitdiff
path: root/dist/fedora
diff options
context:
space:
mode:
Diffstat (limited to 'dist/fedora')
-rw-r--r--dist/fedora/pgbak.spec33
1 files changed, 33 insertions, 0 deletions
diff --git a/dist/fedora/pgbak.spec b/dist/fedora/pgbak.spec
new file mode 100644
index 0000000..823e9a9
--- /dev/null
+++ b/dist/fedora/pgbak.spec
@@ -0,0 +1,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