]>
Commit | Line | Data |
---|---|---|
92f949c6 JK |
1 | |
2 | # the names of the tags (used in source filenames) are insane | |
3 | %define tag_code canary | |
4 | %define tag_date 2018-12-29 | |
5 | ||
ed76ea7e AM |
6 | Summary: Backup client for encrypted online backups |
7 | Name: duplicati | |
92f949c6 JK |
8 | Version: 2.0.4.10 |
9 | Release: 1 | |
ed76ea7e | 10 | License: LGPL v2+ |
92f949c6 JK |
11 | Source0: https://github.com/duplicati/duplicati/releases/download/v%{version}-%{version}_%{tag_code}_%{tag_date}/duplicati-%{version}_%{tag_code}_%{tag_date}.zip |
12 | # Source0-md5: 5d5443e04a4a4fe462f24fb2f989ac08 | |
13 | Source1: duplicati.sh | |
14 | Source2: duplicati-cli.sh | |
15 | Source3: duplicati-server.sh | |
16 | Source4: duplicati.svg | |
17 | Source5: duplicati.png | |
18 | Source6: duplicati.desktop | |
19 | Source7: duplicati.service | |
7655f7fc ER |
20 | Group: Applications |
21 | URL: http://www.duplicati.com/ | |
75c3001d | 22 | BuildRequires: rpm-pythonprov |
7655f7fc | 23 | BuildRequires: rpmbuild(macros) >= 1.596 |
ed76ea7e AM |
24 | Requires: bash |
25 | Requires: desktop-file-utils | |
7655f7fc ER |
26 | Requires: gtk-update-icon-cache |
27 | Requires: hicolor-icon-theme | |
92f949c6 JK |
28 | Requires: libappindicator-gtk2 |
29 | Requires: mono-addins-gui | |
30 | Requires: sqlite3 | |
31 | BuildArch: noarch | |
7655f7fc | 32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ed76ea7e | 33 | |
ed76ea7e | 34 | %description |
92f949c6 JK |
35 | Duplicati is a free, open source, backup client that securely stores encrypted, |
36 | incremental, compressed backups on cloud storage services and remote file | |
37 | servers. It works with: Amazon S3, OneDrive, Google Drive, Rackspace Cloud | |
38 | Files, HubiC, Backblaze (B2), Amazon Cloud Drive (AmzCD), Swift / OpenStack, | |
39 | WebDAV, SSH (SFTP), FTP, and more! | |
ed76ea7e AM |
40 | |
41 | %prep | |
92f949c6 | 42 | %setup -qc |
ed76ea7e | 43 | |
92f949c6 JK |
44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | install -d $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_bindir},%{_iconsdir}/hicolor/{48x48,scalable}/apps,%{_desktopdir},%{systemdunitdir}} | |
7655f7fc | 47 | |
92f949c6 | 48 | %{__cp} -a * $RPM_BUILD_ROOT%{_datadir}/%{name} |
7655f7fc | 49 | |
92f949c6 JK |
50 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/duplicati |
51 | install %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/duplicati-cli | |
52 | install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/duplicati-server | |
7655f7fc | 53 | |
92f949c6 JK |
54 | install -m644 %{SOURCE4} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/scalable/apps |
55 | install -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_iconsdir}/hicolor/48x48/apps | |
56 | install -m644 %{SOURCE6} $RPM_BUILD_ROOT%{_desktopdir} | |
ed76ea7e | 57 | |
92f949c6 | 58 | #install -m644 %{SOURCE7} $RPM_BUILD_ROOT%{systemdunitdir} |
ed76ea7e | 59 | |
92f949c6 JK |
60 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/OSX* |
61 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/win-tools | |
62 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/%{name}/run-script-example.* | |
ed76ea7e | 63 | |
7655f7fc ER |
64 | %clean |
65 | rm -rf $RPM_BUILD_ROOT | |
ed76ea7e AM |
66 | |
67 | %post | |
7655f7fc ER |
68 | %update_desktop_database |
69 | %update_icon_cache hicolor | |
ed76ea7e AM |
70 | |
71 | %postun | |
7655f7fc ER |
72 | %update_desktop_database |
73 | %update_icon_cache hicolor | |
ed76ea7e AM |
74 | |
75 | %files | |
76 | %defattr(644,root,root,755) | |
92f949c6 | 77 | %doc *.txt run-script-example.sh |
7655f7fc | 78 | %attr(755,root,root) %{_bindir}/duplicati |
92f949c6 JK |
79 | %attr(755,root,root) %{_bindir}/duplicati-cli |
80 | %attr(755,root,root) %{_bindir}/duplicati-server | |
7655f7fc | 81 | %{_desktopdir}/duplicati.desktop |
92f949c6 JK |
82 | %{_iconsdir}/hicolor/48x48/apps/duplicati.png |
83 | %{_iconsdir}/hicolor/scalable/apps/duplicati.svg | |
84 | %dir %{_datadir}/%{name} | |
85 | %{_datadir}/%{name}/*.dll | |
86 | %{_datadir}/%{name}/*.dll.config | |
87 | %{_datadir}/%{name}/*.exe | |
88 | %{_datadir}/%{name}/*.exe.config | |
89 | %{_datadir}/%{name}/*.txt | |
90 | %{_datadir}/%{name}/autoupdate.manifest | |
91 | %{_datadir}/%{name}/SQLite | |
92 | %{_datadir}/%{name}/SVGIcons | |
93 | %{_datadir}/%{name}/alphavss | |
94 | %{_datadir}/%{name}/licenses | |
95 | %{_datadir}/%{name}/utility-scripts | |
96 | %{_datadir}/%{name}/webroot | |
97 | %dir %{_datadir}/%{name}/lvm-scripts | |
98 | %attr(755,root,root) %{_datadir}/%{name}/lvm-scripts/*.sh |