/[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 1065511 - (show annotations) (download)
Sun Nov 6 11:02:14 2016 UTC (7 years, 5 months ago) by daviddavid
Original Path: cauldron/nextcloud-client/current/SPECS/nextcloud-client.spec
File size: 6281 byte(s)
- disable skip rpath
- filter out bogus requires on devel(libocsync)

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.2.4
8 Release: %mkrel 5
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/v%{version}.tar.gz
16 Source1: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.tar.xz
17 Source2: %{name}.appdata.xml
18 Patch0: %{name}-2.2.3-syslibs.patch
19 Patch1: %{name}-2.2.4-appshortname.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 #------------------------------------------------------------------------------
94
95 %package dolphin
96 Summary: Dolphin overlay icons
97 Requires: dolphin
98 Requires: %{name} = %{version}-%{release}
99
100 %description dolphin
101 The nextcloud desktop client dolphin extension.
102
103 %files dolphin
104 %{_kf5_libdir}/libnextclouddolphinpluginhelper.so
105 %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
106 %{_qt5_plugindir}/nextclouddolphinactionplugin.so
107 %{_kf5_services}/nextclouddolphinactionplugin.desktop
108
109 #------------------------------------------------------------------------------
110
111 %define nextcloudsync_major 0
112 %define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major
113
114 %package -n %libnextcloudsync
115 Summary: The Nextcloud Client Libraries
116 Group: System/Libraries
117 # From owncloud-client
118 Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
119
120 %description -n %libnextcloudsync
121 The Nextcloud Client Libraries.
122
123 %files -n %libnextcloudsync
124 %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
125 %{_libdir}/libnextcloudsync.so.%version
126
127 #------------------------------------------------------------------------------
128
129 %define libocsync_major 0
130 %define liblibocsync %mklibname ocsync %libocsync_major
131
132 %package -n %liblibocsync
133 Summary: The Nextcloud Client Libraries
134 Group: System/Libraries
135 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
136 # From owncloud-client
137 Obsoletes: %{_lib}ocsync2 < 2.2.4-2
138
139 %description -n %liblibocsync
140 The Nextcloud Client Libraries.
141
142
143 %files -n %liblibocsync
144 %dir %_libdir/nextcloud
145 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
146 %_libdir/nextcloud/libocsync.so.%{version}
147
148 #------------------------------------------------------------------------------
149
150 %define develname %mklibname %{name} -d
151
152 %package -n %{develname}
153 Summary: Development files for nextcloud-client
154 License: LGPLv2+
155 Requires: %libnextcloudsync = %{version}-%{release}
156 Requires: %liblibocsync = %{version}-%{release}
157 Provides: %{name}-static = %{version}-%{release}
158 Provides: %{name}-devel = %{version}-%{release}
159 Obsoletes: %{name}-devel < 2.2.4-4
160 # From owncloud-client
161 Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2
162
163 %description -n %{develname}
164 Development headers for use of the nextcloud-client library.
165
166 %files -n %{develname}
167 %{_libdir}/libnextcloudsync.so
168 %{_includedir}/nextcloudsync/
169 %{_libdir}/libnextcloudsync.so
170 %{_libdir}/nextcloud/libocsync.so
171
172 #------------------------------------------------------------------------------
173
174 %prep
175 %setup -q -n client_theming-%{version}
176 %setup -T -D -a 1 -n client_theming-%{version}
177 rm -Rf client
178 mv owncloudclient-%{version} client
179 %patch0 -p1
180 %patch1 -p1
181 rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
182
183 # fix nextcloud desktop icon name (mga#19473#c6)
184 sed -i 's/^\(Icon\(\[.*\]\)*=\).*$/\1@APPLICATION_NAME@/' client/mirall.desktop.in
185
186 %build
187 #see https://www.openssl.org/docs/manmaster/crypto/OpenSSL_add_all_algorithms.html
188 sed -i "s#SSLeay_add_all_algorithms#//OPENSSL_init_crypto#g" client/src/3rdparty/certificates/p12topem.cpp
189
190 %cmake_kf5 \
191 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
192 -DOEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
193 %make_build
194
195
196 %install
197 %make_install -C build
198
199 %find_lang client
200 mkdir -p %{buildroot}%{_datadir}/appdata/
201 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
202
203
204 %check
205 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
206

  ViewVC Help
Powered by ViewVC 1.1.30