1 |
%global _hardened_build 1 |
2 |
%define _cmake_skip_rpath %nil |
3 |
# exclude devel(libocsync) |
4 |
%global __requires_exclude ^(devel\\(libocsync.*)$ |
5 |
|
6 |
%define nextcloudsync_major 0 |
7 |
%define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major |
8 |
|
9 |
%define libocsync_major 0 |
10 |
%define liblibocsync %mklibname ocsync %libocsync_major |
11 |
|
12 |
Name: nextcloud-client |
13 |
Version: 3.1.1 |
14 |
Release: %mkrel 1 |
15 |
Summary: The Nextcloud Client |
16 |
Group: Archiving/Backup |
17 |
|
18 |
# -libs are LGPLv2+, rest GPLv2 |
19 |
License: LGPLv2+ and GPLv2 |
20 |
Url: https://nextcloud.com/install/#install-clients |
21 |
Source0: https://github.com/nextcloud/desktop/archive/desktop-%{version}.tar.gz |
22 |
Source2: %{name}.appdata.xml |
23 |
|
24 |
Recommends: libgnome-keyring |
25 |
Requires: %{libnextcloudsync} = %{version}-%{release} |
26 |
Requires: %{liblibocsync} = %{version}-%{release} |
27 |
Requires: qtquickcontrols2 |
28 |
|
29 |
BuildRequires: desktop-file-utils |
30 |
BuildRequires: doxygen |
31 |
BuildRequires: appstream-util |
32 |
BuildRequires: inotify-tools |
33 |
BuildRequires: python3dist(sphinx) |
34 |
BuildRequires: pkgconfig(neon) |
35 |
BuildRequires: pkgconfig(openssl) |
36 |
BuildRequires: pkgconfig(cloudproviders) |
37 |
BuildRequires: pkgconfig(sqlite3) |
38 |
BuildRequires: kf5-macros |
39 |
BuildRequires: cmake(KF5KIO) |
40 |
BuildRequires: cmake(Qt5Keychain) |
41 |
BuildRequires: qtsingleapplication-qt5-devel |
42 |
BuildRequires: pkgconfig(Qt5Core) |
43 |
BuildRequires: pkgconfig(Qt5Gui) |
44 |
BuildRequires: pkgconfig(Qt5Network) |
45 |
BuildRequires: pkgconfig(Qt5Concurrent) |
46 |
BuildRequires: pkgconfig(Qt5WebKitWidgets) |
47 |
BuildRequires: pkgconfig(Qt5WebEngineWidgets) |
48 |
BuildRequires: pkgconfig(Qt5DBus) |
49 |
BuildRequires: pkgconfig(Qt5Help) |
50 |
BuildRequires: pkgconfig(Qt5Xml) |
51 |
BuildRequires: pkgconfig(Qt5QuickControls2) |
52 |
BuildRequires: pkgconfig(Qt5Qml) |
53 |
Provides: owncloud-client = %version-%release |
54 |
Obsoletes: owncloud-client < 2.2.4-2 |
55 |
|
56 |
%description |
57 |
Nextcloud-client enables you to connect to your private Nextcloud Server. |
58 |
With it you can create folders in your home directory, and keep the contents |
59 |
of those folders synced with your Nextcloud server. Simply copy a file into |
60 |
the directory and the Nextcloud Client does the rest. |
61 |
|
62 |
%files |
63 |
%{_bindir}/nextcloud |
64 |
%{_bindir}/nextcloudcmd |
65 |
%{_datadir}/applications/com.nextcloud.desktopclient.nextcloud.desktop |
66 |
%dir %{_datadir}/nextcloud |
67 |
%{_datadir}/nextcloud/i18n/ |
68 |
%{_datadir}/icons/hicolor/*/apps/* |
69 |
%{_datadir}/appdata/%{name}.appdata.xml |
70 |
%dir %{_sysconfdir}/Nextcloud |
71 |
%{_sysconfdir}/Nextcloud/sync-exclude.lst |
72 |
%{_datadir}/cloud-providers/com.nextcloudgmbh.Nextcloud.ini |
73 |
%{_datadir}/dbus-1/services/com.nextcloudgmbh.Nextcloud.service |
74 |
|
75 |
%package nautilus |
76 |
Summary: nextcloud client nautilus extension |
77 |
Requires: nautilus |
78 |
Requires: nautilus-python |
79 |
Requires: %{name} = %{version}-%{release} |
80 |
|
81 |
%description nautilus |
82 |
The nextcloud desktop client nautilus extension. |
83 |
|
84 |
%files nautilus |
85 |
%{_datadir}/nautilus-python/extensions/* |
86 |
|
87 |
%package nemo |
88 |
Summary: Nemo overlay icons |
89 |
Requires: nemo |
90 |
Requires: nemo-python |
91 |
Requires: %{name} = %{version}-%{release} |
92 |
|
93 |
%description nemo |
94 |
This package provides overlay icons to visualize the sync state |
95 |
in the nemo file manager. |
96 |
|
97 |
%files nemo |
98 |
%{_datadir}/nemo-python/extensions/* |
99 |
|
100 |
%package caja |
101 |
Summary: Caja overlay icons |
102 |
Requires: caja |
103 |
Requires: python-caja |
104 |
Requires: %{name} = %{version}-%{release} |
105 |
|
106 |
%description caja |
107 |
This package provides overlay icons to visualize the sync state |
108 |
in the caja file manager. |
109 |
|
110 |
%files caja |
111 |
%{_datadir}/caja-python/extensions/* |
112 |
|
113 |
%package dolphin |
114 |
Summary: Dolphin overlay icons |
115 |
Requires: dolphin |
116 |
Requires: %{name} = %{version}-%{release} |
117 |
|
118 |
%description dolphin |
119 |
The nextcloud desktop client dolphin extension. |
120 |
|
121 |
%files dolphin |
122 |
%{_kf5_libdir}/libnextclouddolphinpluginhelper.so |
123 |
%{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so |
124 |
%{_qt5_plugindir}/nextclouddolphinactionplugin.so |
125 |
%{_kf5_services}/nextclouddolphinactionplugin.desktop |
126 |
|
127 |
%package -n %libnextcloudsync |
128 |
Summary: The Nextcloud Client Libraries |
129 |
Group: System/Libraries |
130 |
# From owncloud-client |
131 |
Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2 |
132 |
|
133 |
%description -n %libnextcloudsync |
134 |
The Nextcloud Client Libraries. |
135 |
|
136 |
%files -n %libnextcloudsync |
137 |
%{_libdir}/libnextcloudsync.so.%nextcloudsync_major |
138 |
%{_libdir}/libnextcloudsync.so.%version |
139 |
|
140 |
|
141 |
%package -n %liblibocsync |
142 |
Summary: The Nextcloud Client Libraries |
143 |
Group: System/Libraries |
144 |
Obsoletes: %{_lib}libocsync0 < 2.2.4-4 |
145 |
# From owncloud-client |
146 |
Obsoletes: %{_lib}ocsync2 < 2.2.4-2 |
147 |
|
148 |
%description -n %liblibocsync |
149 |
The Nextcloud Client Libraries. |
150 |
|
151 |
%files -n %liblibocsync |
152 |
%dir %_libdir/nextcloud |
153 |
%_libdir/nextcloud/libocsync.so.%{libocsync_major} |
154 |
%_libdir/nextcloud/libocsync.so.%{version} |
155 |
|
156 |
%define develname %mklibname %{name} -d |
157 |
|
158 |
%package -n %{develname} |
159 |
Summary: Development files for nextcloud-client |
160 |
License: LGPLv2+ |
161 |
Requires: %libnextcloudsync = %{version}-%{release} |
162 |
Requires: %liblibocsync = %{version}-%{release} |
163 |
Provides: %{name}-static = %{version}-%{release} |
164 |
Provides: %{name}-devel = %{version}-%{release} |
165 |
Obsoletes: %{name}-devel < 2.2.4-4 |
166 |
# From owncloud-client |
167 |
Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2 |
168 |
|
169 |
%description -n %{develname} |
170 |
Development headers for use of the nextcloud-client library. |
171 |
|
172 |
%files -n %{develname} |
173 |
%{_libdir}/libnextcloudsync.so |
174 |
%{_includedir}/nextcloudsync/ |
175 |
%{_libdir}/libnextcloudsync.so |
176 |
%{_libdir}/nextcloud/libocsync.so |
177 |
|
178 |
%prep |
179 |
%setup -q -n desktop-%{version} |
180 |
%autopatch -p1 |
181 |
|
182 |
%build |
183 |
|
184 |
%cmake_kf5 \ |
185 |
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \ |
186 |
-DCMAKE_INSTALL_PREFIX=%{_usr} \ |
187 |
-DINOTIFY_LIBRARY="%{_libdir}/libc.so" |
188 |
%cmake_build |
189 |
|
190 |
%install |
191 |
%cmake_install |
192 |
|
193 |
#%find_lang client --with-qt |
194 |
mkdir -p %{buildroot}%{_datadir}/appdata/ |
195 |
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml |
196 |
|
197 |
%check |
198 |
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml |