aboutsummaryrefslogtreecommitdiff
path: root/backupninja.spec
diff options
context:
space:
mode:
Diffstat (limited to 'backupninja.spec')
-rw-r--r--backupninja.spec59
1 files changed, 59 insertions, 0 deletions
diff --git a/backupninja.spec b/backupninja.spec
new file mode 100644
index 0000000..ddf6e0a
--- /dev/null
+++ b/backupninja.spec
@@ -0,0 +1,59 @@
+%define name backupninja
+%define version 0.9.0
+
+Summary: Backupninja backup tool
+Name: %{name}
+Version: %{version}
+Release: 1
+License: GPL
+Group: Applications/System
+URL: http://dev.riseup.net/backupninja/
+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
+#rm -rf ${buildroot}
+%setup -q
+
+%build
+%configure
+# this is necessary MAKEINSTALL rewrites @sysconfigdir@ atc.
+%{__make}
+
+%install
+%makeinstall
+mkdir -p "%{buildroot}%{_sysconfdir}/backup.d"
+mkdir -p "%{buildroot}%{_localstatedir}/backups"
+mkdir -p "%{buildroot}%{_localstatedir}/log"
+touch "%{buildroot}%{_localstatedir}/log/backupninja.log"
+
+%clean
+#rm -fr %{buildroot}
+
+%files
+%defattr(0750,root,root)
+%{_sbindir}/*
+%{_datadir}/backupninja/*
+%{_sysconfdir}/cron.d/backupninja
+%{_sysconfdir}/logrotate.d/backupninja
+
+%defattr(0600,root,root)
+%config(noreplace) %{_sysconfdir}/backupninja.conf
+%dir %{_sysconfdir}/backup.d
+%dir %{_localstatedir}/backups
+%ghost %{_localstatedir}/log/backupninja.log
+
+%defattr(0644,root,root)
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
+%{_mandir}/*
+
+%changelog
+* Mon Apr 29 2002 Petr Klima <Petr.Klima@madeta-group.cz> 0.7.0
+- first RPM release