pgbackrest/pgbackrest.spec
Bruno Friedmann 210b7ca263 Accepting request 672999 from home:bruno_friedmann:branches:server:database:postgresql
- Update to 2.09 version bug fixes and improvements
  + Fix issue with multiple async status files causing a hard error.
  + info command is implemented entirely in C.
  + Simplify info command text message when no stanzas are present
    by replacing the repository path with "the repository".
  + Add _DARWIN_C_SOURCE flag to Makefile for MacOS builds.
  + Update address lookup in C TLS client to use modern methods.
  + Include Posix-compliant header for strcasecmp() and fd_set.
- Packaging : remove comments/remark fixed and merged issue #659

- Update to 2.08 version : bug fixes and improvement 
  See more information https://pgbackrest.org/release.html
- Add libxml2-devel as buildrequires
- Add a comment about gethostbyname() upstream issue #659
- Update spec (date and order)

OBS-URL: https://build.opensuse.org/request/show/672999
OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/pgbackrest?expand=0&rev=20
2019-02-11 10:39:47 +00:00

97 lines
3.3 KiB
RPMSpec

#
# spec file for package pgbackrest
#
# Copyright (c) 2019 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 https://bugs.opensuse.org/
#
%if ! %{defined make_build}
# Temporary fix for Leap 42.3
%define make_build %{_bindir}/make %{?_smp_mflags}
%endif
Name: pgbackrest
# Nobody can stop upstream to be too creative !
Version: 2.09
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: libxml2-devel
BuildRequires: openssl-devel
BuildRequires: perl
BuildRequires: perl-libxml-perl
BuildRequires: perl(DBD::Pg)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(JSON::PP)
Requires: perl-libxml-perl
Requires: perl(DBD::Pg)
Requires: perl(Digest::SHA)
Requires: perl(IO::Socket::SSL)
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
%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
%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