2005-10-27 01:05:26 +02:00
|
|
|
%define name @PACKAGE_NAME@
|
|
|
|
%define version @PACKAGE_VERSION@
|
|
|
|
|
|
|
|
Summary: Backupninja backup tool
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: 1
|
|
|
|
License: GPL
|
|
|
|
Group: Applications/System
|
2021-01-02 22:00:14 +01:00
|
|
|
URL: https://0xacab.org/liberate/backupninja
|
2005-10-27 01:05:26 +02:00
|
|
|
Source: %{name}-%{version}.tar.gz
|
|
|
|
Requires: bash, gawk, rdiff-backup, gzip
|
|
|
|
Provides: %{name}
|
2021-02-21 13:21:07 +01:00
|
|
|
Packager: Petr Klima <Petr.Klima@madeta.cz>
|
2005-10-27 01:05:26 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}
|
|
|
|
Prefix: %{_prefix}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Modular rdiff.backup tool
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2007-11-28 16:09:06 +01:00
|
|
|
make
|
2005-10-27 01:05:26 +02:00
|
|
|
|
|
|
|
%install
|
2007-11-28 16:09:06 +01:00
|
|
|
rm -rf ${buildroot}
|
2005-10-27 01:05:26 +02:00
|
|
|
%makeinstall
|
|
|
|
mkdir -p "%{buildroot}%{_sysconfdir}/backup.d"
|
|
|
|
mkdir -p "%{buildroot}%{_localstatedir}/backups"
|
|
|
|
mkdir -p "%{buildroot}%{_localstatedir}/log"
|
|
|
|
touch "%{buildroot}%{_localstatedir}/log/backupninja.log"
|
|
|
|
|
|
|
|
%clean
|
2007-11-28 16:09:06 +01:00
|
|
|
rm -fr %{buildroot}
|
2005-10-27 01:05:26 +02:00
|
|
|
|
|
|
|
%files
|
2006-08-11 15:46:57 +02:00
|
|
|
%defattr(-,root,root,-)
|
2005-10-27 01:05:26 +02:00
|
|
|
%{_sbindir}/*
|
|
|
|
%{_datadir}/backupninja/*
|
2005-11-29 11:08:41 +01:00
|
|
|
%{_libdir}/backupninja/*
|
2005-10-27 01:05:26 +02:00
|
|
|
|
2006-08-11 15:46:57 +02:00
|
|
|
%config %{_sysconfdir}/cron.d/backupninja
|
|
|
|
%config %{_sysconfdir}/logrotate.d/backupninja
|
|
|
|
|
2005-10-27 01:05:26 +02:00
|
|
|
%config(noreplace) %{_sysconfdir}/backupninja.conf
|
|
|
|
%dir %{_localstatedir}/backups
|
2006-08-11 15:46:57 +02:00
|
|
|
|
2005-10-27 01:05:26 +02:00
|
|
|
%ghost %{_localstatedir}/log/backupninja.log
|
|
|
|
|
2021-01-21 22:19:35 +01:00
|
|
|
%doc AUTHORS COPYING CHANGELOG.md INSTALL.md NEWS README.md
|
2006-08-11 15:46:57 +02:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man5/*
|
|
|
|
|
|
|
|
%defattr(0640,root,root,0750)
|
|
|
|
%dir %{_sysconfdir}/backup.d
|
|
|
|
|
2005-10-27 01:05:26 +02:00
|
|
|
|
|
|
|
%changelog
|
2007-12-02 18:06:06 +01:00
|
|
|
* Sun Oct 14 2007 Adam Monsen <haircut@gmail.com> 0.9.5-1
|
2007-11-28 16:09:06 +01:00
|
|
|
- use cleanup steps during %install and %clean
|
2005-10-27 01:05:26 +02:00
|
|
|
* Mon Apr 29 2002 Petr Klima <Petr.Klima@madeta-group.cz> 0.7.0
|
|
|
|
- first RPM release
|