]>
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+ | |
6 | URL: http://www.duplicati.com | |
7 | #Source0: http://duplicati.googlecode.com/files/Duplicati%20%{version}.tgz | |
8 | Source0: Duplicati %{version}.tgz | |
9 | ||
10 | Requires: bash | |
11 | Requires: desktop-file-utils | |
12 | Requires: mono(System) | |
13 | Requires: mono(System.Web) | |
14 | Requires: mono(System.Windows.Forms) | |
15 | ||
16 | # we don't want automatic dependencies generation because | |
17 | # precompiled binaries generates weird ones: | |
18 | %global __requires_exclude ^mono.*$ | |
19 | ||
20 | ||
21 | %description | |
22 | Duplicati is a free backup client that securely stores encrypted, | |
23 | incremental, compressed backups on cloud storage services and remote | |
24 | file servers. It supports targets like Amazon S3, Windows Live | |
25 | SkyDrive, Rackspace Cloud Files or WebDAV, SSH, FTP (and many more). | |
26 | ||
27 | Duplicati has built-in AES-256 encryption and backups be can signed | |
28 | using GNU Privacy Guard. A built-in scheduler makes sure that backups | |
29 | are always up-to-date. Last but not least, Duplicati provides various | |
30 | options and tweaks like filters, deletion rules, transfer and | |
31 | bandwidth options to run backups for specific purposes. | |
32 | ||
33 | %prep | |
34 | %setup -q -c -n %{name}-%{version}-bin | |
35 | ||
36 | ||
37 | %build | |
38 | # binary package, nothing to build | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | rm -rf install/ | |
43 | rm -rf usr/share/pixmaps/duplicati.xpm | |
44 | ||
45 | #for files/doc declaration: | |
46 | mv usr/share/doc/duplicati/README . | |
47 | rm usr/share/doc/duplicati/changelog.Debian.gz | |
48 | mv usr/share/doc/duplicati/copyright . | |
49 | mv usr/share/doc/duplicati/changelog.gz . | |
50 | rmdir usr/share/doc/duplicati/ usr/share/doc/ | |
51 | mv usr/ $RPM_BUILD_ROOT | |
52 | ||
53 | # refined desktop file | |
54 | cat <<EOF > $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
55 | [Desktop Entry] | |
56 | Categories=System;Archiving;FileTools;Filesystem; | |
57 | Type=Application | |
58 | Name=Duplicati | |
59 | GenericName= Backup tool | |
60 | GenericName[es]= Copias de respaldo | |
61 | Comment= Create and maintain local and remote backup copies of your data | |
62 | Comment[es]= Cree y mantenga copias de seguridad locales y remotas | |
63 | Exec=duplicati | |
64 | Icon=duplicati | |
65 | Terminal=false | |
66 | StartupNotify=true | |
67 | EOF | |
68 | ||
69 | desktop-file-install $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
70 | ||
71 | ||
72 | %post | |
73 | /bin/%update_icon_cache_post hicolor || : | |
74 | %{_bindir}/gtk-update-icon-cache \ | |
75 | --quiet %{_datadir}/icons/hicolor 2> /dev/null|| : | |
76 | ||
77 | %postun | |
78 | /bin/%update_icon_cache_post hicolor || : | |
79 | %{_bindir}/gtk-update-icon-cache \ | |
80 | --quiet %{_datadir}/icons/hicolor 2> /dev/null|| : | |
81 | ||
82 | %posttrans | |
83 | %{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc README copyright changelog.gz | |
91 | %attr(755,root,root) %{_bindir}/* | |
92 | %{_datadir}/* | |
93 | %{_libdir}/* |