/[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 1706104 - (show annotations) (download)
Sat Mar 20 18:36:52 2021 UTC (3 years, 1 month ago) by neoclust
File size: 6036 byte(s)
SILENT: Fix BR
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.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/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 BuildRequires: pkgconfig(Qt5WebSockets)
54 Provides: owncloud-client = %version-%release
55 Obsoletes: owncloud-client < 2.2.4-2
56
57 %description
58 Nextcloud-client enables you to connect to your private Nextcloud Server.
59 With it you can create folders in your home directory, and keep the contents
60 of those folders synced with your Nextcloud server. Simply copy a file into
61 the directory and the Nextcloud Client does the rest.
62
63 %files
64 %{_bindir}/nextcloud
65 %{_bindir}/nextcloudcmd
66 %{_datadir}/applications/com.nextcloud.desktopclient.nextcloud.desktop
67 %dir %{_datadir}/nextcloud
68 %{_datadir}/nextcloud/i18n/
69 %{_datadir}/icons/hicolor/*/apps/*
70 %{_datadir}/appdata/%{name}.appdata.xml
71 %dir %{_sysconfdir}/Nextcloud
72 %{_sysconfdir}/Nextcloud/sync-exclude.lst
73 %{_datadir}/cloud-providers/com.nextcloudgmbh.Nextcloud.ini
74 %{_datadir}/dbus-1/services/com.nextcloudgmbh.Nextcloud.service
75
76 %package nautilus
77 Summary: nextcloud client nautilus extension
78 Requires: nautilus
79 Requires: nautilus-python
80 Requires: %{name} = %{version}-%{release}
81
82 %description nautilus
83 The nextcloud desktop client nautilus extension.
84
85 %files nautilus
86 %{_datadir}/nautilus-python/extensions/*
87
88 %package nemo
89 Summary: Nemo overlay icons
90 Requires: nemo
91 Requires: nemo-python
92 Requires: %{name} = %{version}-%{release}
93
94 %description nemo
95 This package provides overlay icons to visualize the sync state
96 in the nemo file manager.
97
98 %files nemo
99 %{_datadir}/nemo-python/extensions/*
100
101 %package caja
102 Summary: Caja overlay icons
103 Requires: caja
104 Requires: python-caja
105 Requires: %{name} = %{version}-%{release}
106
107 %description caja
108 This package provides overlay icons to visualize the sync state
109 in the caja file manager.
110
111 %files caja
112 %{_datadir}/caja-python/extensions/*
113
114 %package dolphin
115 Summary: Dolphin overlay icons
116 Requires: dolphin
117 Requires: %{name} = %{version}-%{release}
118
119 %description dolphin
120 The nextcloud desktop client dolphin extension.
121
122 %files dolphin
123 %{_kf5_libdir}/libnextclouddolphinpluginhelper.so
124 %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
125 %{_qt5_plugindir}/nextclouddolphinactionplugin.so
126 %{_kf5_services}/nextclouddolphinactionplugin.desktop
127
128 %package -n %libnextcloudsync
129 Summary: The Nextcloud Client Libraries
130 Group: System/Libraries
131 # From owncloud-client
132 Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
133
134 %description -n %libnextcloudsync
135 The Nextcloud Client Libraries.
136
137 %files -n %libnextcloudsync
138 %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
139 %{_libdir}/libnextcloudsync.so.%version
140
141
142 %package -n %liblibocsync
143 Summary: The Nextcloud Client Libraries
144 Group: System/Libraries
145 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
146 # From owncloud-client
147 Obsoletes: %{_lib}ocsync2 < 2.2.4-2
148
149 %description -n %liblibocsync
150 The Nextcloud Client Libraries.
151
152 %files -n %liblibocsync
153 %dir %_libdir/nextcloud
154 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
155 %_libdir/nextcloud/libocsync.so.%{version}
156
157 %define develname %mklibname %{name} -d
158
159 %package -n %{develname}
160 Summary: Development files for nextcloud-client
161 License: LGPLv2+
162 Requires: %libnextcloudsync = %{version}-%{release}
163 Requires: %liblibocsync = %{version}-%{release}
164 Provides: %{name}-static = %{version}-%{release}
165 Provides: %{name}-devel = %{version}-%{release}
166 Obsoletes: %{name}-devel < 2.2.4-4
167 # From owncloud-client
168 Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2
169
170 %description -n %{develname}
171 Development headers for use of the nextcloud-client library.
172
173 %files -n %{develname}
174 %{_libdir}/libnextcloudsync.so
175 %{_includedir}/nextcloudsync/
176 %{_libdir}/libnextcloudsync.so
177 %{_libdir}/nextcloud/libocsync.so
178
179 %prep
180 %setup -q -n desktop-%{version}
181 %autopatch -p1
182
183 %build
184
185 %cmake_kf5 \
186 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
187 -DCMAKE_INSTALL_PREFIX=%{_usr} \
188 -DNO_SHIBBOLETH=True \
189 -DINOTIFY_LIBRARY="%{_libdir}/libc.so"
190 %cmake_build
191
192 %install
193 %cmake_install
194
195 #%find_lang client --with-qt
196 mkdir -p %{buildroot}%{_datadir}/appdata/
197 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
198
199 %check
200 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

  ViewVC Help
Powered by ViewVC 1.1.30