]>
Commit | Line | Data |
---|---|---|
ed76ea7e AM |
1 | Summary: Backup client for encrypted online backups |
2 | Name: duplicati | |
3 | Version: 1.3.4 | |
4 | Release: 0.1 | |
5 | License: LGPL v2+ | |
7655f7fc ER |
6 | Source0: http://duplicati.googlecode.com/files/Duplicati%20%{version}.tgz?/Duplicati-%{version}.tgz |
7 | # Source0-md5: 4980c4f6c373387e4452a983b235f7f3 | |
8 | Group: Applications | |
9 | URL: http://www.duplicati.com/ | |
10 | BuildRequires: rpmbuild(macros) >= 1.596 | |
ed76ea7e AM |
11 | Requires: bash |
12 | Requires: desktop-file-utils | |
7655f7fc ER |
13 | Requires: gtk-update-icon-cache |
14 | Requires: hicolor-icon-theme | |
ed76ea7e AM |
15 | Requires: mono(System) |
16 | Requires: mono(System.Web) | |
17 | Requires: mono(System.Windows.Forms) | |
7655f7fc | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ed76ea7e | 19 | |
7655f7fc | 20 | %define _appdir %{_prefix}/lib/%{name} |
ed76ea7e AM |
21 | |
22 | %description | |
23 | Duplicati is a free backup client that securely stores encrypted, | |
24 | incremental, compressed backups on cloud storage services and remote | |
25 | file servers. It supports targets like Amazon S3, Windows Live | |
26 | SkyDrive, Rackspace Cloud Files or WebDAV, SSH, FTP (and many more). | |
27 | ||
28 | Duplicati has built-in AES-256 encryption and backups be can signed | |
29 | using GNU Privacy Guard. A built-in scheduler makes sure that backups | |
30 | are always up-to-date. Last but not least, Duplicati provides various | |
31 | options and tweaks like filters, deletion rules, transfer and | |
32 | bandwidth options to run backups for specific purposes. | |
33 | ||
34 | %prep | |
7655f7fc | 35 | %setup -q -c |
ed76ea7e | 36 | |
7655f7fc | 37 | # for files/doc declaration: |
ed76ea7e AM |
38 | mv usr/share/doc/duplicati/README . |
39 | rm usr/share/doc/duplicati/changelog.Debian.gz | |
40 | mv usr/share/doc/duplicati/copyright . | |
41 | mv usr/share/doc/duplicati/changelog.gz . | |
7655f7fc ER |
42 | rmdir usr/share/doc/duplicati usr/share/doc |
43 | ||
44 | rm -r install | |
45 | rm usr/share/pixmaps/duplicati.xpm | |
46 | ||
47 | gzip -d changelog.gz | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT | |
52 | cp -a usr $RPM_BUILD_ROOT | |
ed76ea7e AM |
53 | |
54 | # refined desktop file | |
7655f7fc | 55 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
ed76ea7e AM |
56 | cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop |
57 | [Desktop Entry] | |
58 | Categories=System;Archiving;FileTools;Filesystem; | |
59 | Type=Application | |
60 | Name=Duplicati | |
61 | GenericName= Backup tool | |
62 | GenericName[es]= Copias de respaldo | |
63 | Comment= Create and maintain local and remote backup copies of your data | |
64 | Comment[es]= Cree y mantenga copias de seguridad locales y remotas | |
65 | Exec=duplicati | |
66 | Icon=duplicati | |
67 | Terminal=false | |
68 | StartupNotify=true | |
69 | EOF | |
70 | ||
71 | desktop-file-install $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
72 | ||
7655f7fc ER |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
ed76ea7e AM |
75 | |
76 | %post | |
7655f7fc ER |
77 | %update_desktop_database |
78 | %update_icon_cache hicolor | |
ed76ea7e AM |
79 | |
80 | %postun | |
7655f7fc ER |
81 | %update_desktop_database |
82 | %update_icon_cache hicolor | |
ed76ea7e AM |
83 | |
84 | %files | |
85 | %defattr(644,root,root,755) | |
7655f7fc ER |
86 | %doc README copyright changelog |
87 | %attr(755,root,root) %{_bindir}/duplicati | |
88 | %attr(755,root,root) %{_bindir}/duplicati-commandline | |
89 | %{_desktopdir}/duplicati.desktop | |
90 | %{_pixmapsdir}/duplicati.png | |
91 | %dir %{_appdir} | |
92 | %{_appdir}/*.txt | |
93 | %{_appdir}/*.dll | |
94 | %{_appdir}/*.exe | |
95 | %{_appdir}/*.exe.config | |
96 | %{_appdir}/*.xml | |
97 | %{_appdir}/SQLite | |
98 | %{_appdir}/Tools | |
99 | %{_appdir}/alphavss | |
100 | %{_appdir}/licenses | |
101 | %dir %{_appdir}/lvm-scripts | |
102 | %attr(755,root,root) %{_appdir}/lvm-scripts/*.sh | |
103 | ||
104 | %lang(de) %{_appdir}/de-DE | |
105 | %lang(es) %{_appdir}/es-ES | |
106 | %lang(fr) %{_appdir}/fr-FR | |
107 | %lang(it) %{_appdir}/it-IT | |
108 | %lang(pt_BR) %{_appdir}/pt-BR | |
109 | %lang(ru) %{_appdir}/ru-RU | |
110 | %lang(tr_TR) %{_appdir}/tr-TR | |
111 | %lang(zh_CN) %{_appdir}/zh-CN | |
112 | %lang(zh_HK) %{_appdir}/zh-HK | |
113 | %lang(da_DK) %{_appdir}/da-DK |