-
Notifications
You must be signed in to change notification settings - Fork 274
/
thunar-megasync.spec
67 lines (51 loc) · 1.61 KB
/
thunar-megasync.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
Name: thunar-megasync
Version: EXT_VERSION
Release: %(cat MEGA_BUILD_ID || echo "1").1
Summary: MEGA Desktop App plugin for Thunar
License: Freeware
Group: Applications/Others
Url: https://mega.nz
Source0: thunar-megasync_%{version}.tar.gz
Vendor: MEGA Limited
Packager: MEGA Linux Team <linux@mega.co.nz>
%if 0%{?suse_version}
BuildRequires: glib2-devel, thunar-devel, libqt5-qtbase-devel
%endif
%if 0%{?fedora}
BuildRequires: Thunar-devel
BuildRequires: qt5-qtbase-devel
%global debug_package %{nil}
%endif
%if 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: Thunar-devel
%if 0%{?rhel_version} >= 800 || 0%{?centos_version} >=800
BuildRequires: qt5-qtbase-devel
%else
BuildRequires: qt-devel
%endif
%endif
Requires: thunar, megasync >= 3.5
%description
- Easily see and track your sync statuses.
- Send files and folders to MEGA.
- Share your synced files and folders with anyone by creating links.
- View files in MEGA's browser (webclient).
%prep
%setup -q
%build
export DESKTOP_DESTDIR=$RPM_BUILD_ROOT/usr
qmake-qt5 || qmake-qt4 || qmake
%if 0%{?fedora_version} >= 27 || 0%{?centos_version} >=800
#tweak to have debug symbols to stripe: for some reason they seem gone by default in Fedora 27,
# causing "gdb-add-index: No index was created for ..." which lead to error "Empty %files file ....debugsourcefiles.list"
sed "s# gcc# gcc -g#g" -i Makefile
%endif
make
%install
make install
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files
%defattr(-,root,root)
%(pkg-config --variable=extensionsdir thunarx-3 || pkg-config --variable=extensionsdir thunarx-2)/libMEGAShellExtThunar.so*
%changelog