2010-08-23 18:20:26 +02:00
|
|
|
#
|
2011-04-28 23:51:27 +02:00
|
|
|
# spec file for package deja-dup
|
2010-08-23 18:20:26 +02:00
|
|
|
#
|
2012-01-18 21:07:31 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2010-08-23 18:20:26 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2011-05-16 11:55:52 +02:00
|
|
|
|
2010-08-23 18:20:26 +02:00
|
|
|
Name: deja-dup
|
2012-01-18 21:07:31 +01:00
|
|
|
Version: 21.4
|
|
|
|
Release: 0
|
2011-09-09 18:03:08 +02:00
|
|
|
# FIXME: the %%{_datadir}/help/$locale/ files be found by %%find_lang
|
2011-04-29 00:57:33 +02:00
|
|
|
# FIXME: check if python-cloudfiles is packaged, and if yes, uncomment Recommends
|
2010-08-23 18:20:26 +02:00
|
|
|
Summary: Simple backup tool and frontend for duplicity
|
2012-01-18 21:07:31 +01:00
|
|
|
License: GPL-3.0+
|
2010-08-23 18:20:26 +02:00
|
|
|
Group: Productivity/Archiving/Backup
|
2012-01-18 21:07:31 +01:00
|
|
|
Url: https://launchpad.net/deja-dup
|
2011-11-16 11:23:07 +01:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2012-01-18 21:07:31 +01:00
|
|
|
# PATCH-FIX-UPSTREAM deja-dup-vala-0.16.patch lp#91717 vuntz@opensuse.org -- Fix build with vala 0.15/0.16
|
|
|
|
Patch0: deja-dup-vala-0.16.patch
|
|
|
|
# For make check to work, we need dbus-launch
|
|
|
|
BuildRequires: dbus-1-x11
|
2010-08-23 18:20:26 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gnome-doc-utils-devel
|
2011-04-28 23:51:27 +02:00
|
|
|
BuildRequires: intltool
|
2011-09-05 19:23:55 +02:00
|
|
|
BuildRequires: itstool
|
2011-04-28 23:51:27 +02:00
|
|
|
BuildRequires: perl-gettext
|
2011-04-29 00:57:33 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2011-11-16 11:23:07 +01:00
|
|
|
BuildRequires: vala >= 0.14.0
|
|
|
|
# Only needed because we don't (and won't) support building xz tarballs by default... See bnc#697467
|
|
|
|
BuildRequires: xz
|
2010-08-23 18:20:26 +02:00
|
|
|
BuildRequires: pkgconfig(gnome-keyring-1)
|
2011-04-28 23:51:27 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
2010-08-23 18:20:26 +02:00
|
|
|
BuildRequires: pkgconfig(libnautilus-extension)
|
|
|
|
BuildRequires: pkgconfig(libnotify)
|
|
|
|
Requires: duplicity
|
2011-02-13 21:50:48 +01:00
|
|
|
Recommends: %{name}-lang
|
2011-09-05 19:23:55 +02:00
|
|
|
Recommends: python-boto
|
2011-04-29 00:57:33 +02:00
|
|
|
# Needed for Rackspace Cloud Files support, but not packaged :/
|
|
|
|
#Recommends: python-cloudfiles
|
2011-05-27 20:18:00 +02:00
|
|
|
%glib2_gsettings_schema_requires
|
2010-08-23 18:20:26 +02:00
|
|
|
|
|
|
|
%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
|
2012-01-18 21:07:31 +01:00
|
|
|
%patch0 -p1
|
2010-08-23 18:20:26 +02:00
|
|
|
|
|
|
|
%build
|
2011-09-05 19:23:55 +02:00
|
|
|
%configure --disable-static
|
2012-01-18 21:07:31 +01:00
|
|
|
make %{?_smp_mflags}
|
2010-08-23 18:20:26 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%suse_update_desktop_file deja-dup
|
|
|
|
%suse_update_desktop_file deja-dup-monitor
|
2011-10-28 16:22:34 +02:00
|
|
|
%suse_update_desktop_file -r deja-dup-preferences GTK GNOME System Archiving X-SuSE-Backup
|
2011-02-13 21:50:48 +01:00
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2011-09-05 19:23:55 +02:00
|
|
|
# Localized help
|
|
|
|
for help in %{buildroot}%{_datadir}/help/*/deja-dup/; do
|
|
|
|
LOCALE=`echo $help | sed "s:.*%{_datadir}/help/\([^/]*\)/deja-dup/:\1:g"`
|
|
|
|
echo "%%lang($LOCALE) %%dir %%{_datadir}/help/$LOCALE" >> %{name}.help-lang.tmp
|
|
|
|
echo "%%lang($LOCALE) %%doc /${help##%{buildroot}}" >> %{name}.help-lang.tmp
|
|
|
|
done
|
2011-09-09 18:03:08 +02:00
|
|
|
sort -u %{name}.help-lang.tmp | grep -v "^%%lang(C)" > %{name}.help-lang
|
2011-09-05 19:23:55 +02:00
|
|
|
rm %{name}.help-lang.tmp
|
2010-08-23 18:20:26 +02:00
|
|
|
# Localized man pages
|
|
|
|
for man in %{buildroot}%{_mandir}/*/man1/*; do
|
|
|
|
LOCALE=`echo $man | sed "s:.*%{_mandir}/\([^/]*\)/man1/.*:\1:g"`
|
2011-04-29 00:57:33 +02:00
|
|
|
echo "%%lang($LOCALE) %%dir %%{_mandir}/$LOCALE" >> %{name}.man-lang.tmp
|
|
|
|
echo "%%lang($LOCALE) %%dir %%{_mandir}/$LOCALE/man1" >> %{name}.man-lang.tmp
|
2011-09-05 19:23:55 +02:00
|
|
|
echo "%%lang($LOCALE) %%doc /${man##%{buildroot}}*" >> %{name}.man-lang.tmp
|
2010-08-23 18:20:26 +02:00
|
|
|
done
|
2011-04-29 00:57:33 +02:00
|
|
|
sort -u %{name}.man-lang.tmp > %{name}.man-lang
|
|
|
|
rm %{name}.man-lang.tmp
|
2010-08-23 18:20:26 +02:00
|
|
|
# create symlinks for man pages
|
|
|
|
%fdupes -s %{buildroot}%{_mandir}
|
|
|
|
# create hardlinks for the rest
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
2012-01-18 21:07:31 +01:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2011-02-13 21:50:48 +01:00
|
|
|
%if 0%{?suse_version} > 1130
|
2011-04-28 23:51:27 +02:00
|
|
|
|
2011-02-13 21:50:48 +01:00
|
|
|
%post
|
2011-05-27 20:18:00 +02:00
|
|
|
%glib2_gsettings_schema_post
|
2011-02-13 21:50:48 +01:00
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version} > 1130
|
2011-04-28 23:51:27 +02:00
|
|
|
|
2011-02-13 21:50:48 +01:00
|
|
|
%postun
|
2011-05-27 20:18:00 +02:00
|
|
|
%glib2_gsettings_schema_postun
|
2011-02-13 21:50:48 +01:00
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
|
|
|
%endif
|
2010-08-23 18:20:26 +02:00
|
|
|
|
2011-09-09 18:03:08 +02:00
|
|
|
%files -f %{name}.man-lang
|
2010-08-23 18:20:26 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS COPYING NEWS
|
2011-09-05 19:23:55 +02:00
|
|
|
%doc %{_datadir}/help/C/%{name}/
|
2010-08-23 18:20:26 +02:00
|
|
|
%{_bindir}/deja-dup
|
|
|
|
%{_bindir}/deja-dup-preferences
|
|
|
|
%{_mandir}/man1/deja-dup.*
|
|
|
|
%{_mandir}/man1/deja-dup-preferences.*
|
|
|
|
%{_sysconfdir}/xdg/autostart/deja-dup-monitor.desktop
|
2011-09-05 19:23:55 +02:00
|
|
|
# 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
|
2010-08-23 18:20:26 +02:00
|
|
|
%{_datadir}/applications/deja-dup.desktop
|
2010-09-24 01:02:46 +02:00
|
|
|
%{_datadir}/applications/deja-dup-preferences.desktop
|
2011-04-29 00:57:33 +02:00
|
|
|
%{_datadir}/%{name}/
|
2011-04-28 23:51:27 +02:00
|
|
|
%{_datadir}/GConf/gsettings/deja-dup.convert
|
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.DejaDup.gschema.xml
|
2010-08-23 18:20:26 +02:00
|
|
|
%{_datadir}/icons/hicolor/scalable/apps/deja-dup-symbolic.svg
|
2011-04-28 23:51:27 +02:00
|
|
|
%{_datadir}/icons/hicolor/scalable/devices/deja-dup-cloud.svg
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/deja-dup.png
|
2010-08-23 18:20:26 +02:00
|
|
|
|
|
|
|
%files -n nautilus-deja-dup
|
|
|
|
%defattr(-,root,root)
|
2011-09-05 19:23:55 +02:00
|
|
|
%{_libdir}/nautilus/extensions-3.0/libdeja-dup.so
|
2010-08-23 18:20:26 +02:00
|
|
|
|
2011-09-09 18:03:08 +02:00
|
|
|
%files lang -f %{name}.lang -f %{name}.help-lang
|
2010-08-23 18:20:26 +02:00
|
|
|
|
|
|
|
%changelog
|