pgbackrest/pgbackrest.spec
Bruno Friedmann e38c01ac73 Accepting request 935686 from home:bruno_friedmann:branches:server:database:postgresql
- update to version 2.36
  + Bug Fixes:
    - Allow "global" as a stanza prefix.
    - Fix segfault on invalid GCS key file.
  + Improvements:
    - Allow link-map option to create new links.
    - Increase max index allowed for pg/repo options to 256.
    - Add WebIdentity authentication for AWS S3.
    - Report backup file validation errors in backup.info.
    - Add recovery start time to online backup restore log.
    - Report original error and retries on local job failure.
    - Rename page checksum error to error list in info text output.
    - Add hints to standby replay timeout message.
- update to version 2.35 Binary protocol
  ** IMPORTANT NOTE **: The log level for copied files in the 
  backup/restore commands has been changed to detail. This makes 
  the info log level less noisy but if these messages are required 
  then set the log level for the backup/restore commands to detail.
  + Bug Fixes:
    - Detect errors in S3 multi-part upload finalize.
    - Fix detection of circular symlinks.
    - Only pass selected repo options to the remote.
  + Improvements:
    - Binary protocol.
    - Automatically create data directory on restore.
    - Allow restore --type=lsn.
    - Change level of backup/restore copied file logging to detail.
    - Loop while waiting for checkpoint LSN to reach replay LSN.
    - Log backup file total and restore size/file total.
  + Documentation Bug Fixes:

OBS-URL: https://build.opensuse.org/request/show/935686
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=40
2021-12-04 19:52:30 +00:00

98 lines
3.0 KiB
RPMSpec

#
# spec file for package pgbackrest
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2019-2021 Ioda-Net Sàrl, Charmoille, Switzerland.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: pgbackrest
Version: 2.36
Release: 0
Summary: Reliable PostgreSQL Backup & Restore
License: MIT
Group: Productivity/Databases/Tools
URL: http://www.pgbackrest.org
Source: https://github.com/pgbackrest/pgbackrest/archive/release/%{version}/%{name}-%{version}.tar.gz
Source1: pgbackrest-conf.patch
Patch0: libpq-fe.h_localisation.patch
BuildRequires: libyaml-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(libpq)
BuildRequires: pkgconfig(libxml-2.0)
%description
pgBackRest aims to be a simple, reliable backup and restore system for
PostgreSQL that can seamlessly scale up to the largest databases and
workloads.
The following features are available:
- Parallel backup & restore
- Local or remote operation
- Full, incremental, differential backups
- Backup rotation & archive expiration
- Backup integrity
- Page checksums
- Backup resume
- Streaming compression & checksums
- Delta restore
- Parallel, asynchronous WAL push & get
- Tablespace & link support
- Amazon S3 support
- Encryption
- Compatibility with PostgreSQL >= 8.3
%prep
%setup -q -n %{name}-release-%{version}
%autopatch -p1
pushd src
%configure
popd
%build
# TODO upstream doesn't care about RPM_OPT_FLAGS
export CFLAGS="%optflags"
pushd src
%make_build
popd
%install
install -D -d -m 0700 %{buildroot}/%{_localstatedir}/lib/%{name}
install -D -d -m 0700 %{buildroot}%{_localstatedir}/log/%{name}
install -D -d -m 0700 %{buildroot}%{_localstatedir}/spool/%{name}
install -D -d -m 0755 %{buildroot}%{_sysconfdir}
install %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf
make install -C src DESTDIR=%{buildroot}
%check
# Tests are only available with Vagrant
# We just test that the binary works.
%{buildroot}/%{_bindir}/%{name} version || exit 1
%files
%defattr(-,root,root)
%doc README.md
%license LICENSE
%config(noreplace) %attr (644,root,root) %{_sysconfdir}/%{name}.conf
# We still can do that as postgres user is system fixed
%attr(-,postgres,postgres) %{_localstatedir}/log/%{name}
%attr(-,postgres,postgres) %{_localstatedir}/lib/%{name}
%attr(-,postgres,postgres) %{_localstatedir}/spool/%{name}
%{_bindir}/%{name}
%changelog