]> git.pld-linux.org Git - SPECS.git/blob - megasync.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / megasync.spec
1 Summary:        Easy automated syncing between your computers and your MEGA Cloud Drive
2 Name:           megasync
3 Version:        3.6.0.0
4 Release:        0.1
5 License:        Freeware
6 Group:          Applications
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
10 URL:            https://mega.nz/
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
25 BuildRequires:  unzip
26 BuildRequires:  wget
27 BuildRequires:  zlib-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Secure: Your data is encrypted end to end. Nobody can intercept it
32 while in storage or in transit.
33
34 Flexible: Sync any folder from your PC to any folder in the cloud.
35 Sync any number of folders in parallel.
36
37 Fast: Take advantage of MEGA's high-powered infrastructure and
38 multi-connection transfers.
39
40 Generous: Store up to 50 GB for free!
41
42 %prep
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
47
48 # use system Crypto++ header files
49 #rm -r src/MEGASync/mega/bindings/qt/3rdparty/include/cryptopp
50
51 %build
52 export DESKTOP_DESTDIR=$RPM_BUILD_ROOT%{_prefix}
53
54 cd src
55
56 ./configure -i -z
57 qmake-qt5 DESTDIR=$RPM_BUILD_ROOT%{_bindir} THE_RPM_BUILD_ROOT=$RPM_BUILD_ROOT
58 lrelease-qt5  MEGASync/MEGASync.pro
59
60 %{__make}
61
62 %install
63 rm -rf $RPM_BUILD_ROOT
64 %{__make} install -C src \
65         DESTDIR=$RPM_BUILD_ROOT
66
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
70
71 desktop-file-install \
72         --add-category="Network" \
73         --dir $RPM_BUILD_ROOT%{_desktopdir} \
74         $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
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
This page took 0.090073 seconds and 3 git commands to generate.