Name: ds-backup Version: 0.11.1.g71d2f16 Release: 3bernie%{?dist} Summary: OLPC DS backup & restore scripts Group: Applications/Archiving License: GPLv2 URL: http://wiki.laptop.org/go/Ds-backup BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://dev.laptop.org/~releases/mstone/SOURCES/%{name}-%{version}.tar.bz2 Patch0: ds-backup-add-journal-backup-scripts.patch BuildArch: noarch BuildRequires: make %description ds-backup is a GPL-licensed collection of scripts for backing up and restoring OLPC DataStore objects and metadata. # - Dependencies of the client package are rsync, sugar-datastore, # sugar, crond, and the python libs sha, urllib2. Everything else I # think is pulled in by standard base or python-base %package client Summary: OLPC DS backup & restore client Group: Applications/Archiving Requires: python Requires: rsync Requires: sugar-datastore Requires: sugar Requires: vixie-cron %package server Summary: OLPC DS backup & restore server Group: Applications/Archiving Requires: mod_python Requires: python Requires: rsync Requires: vixie-cron Requires: incron Requires: php Requires: httpd BuildRequires: httpd %description client ds-backup-client is a GPL-licensed collection of scripts for backing up and restoring OLPC DataStore objects and metadata. %description server ds-backup-server is a GPL-licensed collection of scripts for backing up and restoring OLPC DataStore objects and metadata. %prep %setup -q %patch0 -p1 %build %install rm -rf $RPM_BUILD_ROOT make -f Makefile.build install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post server service httpd condrestart chkconfig --level 345 incrond on %files client %defattr(-,root,root,-) %doc README COPYING AUTHORS %config %{_sysconfdir}/cron.d/ds-backup %{_bindir}/ds-backup.py %{_bindir}/ds-backup.sh %{_bindir}/journal-backup %{_bindir}/journal-backup-list %{_bindir}/journal-restore %files server %defattr(-,root,root,-) %doc README COPYING AUTHORS %config(noreplace) %{_sysconfdir}/httpd/conf.d/050-ds-backup.conf %config(noreplace) %{_sysconfdir}/cron.d/ds-backup-server.conf # incron will mess up with an rpmsave file # so replace inconditionally %config %{_sysconfdir}/incron.d/ds-backup.conf %{_bindir}/ds-postprocess.py %{_bindir}/ds-cleanup.sh %{_bindir}/ds-cleanup.py %{_var}/www/ds-backup/backup-available.py* %attr(700, apache, apache) %dir %{_localstatedir}/lib/ds-backup/recentclients %attr(777, nobody, nobody) %dir %{_localstatedir}/lib/ds-backup/completion %changelog * Fri Jul 18 2008 Martin Langhoff vixie-cron (which cronie provides on F9) * Mon Jul 06 2008 Michael Stone - 0.6-1.olpc3 - Fix dependencies: crond -> cronie. * Wed Jul 02 2008 Michael Stone - 0.5-1.olpc3 - Initial release of this spec.