add the ability to save the debconf package selection states in the sys handler,...
[matthijs/upstream/backupninja-vserver.git] / backupninja.spec.in
1 %define name    @PACKAGE_NAME@
2 %define version @PACKAGE_VERSION@
3
4 Summary:    Backupninja backup tool
5 Name:       %{name}
6 Version:    %{version}
7 Release:    1
8 License:    GPL
9 Group:      Applications/System
10 URL:        http://dev.riseup.net/backupninja/
11 Source:     %{name}-%{version}.tar.gz
12 Requires:   bash, gawk, rdiff-backup, gzip
13 Provides:   %{name}
14 Packager:   Petr Klima <Petr.Klima@madeta-group.cz>
15 BuildRoot:  %{_tmppath}/%{name}-%{version}
16 Prefix:     %{_prefix}
17
18 %description
19 Modular rdiff.backup tool
20
21 %prep
22 %setup -q
23
24 %build
25 %configure
26 make
27
28 %install
29 rm -rf ${buildroot}
30 %makeinstall
31 mkdir -p "%{buildroot}%{_sysconfdir}/backup.d"
32 mkdir -p "%{buildroot}%{_localstatedir}/backups"
33 mkdir -p "%{buildroot}%{_localstatedir}/log"
34 touch "%{buildroot}%{_localstatedir}/log/backupninja.log"
35
36 %clean
37 rm -fr %{buildroot}
38
39 %files
40 %defattr(-,root,root,-)
41 %{_sbindir}/*
42 %{_datadir}/backupninja/*
43 %{_libdir}/backupninja/*
44
45 %config %{_sysconfdir}/cron.d/backupninja
46 %config %{_sysconfdir}/logrotate.d/backupninja
47
48 %config(noreplace) %{_sysconfdir}/backupninja.conf
49 %dir %{_localstatedir}/backups
50
51 %ghost %{_localstatedir}/log/backupninja.log
52
53 %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
54 %{_mandir}/man1/*
55 %{_mandir}/man5/*
56
57 %defattr(0640,root,root,0750)
58 %dir %{_sysconfdir}/backup.d
59
60
61 %changelog
62 * Sun Oct 14 2007 Adam Monsen <haircut@gmail.com> 0.9.5-1
63 - use cleanup steps during %install and %clean
64 * Mon Apr 29 2002 Petr Klima <Petr.Klima@madeta-group.cz> 0.7.0
65 - first RPM release