/[packages]/updates/8/nextcloud-client/current/SPECS/nextcloud-client.spec
ViewVC logotype

Contents of /updates/8/nextcloud-client/current/SPECS/nextcloud-client.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30