backupninja.spec.in 1.47 KB
Newer Older
1 2 3 4 5 6 7 8 9
%define name    @PACKAGE_NAME@
%define version @PACKAGE_VERSION@

Summary:    Backupninja backup tool
Name:       %{name}
Version:    %{version}
Release:    1
License:    GPL
Group:      Applications/System
10
URL:        https://0xacab.org/riseuplabs/backupninja
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
Source:     %{name}-%{version}.tar.gz
Requires:   bash, gawk, rdiff-backup, gzip
Provides:   %{name}
Packager:   Petr Klima <Petr.Klima@madeta-group.cz>
BuildRoot:  %{_tmppath}/%{name}-%{version}
Prefix:     %{_prefix}

%description
Modular rdiff.backup tool

%prep
%setup -q

%build
%configure
micah's avatar
micah committed
26
make
27 28

%install
micah's avatar
micah committed
29
rm -rf ${buildroot}
30 31 32 33 34 35 36
%makeinstall
mkdir -p "%{buildroot}%{_sysconfdir}/backup.d"
mkdir -p "%{buildroot}%{_localstatedir}/backups"
mkdir -p "%{buildroot}%{_localstatedir}/log"
touch "%{buildroot}%{_localstatedir}/log/backupninja.log"

%clean
micah's avatar
micah committed
37
rm -fr %{buildroot}
38 39

%files
40
%defattr(-,root,root,-)
41 42
%{_sbindir}/*
%{_datadir}/backupninja/*
43
%{_libdir}/backupninja/*
44

45 46 47
%config %{_sysconfdir}/cron.d/backupninja
%config %{_sysconfdir}/logrotate.d/backupninja

48 49
%config(noreplace) %{_sysconfdir}/backupninja.conf
%dir %{_localstatedir}/backups
50

51 52
%ghost %{_localstatedir}/log/backupninja.log

53
%doc AUTHORS COPYING ChangeLog INSTALL.md NEWS README.md
54 55 56 57 58 59
%{_mandir}/man1/*
%{_mandir}/man5/*

%defattr(0640,root,root,0750)
%dir %{_sysconfdir}/backup.d

60 61

%changelog
micah's avatar
micah committed
62
* Sun Oct 14 2007 Adam Monsen <haircut@gmail.com> 0.9.5-1
micah's avatar
micah committed
63
- use cleanup steps during %install and %clean
64 65
* Mon Apr 29 2002 Petr Klima <Petr.Klima@madeta-group.cz> 0.7.0
- first RPM release