From f6bf84ac789c430ef71123c35a91d70d8162e9b9 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Sun, 14 Apr 2024 17:38:19 +0300 Subject: Package for Fedora --- dist/fedora/pgbak.spec | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 dist/fedora/pgbak.spec (limited to 'dist') 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 -- cgit