2 # - mono packages can be noarch?
3 # - remove non-linux binaries
4 %include /usr/lib/rpm/macros.mono
5 Summary: Backup client for encrypted online backups
10 Source0: http://duplicati.googlecode.com/files/Duplicati%20%{version}.tgz?/Duplicati-%{version}.tgz
11 # Source0-md5: 4980c4f6c373387e4452a983b235f7f3
13 URL: http://www.duplicati.com/
14 BuildRequires: desktop-file-utils
15 BuildRequires: mono-devel
16 BuildRequires: rpm-pythonprov
17 BuildRequires: rpmbuild(macros) >= 1.596
19 Requires: desktop-file-utils
20 Requires: gtk-update-icon-cache
21 Requires: hicolor-icon-theme
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _appdir %{_prefix}/lib/%{name}
27 Duplicati is a free backup client that securely stores encrypted,
28 incremental, compressed backups on cloud storage services and remote
29 file servers. It supports targets like Amazon S3, Windows Live
30 SkyDrive, Rackspace Cloud Files or WebDAV, SSH, FTP (and many more).
32 Duplicati has built-in AES-256 encryption and backups be can signed
33 using GNU Privacy Guard. A built-in scheduler makes sure that backups
34 are always up-to-date. Last but not least, Duplicati provides various
35 options and tweaks like filters, deletion rules, transfer and
36 bandwidth options to run backups for specific purposes.
41 # for files/doc declaration:
42 mv usr/share/doc/duplicati/README .
43 rm usr/share/doc/duplicati/changelog.Debian.gz
44 mv usr/share/doc/duplicati/copyright .
45 mv usr/share/doc/duplicati/changelog.gz .
46 rmdir usr/share/doc/duplicati usr/share/doc
49 rm usr/share/pixmaps/duplicati.xpm
54 rm -rf $RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT
56 cp -a usr $RPM_BUILD_ROOT
58 # refined desktop file
59 install -d $RPM_BUILD_ROOT%{_desktopdir}
60 cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
62 Categories=System;Archiving;FileTools;Filesystem;
65 GenericName= Backup tool
66 GenericName[es]= Copias de respaldo
67 Comment= Create and maintain local and remote backup copies of your data
68 Comment[es]= Cree y mantenga copias de seguridad locales y remotas
75 desktop-file-install $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
78 rm -rf $RPM_BUILD_ROOT
81 %update_desktop_database
82 %update_icon_cache hicolor
85 %update_desktop_database
86 %update_icon_cache hicolor
89 %defattr(644,root,root,755)
90 %doc README copyright changelog
91 %attr(755,root,root) %{_bindir}/duplicati
92 %attr(755,root,root) %{_bindir}/duplicati-commandline
93 %{_desktopdir}/duplicati.desktop
94 %{_pixmapsdir}/duplicati.png
99 %{_appdir}/*.exe.config
105 %dir %{_appdir}/lvm-scripts
106 %attr(755,root,root) %{_appdir}/lvm-scripts/*.sh
108 %lang(de) %{_appdir}/de-DE
109 %lang(es) %{_appdir}/es-ES
110 %lang(fr) %{_appdir}/fr-FR
111 %lang(it) %{_appdir}/it-IT
112 %lang(pt_BR) %{_appdir}/pt-BR
113 %lang(ru) %{_appdir}/ru-RU
114 %lang(tr_TR) %{_appdir}/tr-TR
115 %lang(zh_CN) %{_appdir}/zh-CN
116 %lang(zh_HK) %{_appdir}/zh-HK
117 %lang(da_DK) %{_appdir}/da-DK