Summary: Backup and Recovery Manager for PostgreSQL Name: barman Version: 1.2.3 Release: 9%{?dist} License: GPLv3+ Group: Applications/Databases Url: http://www.pgbarman.org/ Source0: http://downloads.sourceforge.net/project/pgbarman/%{version}/%{name}-%{version}.tar.gz Source1: barman.cron Source2: barman.logrotate BuildArch: noarch BuildRequires: python-setuptools, python2-devel Requires(pre): shadow-utils Requires: python-psycopg2, python-argh >= 0.21.2, python-argcomplete, python-dateutil %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 %build python setup.py build %install python setup.py install -O1 --skip-build --root %{buildroot} mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/barman mkdir -p %{buildroot}%{_sysconfdir}/cron.d/ mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/ mkdir -p %{buildroot}/var/lib/barman mkdir -p %{buildroot}/var/log/barman install -pm 644 doc/barman.conf %{buildroot}%{_sysconfdir}/barman.conf install -pm 644 scripts/barman.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/barman install -pm 644 %SOURCE1 %{buildroot}%{_sysconfdir}/cron.d/barman install -pm 644 %SOURCE2 %{buildroot}%{_sysconfdir}/logrotate.d/barman touch %{buildroot}/var/log/barman/barman.log %files %doc NEWS README LICENSE %{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info/ %{python_sitelib}/%{name}/ %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_mandir}/man5/%{name}.5.gz %config(noreplace) %{_sysconfdir}/bash_completion.d/barman %config(noreplace) %{_sysconfdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/cron.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %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 * 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