-
Notifications
You must be signed in to change notification settings - Fork 3
/
synology-drive.spec
103 lines (86 loc) · 4.27 KB
/
synology-drive.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
%global synology_version 3.5.1
%global synology_release 16102
Name: synology-drive
Version: %{synology_version}
Release: %{synology_release}%{?dist}
Summary: Unofficial RPM build of Synology Drive Client
License: Multiple, see https://www.synology.com/en-global/company/legal/terms_EULA
URL: https://www.synology.com/
Source0: https://global.synologydownload.com/download/Utility/SynologyDriveClient/%{synology_version}-%{synology_release}/Ubuntu/Installer/synology-drive-client-%{synology_release}.x86_64.deb
AutoReqProv: no
Requires: glibc
Requires: glib2
Requires: gtk2
# For Nautilus integration
Recommends: nautilus
Recommends: nautilus-extensions
# For tray icon on GNOME
Recommends: gnome-shell-extension-appindicator
Conflicts: synology-drive-noextra
%description
Synology Drive Client allows you to sync your computers with Synology NAS and back up the computer to the NAS.
%prep
ar x %{_sourcedir}/synology-drive-client-%{synology_release}.x86_64.deb data.tar.xz
tar xf data.tar.xz
# disable auto update
sed -i "s|https://utyupdate.synology.com||" opt/Synology/SynologyDrive/package/cloudstation/conf/update.conf
sed -i "s|/getUpdate||" opt/Synology/SynologyDrive/package/cloudstation/conf/update.conf
%install
export QA_RPATHS=$(( 0x0002|0x0020 )) # ignore rpath error since 3.1.0-12920
# software
mkdir -p %{buildroot}/opt/Synology/
cp -rp opt/Synology/SynologyDrive/ %{buildroot}/opt/Synology/
# executable
mkdir -p %{buildroot}%{_bindir}/
install -Dm 755 usr/bin/synology-drive -t %{buildroot}%{_bindir}/
# nautilus
mkdir -p %{buildroot}%{_libdir}/nautilus/extensions-3.0/
install -Dm 644 usr/lib/nautilus/extensions-3.0/libnautilus-drive-extension.so -t %{buildroot}%{_libdir}/nautilus/extensions-3.0/
mkdir -p %{buildroot}%{_libdir}/nautilus/extensions-4/
install -Dm 644 usr/lib/nautilus/extensions-4/libnautilus-drive-extension-4.so -t %{buildroot}%{_libdir}/nautilus/extensions-4/
# desktop
mkdir -p %{buildroot}%{_datarootdir}/applications/
install -Dm 644 usr/share/applications/synology-drive.desktop -t %{buildroot}%{_datarootdir}/applications/
mkdir -p %{buildroot}%{_datarootdir}/icons/
cp -rp usr/share/icons/hicolor/ %{buildroot}%{_datarootdir}/icons/
%files
%license opt/Synology/SynologyDrive/LICENSE.txt
%doc usr/share/doc/synology-drive/changelog.gz
/opt/Synology/SynologyDrive/
%{_bindir}/synology-drive
%{_libdir}/nautilus/extensions-3.0/libnautilus-drive-extension.so
%{_libdir}/nautilus/extensions-4/libnautilus-drive-extension-4.so
%{_datarootdir}/applications/synology-drive.desktop
%{_datarootdir}/icons/hicolor/16x16/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/24x24/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/32x32/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/48x48/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/64x64/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/128x128/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/256x256/apps/synology-drive.png
%{_datarootdir}/icons/hicolor/512x512/apps/synology-drive.png
%changelog
* Wed Nov 06 2024 Maxime Dirksen <dev@emixam.be> - 3.5.1-16102
- Version 3.5.1-16102 of Synology Drive Client
* Mon Aug 26 2024 Maxime Dirksen <dev@emixam.be> - 3.5.1-16101
- Version 3.5.1-16101 of Synology Drive Client
* Wed Apr 10 2024 Maxime Dirksen <dev@emixam.be> - 3.5.0-16084
- Version 3.5.0-16084 of Synology Drive Client
* Tue Oct 31 2023 Maxime Dirksen <dev@emixam.be> - 3.4.0-15724
- Version 3.4.0-15724 of Synology Drive Client
* Wed Oct 11 2023 Maxime Dirksen <dev@emixam.be> - 3.4.0-15721
- Version 3.4.0-15721 of Synology Drive Client
* Sat Mar 25 2023 Maxime Dirksen <dev@emixam.be> - 3.3.0-15082
- Version 3.3.0-15082 of Synology Drive Client
* Tue Dec 20 2022 Maxime Dirksen <dev@emixam.be> - 3.2.1-13271
- Version 3.2.1-13271 of Synology Drive Client
* Thu Nov 24 2022 Maxime Dirksen <dev@emixam.be> - 3.2.0-13258
- Version 3.2.0-13258 of Synology Drive Client
* Wed Oct 26 2022 Maxime Dirksen <dev@emixam.be> - 3.2.0-13238
- Version 3.2.0-13238 of Synology Drive Client
* Thu Apr 28 2022 Maxime Dirksen <dev@emixam.be> - 3.1.0-12923
- Version 3.1.0-12923 of Synology Drive Client
* Thu Apr 7 2022 Maxime Dirksen <dev@emixam.be> - 3.1.0-12920
- Version 3.1.0-12920 of Synology Drive Client
* Fri Jan 21 2022 Maxime dirksen <dev@emixam.be> - 3.0.3-12689
- Version 3.0.3-12689 of Synology Drive Client