Name: barman Version: 2.5 Release: 1%{?dist} Summary: Backup and Recovery Manager for PostgreSQL License: GPLv3+ Group: Applications/Databases Url: http://www.pgbarman.org/ Source0: https://files.pythonhosted.org/packages/source/b/%{name}/%{name}-%{version}.tar.gz Source1: barman.cron Source2: barman.logrotate BuildArch: noarch BuildRequires: python3-setuptools BuildRequires: python3-devel Requires(pre): shadow-utils Requires: python3-psycopg2 Requires: python3-argh Requires: python3-argcomplete Requires: python3-dateutil Requires: /usr/bin/register-python-argcomplete %description Barman (backup and recovery manager) is an administration tool for disaster recovery of PostgreSQL servers written in Python. It allows to perform remote backups of multiple servers in business critical environments and help DBAs during the recovery phase. Barman's most wanted features include backup catalogs, retention policies, remote recovery, archiving and compression of WAL files and backups. Barman is written and maintained by PostgreSQL professionals 2ndQuadrant. %prep %setup -q # 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}=' {} + %build %py3_build %install %py3_install mkdir -p %{buildroot}%{_sysconfdir}/cron.d/ mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/ mkdir -p %{buildroot}/var/lib/barman mkdir -p %{buildroot}/var/log/barman mkdir -p %{buildroot}%{_sysconfdir}/barman/conf.d install -pm 644 doc/barman.conf %{buildroot}%{_sysconfdir}/barman/barman.conf install -pm 644 %SOURCE1 %{buildroot}%{_sysconfdir}/cron.d/barman install -pm 644 %SOURCE2 %{buildroot}%{_sysconfdir}/logrotate.d/barman install -Dpm644 scripts/barman.bash_completion %{buildroot}%{_datadir}/bash-completion/completions/barman touch %{buildroot}/var/log/barman/barman.log sed -i 's|/etc/barman.d/|/etc/barman/conf.d|g' %{buildroot}%{_sysconfdir}/barman/barman.conf %files %license LICENSE %doc NEWS README.rst %{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/%{name}/ %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_mandir}/man5/%{name}.5.gz %config(noreplace) %{_sysconfdir}/barman/%{name}.conf %config(noreplace) %{_sysconfdir}/cron.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %{_datadir}/bash-completion/completions/barman %attr(755,barman,barman) %dir /var/lib/%{name} %attr(755,barman,barman) %dir /var/log/%{name} %attr(600,barman,barman) %ghost /var/log/%{name}/%{name}.log %pre getent group barman >/dev/null || groupadd -r barman getent passwd barman >/dev/null || \ useradd -r -g barman -d /var/lib/barman -s /bin/bash \ -c "Backup and Recovery Manager for PostgreSQL" barman exit 0 %changelog * Sun Nov 04 2018 Francisco Javier Tsao Santín - 2.5-1 - Update to 2.5 version * Thu Jul 12 2018 Fedora Release Engineering - 2.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 2.1-5 - Rebuilt for Python 3.7 * Wed Feb 07 2018 Fedora Release Engineering - 2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Jan 26 2017 Devrim Gündüz - 2.1-1 - Update to 2.1 * Mon Dec 19 2016 Miro Hrončok - 2.0-2 - Rebuild for Python 3.6 * Tue Oct 11 2016 Dominika Krejci - 2.0 - Update to 2.0 - Switch to Python 3 * Tue Jul 19 2016 Fedora Release Engineering - 1.3.3-10 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Wed Feb 03 2016 Fedora Release Engineering - 1.3.3-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Nov 14 2015 Zbigniew Jędrzejewski-Szmek - 1.3.3-8 - Update requires on python-argcomplete - Move completion script to /usr * Wed Jun 17 2015 Fedora Release Engineering - 1.3.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Feb 17 2015 - Zbigniew Jędrzejewski-Szmek - 1.3.3-6 - Revert dependency on python-dateutil15 (#1183341) * Mon Feb 02 2015 - Dale Macartney - 1.3.3-5 - Replacing python-dateutil with python-dateutil15 * Wed Jan 21 2015 - Dale Macartney - 1.3.3-4 - Resolve RPM dependencies with older version of python-dateutil * Wed Jan 14 2015 - Dale Macartney - 1.3.3-3 - Update barman to 1.3.3 * Sat Jun 07 2014 Fedora Release Engineering - 1.3.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Tue Apr 15 2014 - Dale Macartney 1.3.1-1 - Update barman to 1.3.1 * Tue Feb 4 2014 - Dale Macartney 1.3.0-1 - Update barman to 1.3.0 * Wed Jan 15 2014 - Dale Macartney 1.2.3-9 - Corrected rpmlint warning permissions * Tue Jan 14 2014 - Dale Macartney 1.2.3-7 - Change license from GPLv3 to GPLv3+ * Mon Jan 13 2014 - Dale Macartney 1.2.3-6 - Clean up of rpmlint errors * Mon Jan 13 2014 - Dale Macartney 1.2.3-5 - Remove non-required variables for older fedora/rhel releases. * Wed Oct 16 2013 - Dale Macartney 1.2.3-4 - Clean up of package dependencies and removal of unnecessary variables * Thu Oct 10 2013 - Dale Macartney 1.2.3-1 - Initial packaging for Fedora Project