/[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 1357916 - (show annotations) (download)
Fri Jan 18 17:57:57 2019 UTC (5 years, 3 months ago) by guillomovitch
Original Path: cauldron/nextcloud-client/current/SPECS/nextcloud-client.spec
File size: 6360 byte(s)
new version 2.5.1
1 %global _hardened_build 1
2 %define _cmake_skip_rpath %nil
3 # exclude devel(libocsync)
4 %global __requires_exclude ^(devel\\(libocsync.*)$
5
6 Name: nextcloud-client
7 Version: 2.5.1
8 Release: %mkrel 1
9 Summary: The Nextcloud Client
10 Group: Archiving/Backup
11
12 # -libs are LGPLv2+, rest GPLv2
13 License: LGPLv2+ and GPLv2
14 Url: https://nextcloud.com/install/#install-clients
15 Source0: https://github.com/nextcloud/desktop/archive/desktop-%{version}.tar.gz
16 #Source1: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.tar.xz
17 Source2: %{name}.appdata.xml
18 #Patch0: %{name}-2.4.0-syslibs.patch
19 #Patch1: %{name}-icon.patch
20 Patch2: 071709ab5e3366e867dd0b0ea931aa7d6f80f528.patch
21
22 BuildRequires: desktop-file-utils
23 BuildRequires: doxygen
24 BuildRequires: pkgconfig(neon)
25 BuildRequires: pkgconfig(openssl)
26 BuildRequires: python2dist(sphinx)
27 BuildRequires: qtsingleapplication-qt5-devel
28 BuildRequires: appstream-util
29
30 BuildRequires: kf5-macros
31
32 BuildRequires: cmake(KF5KIO)
33
34 BuildRequires: cmake(Qt5Keychain)
35
36 BuildRequires: pkgconfig(sqlite3)
37 BuildRequires: inotify-tools
38
39
40 BuildRequires: pkgconfig(Qt5Core)
41 BuildRequires: pkgconfig(Qt5Gui)
42 BuildRequires: pkgconfig(Qt5Network)
43 BuildRequires: pkgconfig(Qt5Concurrent)
44 BuildRequires: pkgconfig(Qt5WebKitWidgets)
45 BuildRequires: pkgconfig(Qt5WebEngineWidgets)
46 BuildRequires: pkgconfig(Qt5DBus)
47 BuildRequires: pkgconfig(Qt5Help)
48 BuildRequires: pkgconfig(Qt5Xml)
49
50 Provides: owncloud-client = %version-%release
51 Obsoletes: owncloud-client < 2.2.4-2
52
53 %description
54 Nextcloud-client enables you to connect to your private Nextcloud Server.
55 With it you can create folders in your home directory, and keep the contents
56 of those folders synced with your Nextcloud server. Simply copy a file into
57 the directory and the Nextcloud Client does the rest.
58
59 %files
60 %{_bindir}/nextcloud
61 %{_bindir}/nextcloudcmd
62 %{_datadir}/applications/nextcloud.desktop
63 %dir %{_datadir}/nextcloud
64 %{_datadir}/nextcloud/i18n/
65 %{_datadir}/icons/hicolor/*/apps/*
66 %{_datadir}/appdata/%{name}.appdata.xml
67 %dir %{_sysconfdir}/Nextcloud
68 %{_sysconfdir}/Nextcloud/sync-exclude.lst
69
70 #------------------------------------------------------------------------------
71
72 %package nautilus
73 Summary: nextcloud client nautilus extension
74 Requires: nautilus
75 Requires: nautilus-python
76 Requires: %{name} = %{version}-%{release}
77
78 %description nautilus
79 The nextcloud desktop client nautilus extension.
80
81 %files nautilus
82 %{_datadir}/nautilus-python/extensions/*
83
84 #------------------------------------------------------------------------------
85
86 %package nemo
87 Summary: Nemo overlay icons
88 Requires: nemo
89 Requires: nemo-python
90 Requires: %{name} = %{version}-%{release}
91
92 %description nemo
93 This package provides overlay icons to visualize the sync state
94 in the nemo file manager.
95
96 %files nemo
97 %{_datadir}/nemo-python/extensions/*
98
99 %package caja
100 Summary: Caja overlay icons
101 Requires: caja
102 Requires: python-caja
103 Requires: %{name}%{?_isa} = %{version}-%{release}
104
105 %description caja
106 This package provides overlay icons to visualize the sync state
107 in the caja file manager.
108
109 %files caja
110 %{_datadir}/caja-python/extensions/*
111 #------------------------------------------------------------------------------
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 #------------------------------------------------------------------------------
128
129 %define nextcloudsync_major 0
130 %define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major
131
132 %package -n %libnextcloudsync
133 Summary: The Nextcloud Client Libraries
134 Group: System/Libraries
135 # From owncloud-client
136 Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
137
138 %description -n %libnextcloudsync
139 The Nextcloud Client Libraries.
140
141 %files -n %libnextcloudsync
142 %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
143 %{_libdir}/libnextcloudsync.so.%version
144
145 #------------------------------------------------------------------------------
146
147 %define libocsync_major 0
148 %define liblibocsync %mklibname ocsync %libocsync_major
149
150 %package -n %liblibocsync
151 Summary: The Nextcloud Client Libraries
152 Group: System/Libraries
153 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
154 # From owncloud-client
155 Obsoletes: %{_lib}ocsync2 < 2.2.4-2
156
157 %description -n %liblibocsync
158 The Nextcloud Client Libraries.
159
160
161 %files -n %liblibocsync
162 %dir %_libdir/nextcloud
163 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
164 %_libdir/nextcloud/libocsync.so.%{version}
165
166 #------------------------------------------------------------------------------
167
168 %define develname %mklibname %{name} -d
169
170 %package -n %{develname}
171 Summary: Development files for nextcloud-client
172 License: LGPLv2+
173 Requires: %libnextcloudsync = %{version}-%{release}
174 Requires: %liblibocsync = %{version}-%{release}
175 Provides: %{name}-static = %{version}-%{release}
176 Provides: %{name}-devel = %{version}-%{release}
177 Obsoletes: %{name}-devel < 2.2.4-4
178 # From owncloud-client
179 Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2
180
181 %description -n %{develname}
182 Development headers for use of the nextcloud-client library.
183
184 %files -n %{develname}
185 %{_libdir}/libnextcloudsync.so
186 %{_includedir}/nextcloudsync/
187 %{_libdir}/libnextcloudsync.so
188 %{_libdir}/nextcloud/libocsync.so
189
190 #------------------------------------------------------------------------------
191
192 %prep
193 %setup -q -n desktop-%{version}
194 %autopatch -p1
195
196 %build
197
198 %cmake_kf5 \
199 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
200 -DNO_SHIBBOLETH=1 \
201 -DCMAKE_INSTALL_PREFIX=%{_usr} \
202 -DINOTIFY_LIBRARY="%{_libdir}/libc.so"
203 %make_build
204
205
206 %install
207 %make_install -C build
208
209 #%find_lang client --with-qt
210 mkdir -p %{buildroot}%{_datadir}/appdata/
211 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
212
213
214 %check
215 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
216

  ViewVC Help
Powered by ViewVC 1.1.30