Accepting request 572427 from home:bruno_friedmann:branches:server:database:postgresql

- Upgrade to 1.28 bugfix version
  + Bug Fixes:
    - Fixed inability to restore a single database contained in a 
    tablespace using --db-include. (Fixed by Cynthia Shang.)
    - Ensure latest db-id is selected on when matching archive.info 
    to backup.info. This provides correct matching in the event 
    there are system-id and db-version duplicates 
    (e.g. after reverting a pg_upgrade). 
    (Fixed by Cynthia Shang. Reported by Adam K. Sumner.)
    - Fixed overly chatty error message when reporting an invalid 
    command. (Reported by Jason O'Donnell.)
  + Features:
    Add stanza-delete command to cleanup unused stanzas. 
    (Contributed by Cynthia Shang. Suggested by Magnus Hagander.)
  + Improvements:
    Improve stanza-create command so that it does not error when 
    the stanza already exists. (Contributed by Cynthia Shang.) 

- Packaging : 
  + Fix wrong requirement of previous version, now use correct
    %perl_requires, add openssl-devel for crytpo on libc
  + Add pgbackrest-conf.patch : a minimal working configuration file 
  + Build pgbackrest-libc allowing crypto and checksum
  + Added %check section
  + Rework install and file section (copy of pgdg packaging and use
    of correct %perl macros
  + Disable build on i586 pgBackRest need perl with 64bit integer
    support. see upstream issue 
    https://github.com/pgbackrest/pgbackrest/issues/478
  + use %_localstatedir/lib as %_sharedstatedir is broken on Leap

OBS-URL: https://build.opensuse.org/request/show/572427
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=9
This commit is contained in:
Bruno Friedmann 2018-02-05 17:37:50 +00:00 committed by Git OBS Bridge
parent 7a6fa8167f
commit 162be5b2d7
5 changed files with 94 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1fef4175e9c5f46a8217f5b93dd02105f2db277e77f27680cb3ec9799b5c3128
size 5524715

3
1.28.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:86f9097ad0929cabcfd9cf1e28a936acdf53f4e086f4c7a50cdd9231bb356c1b
size 5538629

5
pgbackrest-conf.patch Normal file
View File

@ -0,0 +1,5 @@
[global]
repo-path=/var/lib/pgbackrest
#[main]
#db-path=/var/lib/pgsql/10/data

View File

@ -1,3 +1,41 @@
-------------------------------------------------------------------
Sun Feb 4 17:14:16 UTC 2018 - bruno@ioda-net.ch
- Upgrade to 1.28 bugfix version
+ Bug Fixes:
- Fixed inability to restore a single database contained in a
tablespace using --db-include. (Fixed by Cynthia Shang.)
- Ensure latest db-id is selected on when matching archive.info
to backup.info. This provides correct matching in the event
there are system-id and db-version duplicates
(e.g. after reverting a pg_upgrade).
(Fixed by Cynthia Shang. Reported by Adam K. Sumner.)
- Fixed overly chatty error message when reporting an invalid
command. (Reported by Jason O'Donnell.)
+ Features:
Add stanza-delete command to cleanup unused stanzas.
(Contributed by Cynthia Shang. Suggested by Magnus Hagander.)
+ Improvements:
Improve stanza-create command so that it does not error when
the stanza already exists. (Contributed by Cynthia Shang.)
-------------------------------------------------------------------
Thu Feb 1 13:20:00 UTC 2018 - bruno@ioda-net.ch
- Packaging :
+ Fix wrong requirement of previous version, now use correct
%perl_requires, add openssl-devel for crytpo on libc
+ Add pgbackrest-conf.patch : a minimal working configuration file
+ Build pgbackrest-libc allowing crypto and checksum
+ Added %check section
+ Rework install and file section (copy of pgdg packaging and use
of correct %perl macros
+ Disable build on i586 pgBackRest need perl with 64bit integer
support. see upstream issue
https://github.com/pgbackrest/pgbackrest/issues/478
+ use %_localstatedir/lib as %_sharedstatedir is broken on Leap
42.x and some SLE12
-------------------------------------------------------------------
Fri Jan 26 15:19:05 UTC 2018 - joop.boonen@opensuse.org

View File

@ -16,20 +16,27 @@
#
Name: pgbackrest
Version: 1.27
Version: 1.28
Release: 0
License: MIT
Summary: Reliable PostgreSQL Backup & Restore
Url: http://www.pgbackrest.org/
Group: Productivity/Databases/Tools
Source: https://github.com/pgbackrest/pgbackrest/archive/release/%{version}.tar.gz
Source1: pgbackrest-conf.patch
Patch: pgbackrest-release-1.00_datadir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
Requires: perl
Requires: perl-JSON-PP
Requires: perl-parent
Requires: perl-DBD-Pg
%if %{_arch} == "i586"
ExclusiveArch: do_not_build
%endif
BuildRequires: openssl-devel
BuildRequires: perl(DBD::Pg)
BuildRequires: perl-libxml-perl
BuildRequires: perl(IO::Socket::SSL)
%{perl_requires}
Requires: perl(DBD::Pg)
Requires: perl-libxml-perl
Requires: perl(IO::Socket::SSL)
%description
pgBackRest aims to be a simple, reliable backup and restore system that can
@ -47,14 +54,42 @@ are required to perform a backup which increases security.
%patch -p1
%build
pushd libc
perl Makefile.PL
make V=1 %{?_smp_mflags}
popd
%install
install -D -d -m 0755 %{buildroot}%{perl_vendorlib} %{buildroot}%{_bindir}
cp -a lib/* %{buildroot}%{perl_vendorlib}/
cp -a bin/%{name} %{buildroot}%{_bindir}/%{name}
%{__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}/var/log/%{name}
%{__install} -D -d -m 0700 %{buildroot}/var/spool/%{name}
%{__install} -D -d -m 0755 %{buildroot}%{_sysconfdir}
%{__install} %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf
%{__cp} -a lib/* %{buildroot}%{perl_vendorlib}/
%{__cp} -a bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
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 LICENSE README.md
%{_bindir}/%{name}
%{perl_vendorlib}/pgBackRest/
%doc README.md
%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320
%license LICENSE
%else
%doc 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) /var/log/%{name}
%attr(-,postgres,postgres) %{_localstatedir}/lib/%{name}
%attr(-,postgres,postgres) /var/spool/%{name}