Name: barman Version: 3.20.0 Release: %autorelease Summary: Backup and Recovery Manager for PostgreSQL License: GPL-3.0-only URL: http://www.pgbarman.org/ BuildArch: noarch Source0: https://github.com/EnterpriseDB/barman/archive/release/%{version}/%{name}-release-%{version}.tar.gz Source1: %{name}.cron Source2: %{name}.logrotate BuildRequires: python3-devel # https://docs.fedoraproject.org/en-US/packaging-guidelines/CronFiles/#_cron_job_files_packaging: Requires: cronie Requires: logrotate Requires: rsync >= 3.0.4 Requires: %{py3_dist argcomplete} Requires: %{py3_dist barman} %description Barman (Backup and Recovery Manager) is an open-source administration tool for disaster recovery of PostgreSQL servers written in Python. It allows your organization to perform remote backups of multiple servers in business critical environments to reduce risk and help DBAs during the recovery phase. %package cli Summary: Client Utilities for Barman Requires: %{py3_dist barman} %description cli Client utilities for the integration of Barman in PostgreSQL clusters. %package -n python3-barman Summary: Shared libraries for Barman %{?python_provide:%python_provide python3-%{name}} %description -n python3-barman Python libraries used by Barman. %prep %autosetup -n %{name}-release-%{version} # Change shebang in all relevant executable files in this directory and all subdirectories find -type f -executable -exec sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' {} + %generate_buildrequires %pyproject_buildrequires # Create a sysusers.d config file cat >barman.sysusers.conf <