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