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