Optionally enable additional wal-g features
RPMs/wal-g/pipeline/head This commit looks good
Details
RPMs/wal-g/pipeline/head This commit looks good
Details
`wal-g` can be built with additonal features that require linking witih system libraries. Using build conditions, we can enable these as needed. LZO is enabled by default for compatibility with WAL-E backups created by the Postgres Operator/Spilo.master
parent
585f794a32
commit
8a9bc3a541
25
wal-g.spec
25
wal-g.spec
|
@ -7,9 +7,13 @@
|
||||||
%bcond mysql 0
|
%bcond mysql 0
|
||||||
%bcond sqlserver 0
|
%bcond sqlserver 0
|
||||||
|
|
||||||
|
%bcond lzo 1
|
||||||
|
%bcond brotli 0
|
||||||
|
%bcond libsodium 0
|
||||||
|
|
||||||
Name: wal-g
|
Name: wal-g
|
||||||
Version: 3.0.1
|
Version: 3.0.1
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Archival and Restoration for databases in the Cloud
|
Summary: Archival and Restoration for databases in the Cloud
|
||||||
|
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
|
@ -18,6 +22,15 @@ Source: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: golang
|
BuildRequires: golang
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
|
%if %{with lzo}
|
||||||
|
BuildRequires: lzo-devel
|
||||||
|
%endif
|
||||||
|
%if %{with brotli}
|
||||||
|
BuildRequires: brotli-devel
|
||||||
|
%endif
|
||||||
|
%if %{with libsodium}
|
||||||
|
BuildRequires: libsodium-devel
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
WAL-G is an archival restoration tool for PostgreSQL, MySQL/MariaDB, and MS SQL
|
WAL-G is an archival restoration tool for PostgreSQL, MySQL/MariaDB, and MS SQL
|
||||||
|
@ -71,6 +84,16 @@ Requires: %{name} = %{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with lzo}
|
||||||
|
export USE_LZO=1
|
||||||
|
%endif
|
||||||
|
%if %{with brotli}
|
||||||
|
export USE_BROTLI=1
|
||||||
|
%endif
|
||||||
|
%if %{with libsodium}
|
||||||
|
export USE_LIBSODIUM=1
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with postgresql}
|
%if %{with postgresql}
|
||||||
make pg_build
|
make pg_build
|
||||||
%endif
|
%endif
|
||||||
|
|
Loading…
Reference in New Issue