/[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 1130020 - (show annotations) (download)
Mon Jul 24 10:56:47 2017 UTC (6 years, 8 months ago) by guillomovitch
Original Path: cauldron/nextcloud-client/current/SPECS/nextcloud-client.spec
File size: 6286 byte(s)
new version 2.3.2
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.3.2
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/client_theming/archive/client_theming-%{version}.tar.gz
16 Source1: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.tar.xz
17 Source2: %{name}.appdata.xml
18 Patch0: %{name}-2.3.2-syslibs.patch
19 Patch1: %{name}-icon.patch
20
21 BuildRequires: cmake
22 BuildRequires: desktop-file-utils
23 BuildRequires: doxygen
24 BuildRequires: pkgconfig(neon)
25 BuildRequires: pkgconfig(openssl)
26 BuildRequires: python-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
38 BuildRequires: pkgconfig(Qt5Xml)
39 BuildRequires: pkgconfig(Qt5Concurrent)
40 BuildRequires: pkgconfig(Qt5WebKitWidgets)
41 BuildRequires: pkgconfig(Qt5DBus)
42 BuildRequires: pkgconfig(Qt5Help)
43
44 Provides: owncloud-client = %version-%release
45 Obsoletes: owncloud-client < 2.2.4-2
46
47 %description
48 Nextcloud-client enables you to connect to your private Nextcloud Server.
49 With it you can create folders in your home directory, and keep the contents
50 of those folders synced with your Nextcloud server. Simply copy a file into
51 the directory and the Nextcloud Client does the rest.
52
53 %files
54 %{_bindir}/nextcloud
55 %{_bindir}/nextcloudcmd
56 %{_datadir}/applications/nextcloud.desktop
57 %dir %{_datadir}/nextcloud
58 %{_datadir}/nextcloud/i18n/
59 %{_datadir}/icons/hicolor/*/apps/*
60 %{_datadir}/appdata/%{name}.appdata.xml
61 %dir %{_sysconfdir}/Nextcloud
62 %{_sysconfdir}/Nextcloud/sync-exclude.lst
63
64 #------------------------------------------------------------------------------
65
66 %package nautilus
67 Summary: nextcloud client nautilus extension
68 Requires: nautilus
69 Requires: nautilus-python
70 Requires: %{name} = %{version}-%{release}
71
72 %description nautilus
73 The nextcloud desktop client nautilus extension.
74
75 %files nautilus
76 %{_datadir}/nautilus-python/extensions/*
77
78 #------------------------------------------------------------------------------
79
80 %package nemo
81 Summary: Nemo overlay icons
82 Requires: nemo
83 Requires: nemo-python
84 Requires: %{name} = %{version}-%{release}
85
86 %description nemo
87 This package provides overlay icons to visualize the sync state
88 in the nemo file manager.
89
90 %files nemo
91 %{_datadir}/nemo-python/extensions/*
92
93 %package caja
94 Summary: Caja overlay icons
95 Requires: caja
96 Requires: python-caja
97 Requires: %{name}%{?_isa} = %{version}-%{release}
98
99 %description caja
100 This package provides overlay icons to visualize the sync state
101 in the caja file manager.
102
103 %files caja
104 %{_datadir}/caja-python/extensions/*
105 #------------------------------------------------------------------------------
106
107 %package dolphin
108 Summary: Dolphin overlay icons
109 Requires: dolphin
110 Requires: %{name} = %{version}-%{release}
111
112 %description dolphin
113 The nextcloud desktop client dolphin extension.
114
115 %files dolphin
116 %{_kf5_libdir}/libnextclouddolphinpluginhelper.so
117 %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
118 %{_qt5_plugindir}/nextclouddolphinactionplugin.so
119 %{_kf5_services}/nextclouddolphinactionplugin.desktop
120
121 #------------------------------------------------------------------------------
122
123 %define nextcloudsync_major 0
124 %define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major
125
126 %package -n %libnextcloudsync
127 Summary: The Nextcloud Client Libraries
128 Group: System/Libraries
129 # From owncloud-client
130 Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
131
132 %description -n %libnextcloudsync
133 The Nextcloud Client Libraries.
134
135 %files -n %libnextcloudsync
136 %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
137 %{_libdir}/libnextcloudsync.so.%version
138
139 #------------------------------------------------------------------------------
140
141 %define libocsync_major 0
142 %define liblibocsync %mklibname ocsync %libocsync_major
143
144 %package -n %liblibocsync
145 Summary: The Nextcloud Client Libraries
146 Group: System/Libraries
147 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
148 # From owncloud-client
149 Obsoletes: %{_lib}ocsync2 < 2.2.4-2
150
151 %description -n %liblibocsync
152 The Nextcloud Client Libraries.
153
154
155 %files -n %liblibocsync
156 %dir %_libdir/nextcloud
157 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
158 %_libdir/nextcloud/libocsync.so.%{version}
159
160 #------------------------------------------------------------------------------
161
162 %define develname %mklibname %{name} -d
163
164 %package -n %{develname}
165 Summary: Development files for nextcloud-client
166 License: LGPLv2+
167 Requires: %libnextcloudsync = %{version}-%{release}
168 Requires: %liblibocsync = %{version}-%{release}
169 Provides: %{name}-static = %{version}-%{release}
170 Provides: %{name}-devel = %{version}-%{release}
171 Obsoletes: %{name}-devel < 2.2.4-4
172 # From owncloud-client
173 Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2
174
175 %description -n %{develname}
176 Development headers for use of the nextcloud-client library.
177
178 %files -n %{develname}
179 %{_libdir}/libnextcloudsync.so
180 %{_includedir}/nextcloudsync/
181 %{_libdir}/libnextcloudsync.so
182 %{_libdir}/nextcloud/libocsync.so
183
184 #------------------------------------------------------------------------------
185
186 %prep
187 %setup -q -n client_theming-%{version}
188 %setup -q -T -D -a 1 -n client_theming-%{version}
189 rm -Rf client
190 mv owncloudclient-%{version} client
191 pushd client
192 %patch0 -p1
193 popd
194 %patch1 -p1
195 rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
196
197 %build
198
199 %cmake_kf5 \
200 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
201 -DOEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
202 %make_build
203
204
205 %install
206 %make_install -C build
207
208 %find_lang client
209 mkdir -p %{buildroot}%{_datadir}/appdata/
210 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
211
212
213 %check
214 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
215

  ViewVC Help
Powered by ViewVC 1.1.30