1 Summary: Easy automated syncing between your computers and your MEGA Cloud Drive
7 Source0: https://github.com/meganz/MEGAsync/archive/v%{version}_Linux/%{name}-%{version}.tar.gz
8 Source1: https://github.com/meganz/sdk/archive/v3.3.3/%{name}-sdk-3.3.3.tar.gz
9 Source2: https://download.libsodium.org/libsodium/releases/libsodium-1.0.12.tar.gz
11 BuildRequires: Qt5Core-devel
12 BuildRequires: Qt5Svg-devel
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: c-ares-devel
16 BuildRequires: cryptopp-devel
17 BuildRequires: desktop-file-utils
18 BuildRequires: hicolor-icon-theme
19 BuildRequires: libmediainfo-devel
20 BuildRequires: libstdc++-devel
21 BuildRequires: libtool
22 BuildRequires: libzen-devel
23 BuildRequires: openssl-devel
24 BuildRequires: sqlite3-devel
27 BuildRequires: zlib-devel
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 Secure: Your data is encrypted end to end. Nobody can intercept it
32 while in storage or in transit.
34 Flexible: Sync any folder from your PC to any folder in the cloud.
35 Sync any number of folders in parallel.
37 Fast: Take advantage of MEGA's high-powered infrastructure and
38 multi-connection transfers.
40 Generous: Store up to 50 GB for free!
43 %setup -q -n MEGAsync-%{version}_Linux -a1
44 mv sdk-*/* src/MEGASync/mega
45 install -d src/archives
46 ln -s %{SOURCE2} src/archives
48 # use system Crypto++ header files
49 #rm -r src/MEGASync/mega/bindings/qt/3rdparty/include/cryptopp
52 export DESKTOP_DESTDIR=$RPM_BUILD_ROOT%{_prefix}
57 qmake-qt5 DESTDIR=$RPM_BUILD_ROOT%{_bindir} THE_RPM_BUILD_ROOT=$RPM_BUILD_ROOT
58 lrelease-qt5 MEGASync/MEGASync.pro
63 rm -rf $RPM_BUILD_ROOT
64 %{__make} install -C src \
65 DESTDIR=$RPM_BUILD_ROOT
67 %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/ubuntu-mono-dark
68 %{__rm} $RPM_BUILD_ROOT%{_docdir}/megasync/distro
69 %{__rm} $RPM_BUILD_ROOT%{_docdir}/megasync/version
71 desktop-file-install \
72 --add-category="Network" \
73 --dir $RPM_BUILD_ROOT%{_desktopdir} \
74 $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
77 rm -rf $RPM_BUILD_ROOT
80 %defattr(644,root,root,755)
81 %doc README.md CREDITS.md LICENCE.md
82 %attr(755,root,root) %{_bindir}/%{name}
83 %{_desktopdir}/megasync.desktop
84 %{_iconsdir}/hicolor/*/*/mega.png
85 %{_iconsdir}/hicolor/scalable/status/mega*.svg