File dirvish.spec of Package dirvish

# spec file for package dirvish
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           dirvish
Version:        1.2.1
Release:        0
Summary:        Fast, disk based, rotating network backup system
License:        OSL-2.0
Group:          Productivity/Archiving/Backup
Source1:        master.conf
# PATCH-FIX-UPSTREAM dirvish-1.2.1-install.patch -- Converts the installer to work in unattended mode
Patch0:         dirvish-1.2.1-install.patch
# PATCH-FIX-UPSTREAM dirvish-expire-vanished.patch -- Allows expiration of vanished backups
Patch1:         dirvish-expire-vanished.patch
# PATCH-FIX-UPSTREAM dirvish-imsort-reserved-warning.patch -- Fix for future reserved word warning
Patch2:         dirvish-imsort-reserved-warning.patch
# PATCH-FIX-UPSTREAM dirvish-rsync-options.patch -- Fix typo in docs about rsync-options which was deprecated
Patch3:         dirvish-rsync-options.patch
# PATCH-FIX-UPSTREAM dirvish-locate.patch -- Get patch level of in case exit codes are needed.
Patch4:         dirvish-locate.patch
# PATCH-FIX-UPSTREAM dirvish-lock-vault-against-overlapping-runs.patch John Altstadt -- Lock vault against overlapping runs
Patch5:         dirvish-lock-vault-against-overlapping-runs.patch
Requires:       perl
Requires:       perl(Time::ParseDate)
Requires:       perl(Time::Period)
Requires:       rsync
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Dirvish is a fast, disk based, rotating network backup system. With dirvish you
can maintain a set of complete images of your filesystems with unattended
creation and expiration. A dirvish backup vault is like a time machine for your

%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1


install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/master.conf

PREFIX=%{buildroot}%{_prefix} ./

%dir %{_sysconfdir}/dirvish
%config(noreplace) %{_sysconfdir}/%{name}/master.conf

openSUSE Build Service is sponsored by