File deja-dup.spec of Package deja-dup

#
# spec file for package deja-dup
#
# Copyright (c) 2017 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 http://bugs.opensuse.org/
#


Name:           deja-dup
Version:        36.0
Release:        0
Summary:        Simple backup tool and frontend for duplicity
License:        GPL-3.0+
Group:          Productivity/Archiving/Backup
Url:            https://launchpad.net/deja-dup
Source0:        https://launchpad.net/deja-dup/36/%{version}/+download/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM deja-dup-fix-setting-drive-volume.patch lp#1717230 zaitor@opensuse.org -- BackendDrive: Fix setting a drive volume
Patch0:         deja-dup-fix-setting-drive-volume.patch
# For make check to work, we need dbus-launch
BuildRequires:  dbus-1-x11
BuildRequires:  fdupes
BuildRequires:  libgpg-error-devel
BuildRequires:  meson
BuildRequires:  perl-gettext
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.16.0
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(appstream-builder)
BuildRequires:  pkgconfig(glib-2.0) >= 2.32
BuildRequires:  pkgconfig(goa-1.0)
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:  pkgconfig(libnautilus-extension)
BuildRequires:  pkgconfig(libnotify) >= 0.7
BuildRequires:  pkgconfig(libpeas-1.0)
BuildRequires:  pkgconfig(libsecret-1)
BuildRequires:  pkgconfig(packagekit-glib2)
Recommends:     %{name}-lang
Recommends:     duplicity >= 0.6.25
Recommends:     python-boto
Recommends:     python-cloudfiles
%glib2_gsettings_schema_requires

%description
Déjà  Dup is a simple backup tool. It hides the complexity of doing
backups the 'right way' (encrypted, off-site, and regular) and uses
duplicity as the backend.

Features:
 * Support for local or remote backup locations, including Amazon S3
 * Securely encrypts and compresses your data
 * Incrementally backs up, letting you restore from any particular backup
 * Schedules regular backups
 * Integrates well into your GNOME desktop

%package -n nautilus-deja-dup
Summary:        Déjà Dup Plugin for Nautilus
Group:          Productivity/Archiving/Backup
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:nautilus)

%description -n nautilus-deja-dup
Déjà  Dup is a simple backup tool. It hides the complexity of doing
backups the 'right way' (encrypted, off-site, and regular) and uses
duplicity as the backend.

Features:
 * Support for local or remote backup locations, including Amazon S3
 * Securely encrypts and compresses your data
 * Incrementally backs up, letting you restore from any particular backup
 * Schedules regular backups
 * Integrates well into your GNOME desktop

This package contains a plugin to integrate Déjà Dup into Nautilus.

%lang_package

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="%{optflags} -Wl,-rpath=%{_libdir}/%{name}"
export CXXFLAGS="%{optflags} -Wl,-rpath=%{_libdir}/%{name}"
%{meson}
%{meson_build}

%install
%{meson_install}

%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}

%check
# Disabled as it currently fails a lot of tests.
#%%meson_test

%files
%doc AUTHORS COPYING NEWS
%doc %{_datadir}/help/C/org.gnome.DejaDup/
%{_bindir}/deja-dup
%{_mandir}/man1/deja-dup.1%{?ext_man}
%{_sysconfdir}/xdg/autostart/org.gnome.DejaDup.Monitor.desktop
# We explicitly list the content of %%{_libexecdir}/deja-dup to make sure we
# put the files in the right subpackage
%dir %{_libexecdir}/deja-dup
%{_libexecdir}/deja-dup/deja-dup-monitor
%{_libexecdir}/deja-dup/duplicity
%{_libexecdir}/deja-dup/tools/
%{_datadir}/applications/org.gnome.DejaDup.desktop
%{_datadir}/GConf/gsettings/deja-dup.convert
%{_datadir}/glib-2.0/schemas/org.gnome.DejaDup.gschema.xml
%{_datadir}/icons/hicolor/*/apps/org.gnome.DejaDup*
%dir %{_libdir}/deja-dup
%{_libdir}/deja-dup/libdeja.so
%{_libdir}/deja-dup/libwidgets.so
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/org.gnome.DejaDup.appdata.xml
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/org.gnome.DejaDup.policy
%{_datadir}/dbus-1/services/org.gnome.DejaDup.service

%files -n nautilus-deja-dup
%{_libdir}/nautilus/extensions-3.0/libdeja-dup.so

%files lang -f %{name}.lang
%exclude %{_datadir}/help/C/org.gnome.DejaDup/
%doc %{_datadir}/help/*/org.gnome.DejaDup/

%changelog
openSUSE Build Service is sponsored by