-
Notifications
You must be signed in to change notification settings - Fork 0
/
ds-backup.spec.in
122 lines (93 loc) · 3.16 KB
/
ds-backup.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Name: ds-backup
Version: @VERSION@
Release: 1%{?dist}
Summary: OLPC DS backup & restore scripts
Group: Applications/Archiving
License: GPLv2
URL: http://wiki.laptop.org/go/Ds-backup
#Source0: http://dev.laptop.org/git/users/martin/%{name}.git/snapshot/%{name}-%{version}.tar.bz2
#Source0: https://github.com/georgejhunt/%{name}/archive/wsgi.zip
Source: %{name}-%{version}.tar.gz
#BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
#BuildRoot: %{_tmppath}/%{name}-root
BuildRoot: %{_builddir}/%{name}-root
BuildArch: noarch
BuildRequires: make
BuildRequires: python
%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, 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(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%package server
Summary: OLPC DS backup & restore server
Group: Applications/Archiving
Requires: xs-config
Requires: mod_wsgi
Requires: python
Requires: rsync
Requires: cronie
Requires: incron
Requires: php
Requires: httpd
Requires: PyYAML
%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
%build
%install
rm -rf $RPM_BUILD_ROOT
make -f Makefile install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post server
service httpd condrestart
%post client
%systemd_post ds-backup.timer
%preun client
%systemd_preun ds-backup.timer
%postun client
%systemd_postun ds-backup.timer
%files client
%defattr(-,root,root,-)
%doc README COPYING AUTHORS
%{_unitdir}/*
%{_bindir}/ds-backup.py
%{_bindir}/ds-backup.sh
%files server
%defattr(-,root,root,-)
%doc README COPYING AUTHORS
%{_datadir}/%{name}
%{_sysconfdir}/sysconfig/olpc-scripts/setup.d/*
%{_bindir}/ds-postprocess.py
%{_bindir}/ds-cleanup.sh
%{_bindir}/ds-cleanup.py
/var/www/ds-backup/*
%attr(700, apache, apache) %dir %{_localstatedir}/lib/ds-backup/recentclients
%attr(777, nobody, nobody) %dir %{_localstatedir}/lib/ds-backup/completion
%changelog
* Mon Jun 10 2013 George Hunt <georgejhunt@gmail.com
- changed dependencies on syck-python=>PyYAML, and vixie-cron=>cronie
* Fri Jul 18 2008 Martin Langhoff <martin@laptop.org - 0.7-1.olpc3
- Updated server package, several fixes.
- Fixed dependencies: cronie->vixie-cron (which cronie provides on F9)
* Mon Jul 06 2008 Michael Stone <michael@laptop.org> - 0.6-1.olpc3
- Fix dependencies: crond -> cronie.
* Wed Jul 02 2008 Michael Stone <michael@laptop.org> - 0.5-1.olpc3
- Initial release of this spec.