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

- Urgent fix : add perl as BuildRequires and Requires to force
  presence of libperl.so : Otherwise pgbackrest binary can't find
  it
- Spec : use %make_build macros

OBS-URL: https://build.opensuse.org/request/show/612625
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=13
This commit is contained in:
Bruno Friedmann 2018-05-28 09:56:30 +00:00 committed by Git OBS Bridge
parent 004ab239ca
commit e213cf3106
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon May 28 08:21:30 UTC 2018 - bruno@ioda-net.ch
- Urgent fix : add perl as BuildRequires and Requires to force
presence of libperl.so : Otherwise pgbackrest binary can't find
it
- Spec : use %make_build macros
-------------------------------------------------------------------
Wed May 23 09:55:27 UTC 2018 - bruno@ioda-net.ch

View File

@ -27,9 +27,11 @@ 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)
Requires: perl
Requires: perl-libxml-perl
Requires: perl(DBD::Pg)
Requires: perl(IO::Socket::SSL)
@ -55,12 +57,12 @@ are required to perform a backup which increases security.
%build
#TODO upstream doesn't care about RPM_OPT_FLAGS
pushd src
make V=1 %{?_smp_mflags}
%make_build
popd
pushd libc
perl Makefile.PL
make V=1 %{?_smp_mflags}
%make_build
popd
%install