File pgmoneta.spec of Package pgmoneta
#
# spec file for package pgmoneta
#
# Copyright (c) 2021 SUSE LLC
#
# 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 0%{?suse_version} && 0%{?suse_version} < 1550
%define force_gcc_version 14
%endif
Name: pgmoneta
Version: 0.19.1
Release: 0
Summary: A backup / restore solution for PostgreSQL
License: BSD-3-Clause
URL: https://pgmoneta.github.io
Source: https://github.com/pgmoneta/pgmoneta/releases/download/%{version}/pgmoneta-%{version}.tar.gz
Source1: series
Patch2: doc-dir.patch
BuildRequires: cmake
BuildRequires: gcc%{?force_gcc_version}
BuildRequires: pandoc
BuildRequires: pkgconfig
BuildRequires: python3-docutils
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libev)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(libssh)
BuildRequires: pkgconfig(libsystemd)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(systemd)
BuildRequires: pkgconfig(zlib)
%description
Features
Full backup
Restore
Symlink support
Prometheus support
Remote management
Transport Layer Security (TLS) v1.2+ support
Daemon mode
User vault
pgmoneta makes use of
Process model
Shared memory model across processes
libev for fast network interactions
Atomic operations are used to keep track of state
The PostgreSQL command line tools
%prep
%autosetup -p1
%build
%if 0%{?force_gcc_version}
export CC="gcc-%{?force_gcc_version}"
export CXX="g++-%{?force_gcc_version}"
%endif
%cmake -DDOCS=true
%cmake_build
%install
%cmake_install
rm -v %{buildroot}%{_libdir}/*.so
%ldconfig_scriptlets
%files
%{_bindir}/pgmoneta
%{_bindir}/pgmoneta-admin
%{_bindir}/pgmoneta-cli
%{_bindir}/pgmoneta-walinfo
%{_libdir}/libpgmoneta.so.*
%doc %{_docdir}/pgmoneta/
%{_mandir}/man1/pgmoneta-admin.1%{?ext_man}
%{_mandir}/man1/pgmoneta-cli.1%{?ext_man}
%{_mandir}/man1/pgmoneta.1%{?ext_man}
%{_mandir}/man5/pgmoneta.conf.5%{?ext_man}
%changelog