pgbackrest/pgbackrest.spec

61 lines
2.2 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/
#
Name: pgbackrest
Version: 1.27
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
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
%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}
%patch -p1
%build
%install
install -D -d -m 0755 %{buildroot}%{perl_vendorlib} %{buildroot}%{_bindir}
cp -a lib/* %{buildroot}%{perl_vendorlib}/
cp -a bin/%{name} %{buildroot}%{_bindir}/%{name}
%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_bindir}/%{name}
%{perl_vendorlib}/pgBackRest/