pgbackrest/pgbackrest.spec
Martin Pluskal 159098222a Accepting request 622034 from home:bruno_friedmann:branches:server:database:postgresql
- Critical bug fix release 2.04 (Backup Resume)
  + IMPORTANT NOTE: This release fixes a critical bug in the backup 
    resume feature. All resumed backups prior to this release should 
    be considered inconsistent. 
    See more information https://pgbackrest.org/release.html
  + Bug Fixes:
    - Fix critical bug in resume that resulted in inconsistent 
    backups. A regression in v0.82 removed the timestamp comparison 
    when deciding which files from the aborted backup to keep on 
    resume.
    - Fix error in selective restore when only one user database 
    exists in the cluster.
    - Fix non-compliant ISO-8601 timestamp format in S3 authorization
    headers. AWS and some gateways were tolerant of space rather than
    zero-padded hours while others were not.
  + Features:
    - PostgreSQL 11 Beta 2 support.
  + Improvements:
    - Improve the HTTP client to set content-length to 0 when not 
    specified by the server. S3 (and gateways) always set 
    content-length or transfer-encoding but HTTP 1.1 does not require
    it and proxies (e.g. HAProxy) may not include either.
    - Set search_path = 'pg_catalog' on PostgreSQL connections
  + Documentation Improvements:
    - Create a new section to describe building pgBackRest and 
    build on a separate host.
    - Add sample S3 policy to restrict bucket privileges.
- Packaging : 
  + Explicitly requires all perl deps
  + Define make_build for 42.3 compilation

OBS-URL: https://build.opensuse.org/request/show/622034
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=14
2018-07-12 08:01:33 +00:00

109 lines
3.5 KiB
RPMSpec

#
# spec file for package pgbackrest
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
# Temporary fix for Leap 42.3
%if ! %{defined make_build}
%define make_build /usr/bin/make %{?_smp_mflags}
%endif
Name: pgbackrest
# Nobody can stop upstream to be too creative !
Version: 2.04
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}.tar.gz
Source1: pgbackrest-conf.patch
BuildRequires: openssl-devel
BuildRequires: perl
BuildRequires: perl-libxml-perl
BuildRequires: perl(DBD::Pg)
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(JSON::PP)
Requires: perl
Requires: perl-libxml-perl
Requires: perl(DBD::Pg)
Requires: perl(IO::Socket::SSL)
Requires: perl(Digest::SHA)
Requires: perl(JSON::PP)
%{perl_requires}
%if %{_arch} == "i586"
ExclusiveArch: do_not_build
%endif
%description
pgBackRest aims to be a simple, reliable backup and restore system that can
seamlessly scale up to the largest databases and workloads.
Instead of relying on traditional backup tools like tar and rsync, pgBackRest
implements all backup features internally and uses a custom protocol for
communicating with remote systems. Removing reliance on tar and rsync allows
for better solutions to database-specific backup challenges. The custom remote
protocol allows for more flexibility and limits the types of connections that
are required to perform a backup which increases security.
%prep
%setup -q -n %{name}-release-%{version}
%build
#TODO upstream doesn't care about RPM_OPT_FLAGS
pushd src
%make_build
popd
pushd libc
perl Makefile.PL
%make_build
popd
%install
install -D -d -m 0755 %{buildroot}%{perl_vendorlib} %{buildroot}%{_bindir}
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
cp -a lib/* %{buildroot}%{perl_vendorlib}/
make install -C src DESTDIR=%{buildroot}
make pure_vendor_install -C libc DESTDIR=%{buildroot}
%perl_process_packlist
%perl_gen_filelist
%check
pushd libc
make test
popd
%files -f %{name}.files
%defattr(-,root,root)
%doc README.md
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE
%else
%license LICENSE
%endif
%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}
%changelog