deja-dup/deja-dup.spec
OBS User autobuild a3c80e8797 Accepting request 48790 from GNOME:Apps
Copy from GNOME:Apps/deja-dup based on submit request 48790 from user vuntz

OBS-URL: https://build.opensuse.org/request/show/48790
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/deja-dup?expand=0&rev=2
2010-09-23 23:02:46 +00:00

143 lines
4.5 KiB
RPMSpec

#
# spec file for package deja-dup (Version 15.92)
#
# Copyright (c) 2010 SUSE LINUX Products 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: 15.92
Release: 1
License: GPLv3+
Summary: Simple backup tool and frontend for duplicity
Url: https://launchpad.net/deja-dup
Group: Productivity/Archiving/Backup
Source0: %{name}-%{version}.tar.bz2
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/Packaging/Patches
Patch0: deja-dup-monitor_check_for_gtk.patch
BuildRequires: fdupes
# Required for PATCH0
BuildRequires: gnome-common
BuildRequires: gnome-doc-utils-devel
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libnautilus-extension)
# This would be an additional Option for deja-dup
#BuildRequires: pkgconfig(appindicator-0.1)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: update-desktop-files
BuildRequires: vala
Requires: %{name}-lang = %{version}
Requires: duplicity
%gconf_schemas_prereq
%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
License: GPLv3+
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
%build
NOCONFIGURE=1 gnome-autogen.sh
%configure --disable-static \
--disable-schemas-install \
--without-gtk3
%__make %{?_smp_mflags}
%install
%makeinstall
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file deja-dup
%suse_update_desktop_file deja-dup-monitor
%suse_update_desktop_file deja-dup-preferences
%find_lang %{name}
# Localized man pages
for man in %{buildroot}%{_mandir}/*/man1/*; do
LOCALE=`echo $man | sed "s:.*%{_mandir}/\([^/]*\)/man1/.*:\1:g"`
echo "%%lang($LOCALE) %%doc ${man##%{buildroot}}*" >> %{name}.lang
done
# create symlinks for man pages
%fdupes -s %{buildroot}%{_mandir}
# create hardlinks for the rest
%fdupes %{buildroot}
%find_gconf_schemas
%pre -f %{name}.schemas_pre
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%clean
rm -rf %{buildroot}
%files -f %{name}.schemas_list
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS
%{_bindir}/deja-dup
%{_bindir}/deja-dup-preferences
%{_mandir}/man1/deja-dup.*
%{_mandir}/man1/deja-dup-preferences.*
%{_sysconfdir}/xdg/autostart/deja-dup-monitor.desktop
%{_libdir}/deja-dup/deja-dup-monitor
%{_datadir}/applications/deja-dup.desktop
%{_datadir}/applications/deja-dup-preferences.desktop
%{_datadir}/icons/hicolor/scalable/actions/deja-dup-backup.svg
%{_datadir}/icons/hicolor/scalable/actions/deja-dup-restore.svg
%{_datadir}/icons/hicolor/scalable/apps/deja-dup.svg
%{_datadir}/icons/hicolor/scalable/apps/deja-dup-symbolic.svg
%files -n nautilus-deja-dup
%defattr(-,root,root)
%{_libdir}/nautilus/extensions-2.0/libnautilus-deja-dup.so
%files lang -f %{name}.lang
%changelog