forked from fr3nd/monkey-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
monkey-backup.spec
66 lines (51 loc) · 1.75 KB
/
monkey-backup.spec
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
%define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
Name : monkey-backup
Version : 0.2.2
Release : 1
License : GPL
Summary : Multithreaded modular backup script
Group : Applications/Archiving
Url : http://www.fr3nd.net/projects/monkey-backup/
Vendor : Carles Amigo <[email protected]>
BuildRoot : %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Source0 : %{name}-%{version}.tar.gz
Source1 : monkey-backup.ini
Source2 : exclude.txt
Prefix : %{_prefix}
BuildArch : noarch
Requires : python
Requires : python-paramiko
#BuildRequires: help2man
BuildRequires: python
%description
Modular backup script which allows to execute remote backups to multiple
servers at the same time
%prep
rm -rf %{buildroot}
%setup
%build
CFLAGS="%{optflags}" %{__python} setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install --skip-build --root="%{buildroot}" --prefix="%{_prefix}"
%{__mkdir} -p %{buildroot}/backup/monkey-backup
%{__mkdir} -p %{buildroot}/var/log/monkey-backup
%{__mkdir} -p %{buildroot}%{_sysconfdir}/monkey-backup
%{__install} %{SOURCE1} %{buildroot}%{_sysconfdir}/monkey-backup
%{__install} %{SOURCE2} %{buildroot}%{_sysconfdir}/monkey-backup
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
/usr/bin/monkey-backup
%{python_sitelib}/MonkeyBackup.py
%{python_sitelib}/*.pyc
%config %{_sysconfdir}/monkey-backup/monkey-backup.ini
%config %{_sysconfdir}/monkey-backup/exclude.txt
%dir /backup/monkey-backup
%dir /var/log/monkey-backup
%changelog
* Tue May 30 2011 Carles Amigo <[email protected]> 0.2.2-1
- New version
* Thu Sep 30 2010 Carles Amigo <[email protected]>
- Initial RPM build