|
|
3b601a7 |
Summary: Backup and Recovery Manager for PostgreSQL
|
|
|
3b601a7 |
Name: barman
|
|
|
243c6fd |
Version: 1.3.3
|
|
|
0722b0c |
Release: 6%{?dist}
|
|
|
3b601a7 |
License: GPLv3+
|
|
|
3b601a7 |
Group: Applications/Databases
|
|
|
3b601a7 |
Url: http://www.pgbarman.org/
|
|
|
3b601a7 |
Source0: http://downloads.sourceforge.net/project/pgbarman/%{version}/%{name}-%{version}.tar.gz
|
|
|
3b601a7 |
Source1: barman.cron
|
|
|
3b601a7 |
Source2: barman.logrotate
|
|
|
3b601a7 |
BuildArch: noarch
|
|
|
3b601a7 |
BuildRequires: python-setuptools, python2-devel
|
|
|
3b601a7 |
Requires(pre): shadow-utils
|
|
|
0722b0c |
Requires: python-psycopg2, python-argh >= 0.21.2, python-argcomplete, python-dateutil
|
|
|
3b601a7 |
|
|
|
3b601a7 |
%description
|
|
|
3b601a7 |
Barman (backup and recovery manager) is an administration
|
|
|
3b601a7 |
tool for disaster recovery of PostgreSQL servers written in Python.
|
|
|
3b601a7 |
It allows to perform remote backups of multiple servers
|
|
|
3b601a7 |
in business critical environments and help DBAs during the recovery phase.
|
|
|
3b601a7 |
Barman's most wanted features include backup catalogs, retention policies,
|
|
|
3b601a7 |
remote recovery, archiving and compression of WAL files and backups.
|
|
|
3b601a7 |
Barman is written and maintained by PostgreSQL professionals 2ndQuadrant.
|
|
|
3b601a7 |
|
|
|
3b601a7 |
%prep
|
|
|
3b601a7 |
%setup -q
|
|
|
3b601a7 |
|
|
|
3b601a7 |
%build
|
|
|
3b601a7 |
python setup.py build
|
|
|
3b601a7 |
|
|
|
3b601a7 |
%install
|
|
|
3b601a7 |
python setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
3b601a7 |
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/barman
|
|
|
3b601a7 |
mkdir -p %{buildroot}%{_sysconfdir}/cron.d/
|
|
|
3b601a7 |
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
|
|
|
3b601a7 |
mkdir -p %{buildroot}/var/lib/barman
|
|
|
3b601a7 |
mkdir -p %{buildroot}/var/log/barman
|
|
|
b399e1e |
mkdir -p %{buildroot}%{_sysconfdir}/barman/conf.d
|
|
|
b399e1e |
install -pm 644 doc/barman.conf %{buildroot}%{_sysconfdir}/barman/barman.conf
|
|
|
3b601a7 |
install -pm 644 scripts/barman.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/barman
|
|
|
3b601a7 |
install -pm 644 %SOURCE1 %{buildroot}%{_sysconfdir}/cron.d/barman
|
|
|
3b601a7 |
install -pm 644 %SOURCE2 %{buildroot}%{_sysconfdir}/logrotate.d/barman
|
|
|
3b601a7 |
touch %{buildroot}/var/log/barman/barman.log
|
|
|
52c979f |
sed -i 's|/etc/barman.d/|/etc/barman/conf.d|g' %{buildroot}%{_sysconfdir}/barman/barman.conf
|
|
|
b399e1e |
|
|
|
3b601a7 |
%files
|
|
|
3b601a7 |
%doc NEWS README LICENSE
|
|
|
3b601a7 |
%{python_sitelib}/%{name}-%{version}-py%{python_version}.egg-info/
|
|
|
3b601a7 |
%{python_sitelib}/%{name}/
|
|
|
3b601a7 |
%{_bindir}/%{name}
|
|
|
3b601a7 |
%{_mandir}/man1/%{name}.1.gz
|
|
|
3b601a7 |
%{_mandir}/man5/%{name}.5.gz
|
|
|
3b601a7 |
%config(noreplace) %{_sysconfdir}/bash_completion.d/barman
|
|
|
b399e1e |
%config(noreplace) %{_sysconfdir}/barman/%{name}.conf
|
|
|
3b601a7 |
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
|
|
|
3b601a7 |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
|
|
3b601a7 |
%attr(755,barman,barman) %dir /var/lib/%{name}
|
|
|
3b601a7 |
%attr(755,barman,barman) %dir /var/log/%{name}
|
|
|
3b601a7 |
%attr(600,barman,barman) %ghost /var/log/%{name}/%{name}.log
|
|
|
3b601a7 |
|
|
|
3b601a7 |
%pre
|
|
|
3b601a7 |
getent group barman >/dev/null || groupadd -r barman
|
|
|
3b601a7 |
getent passwd barman >/dev/null || \
|
|
|
3b601a7 |
useradd -r -g barman -d /var/lib/barman -s /bin/bash \
|
|
|
3b601a7 |
-c "Backup and Recovery Manager for PostgreSQL" barman
|
|
|
3b601a7 |
exit 0
|
|
|
3b601a7 |
|
|
|
3b601a7 |
%changelog
|
|
|
0722b0c |
* Tue Feb 17 2015 - Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.3.3-6
|
|
|
0722b0c |
- Revert dependency on python-dateutil15 (#1183341)
|
|
|
0722b0c |
|
|
|
30dffd3 |
* Mon Feb 02 2015 - Dale Macartney <dbmacartney@fedoraproject.org> - 1.3.3-5
|
|
|
30dffd3 |
- Replacing python-dateutil with python-dateutil15
|
|
|
30dffd3 |
|
|
|
ce6efb9 |
* Wed Jan 21 2015 - Dale Macartney <dbmacartney@fedoraproject.org> - 1.3.3-4
|
|
|
ce6efb9 |
- Resolve RPM dependencies with older version of python-dateutil
|
|
|
ce6efb9 |
|
|
|
5842c0a |
* Wed Jan 14 2015 - Dale Macartney <dbmacartney@fedoraproject.org> - 1.3.3-3
|
|
|
5842c0a |
- Update barman to 1.3.3
|
|
|
5842c0a |
|
|
|
ca7a85a |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.2-2
|
|
|
ca7a85a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
ca7a85a |
|
|
|
95e069c |
* Tue Apr 15 2014 - Dale Macartney <dbmacartney@fedoraproject.org> 1.3.1-1
|
|
|
03e9b55 |
- Update barman to 1.3.1
|
|
|
03e9b55 |
|
|
|
b399e1e |
* Tue Feb 4 2014 - Dale Macartney <dbmacartney@fedoraproject.org> 1.3.0-1
|
|
|
b399e1e |
- Update barman to 1.3.0
|
|
|
b399e1e |
|
|
|
3b601a7 |
* Wed Jan 15 2014 - Dale Macartney <dbmacartney@fedoraproject.org> 1.2.3-9
|
|
|
3b601a7 |
- Corrected rpmlint warning permissions
|
|
|
3b601a7 |
|
|
|
3b601a7 |
* Tue Jan 14 2014 - Dale Macartney <dbmacartney@fedoraproject.org> 1.2.3-7
|
|
|
3b601a7 |
- Change license from GPLv3 to GPLv3+
|
|
|
3b601a7 |
|
|
|
3b601a7 |
* Mon Jan 13 2014 - Dale Macartney <dbmacartney@fedoraproject.org> 1.2.3-6
|
|
|
3b601a7 |
- Clean up of rpmlint errors
|
|
|
3b601a7 |
|
|
|
3b601a7 |
* Mon Jan 13 2014 - Dale Macartney <dbmacartney@fedoraproject.org> 1.2.3-5
|
|
|
3b601a7 |
- Remove non-required variables for older fedora/rhel releases.
|
|
|
3b601a7 |
|
|
|
3b601a7 |
* Wed Oct 16 2013 - Dale Macartney <dbmacartney@gmail.com> 1.2.3-4
|
|
|
3b601a7 |
- Clean up of package dependencies and removal of unnecessary variables
|
|
|
3b601a7 |
|
|
|
3b601a7 |
* Thu Oct 10 2013 - Dale Macartney <dbmacartney@gmail.com> 1.2.3-1
|
|
|
3b601a7 |
- Initial packaging for Fedora Project
|