rsnapshot/rsnapshot.spec

76 lines
2.5 KiB
RPMSpec
Raw Normal View History

Name: rsnapshot
Version: 1.4.1
Release: 1mamba
Summary: rsnapshot is a filesystem snapshot utility for making backups of local and remote systems
Group: Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Fabio Giani <fabio.giani@gmail.com>
URL: http://www.rsnapshot.org/
Source: http://www.rsnapshot.org/downloads/rsnapshot-%{version}.tar.gz
Source1: rsnapshot-daily.timer
Source2: rsnapshot@.service
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
## AUTOBUILDREQ-BEGIN
BuildRequires: openssh-clients
BuildRequires: perl-devel
BuildRequires: rsync
## AUTOBUILDREQ-END
Requires: openssh-clients
Requires: perl
Requires: rsync
%description
rsnapshot is a filesystem snapshot utility for making backups of local and remote systems.
Using rsync and hard links, it is possible to keep multiple, full backups instantly available. The disk space required is just a little more than the space of one full backup, plus incrementals.
Depending on your configuration, it is quite possible to set up in just a few minutes. Files can be restored by the users who own them, without the root user getting involved.
%prep
%setup -q
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/rsnapshot-daily.timer
install -D -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/rsnapshot@.service
cp %{buildroot}%{_sysconfdir}/rsnapshot.conf.default %{buildroot}%{_sysconfdir}/rsnapshot.conf
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_sysconfdir}/rsnapshot.conf.default
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/rsnapshot.conf
%{_bindir}/rsnapshot
%{_bindir}/rsnapshot-diff
%{_unitdir}/rsnapshot-daily.timer
%{_unitdir}/rsnapshot@.service
%{_mandir}/man1/rsnapshot.1*
%{_mandir}/man1/rsnapshot-diff.1*
%doc AUTHORS COPYING ChangeLog
%changelog
* Tue Sep 01 2015 Automatic Build System <autodist@mambasoft.it> 1.4.1-1mamba
- automatic version update by autodist
* Sun Aug 02 2015 Automatic Build System <autodist@mambasoft.it> 1.4.0-1mamba
- automatic version update by autodist
* Sun Jun 07 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.3.1-3mamba
- provide systemd timer files
* Tue Jul 16 2013 Automatic Build System <autodist@mambasoft.it> 1.3.1-2mamba
- automatic rebuild by autodist
* Tue Jun 30 2009 Fabio Giani <fabio.giani@gmail.com> 1.3.1-1mamba
- package created by autospec