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