File duply.spec of Package duply

# spec file for package duply
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011-2018 Malcolm J Lewis <>
# 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:           duply
Version:        2.0.4
Release:        0
Summary:        A frontend for the "duplicity" backup program
License:        GPL-2.0-only
Group:          Productivity/Archiving/Compression
Requires:       duplicity
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

A shell front end to duplicity that simplifies the usage by managing
settings for backup jobs in profiles. It supports executing multiple
commands in a batch mode to enable single line cron entries and executes
pre/post backup scripts.

%setup -q -n %{name}_%{version}
#Fix env-script-interpreter rpmlint error
sed -i 's/\/usr\/bin\/env bash/\/bin\/bash/g' duply


install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}

%doc CHANGELOG.txt
%if ( 0%{?suse_version} == 1315 && 0%{?sle_version} == 120100 ) || ! 0%{?is_opensuse}
# Needed if Leap 42.1 or SLE build targets
%doc gpl-2.0.txt
%license gpl-2.0.txt

openSUSE Build Service is sponsored by