/[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 1547333 - (show annotations) (download)
Thu Feb 20 20:35:04 2020 UTC (4 years, 2 months ago) by zezinho
Original Path: cauldron/nextcloud-client/current/SPECS/nextcloud-client.spec
File size: 5821 byte(s)
new version
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: 2.6.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}.tar.gz
22 Source2: %{name}.appdata.xml
23
24 Recommends: libgnome-keyring
25 Requires: %{libnextcloudsync} = %{version}-%{release}
26 Requires: %{liblibocsync} = %{version}-%{release}
27
28 BuildRequires: desktop-file-utils
29 BuildRequires: doxygen
30 BuildRequires: appstream-util
31 BuildRequires: inotify-tools
32 BuildRequires: python3dist(sphinx)
33 BuildRequires: pkgconfig(neon)
34 BuildRequires: pkgconfig(openssl)
35 BuildRequires: pkgconfig(cloudproviders)
36 BuildRequires: pkgconfig(sqlite3)
37 BuildRequires: kf5-macros
38 BuildRequires: cmake(KF5KIO)
39 BuildRequires: cmake(Qt5Keychain)
40 BuildRequires: qtsingleapplication-qt5-devel
41 BuildRequires: pkgconfig(Qt5Core)
42 BuildRequires: pkgconfig(Qt5Gui)
43 BuildRequires: pkgconfig(Qt5Network)
44 BuildRequires: pkgconfig(Qt5Concurrent)
45 BuildRequires: pkgconfig(Qt5WebKitWidgets)
46 BuildRequires: pkgconfig(Qt5WebEngineWidgets)
47 BuildRequires: pkgconfig(Qt5DBus)
48 BuildRequires: pkgconfig(Qt5Help)
49 BuildRequires: pkgconfig(Qt5Xml)
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 %{_datadir}/cloud-providers/com.nextcloudgmbh.Nextcloud.ini
70 %{_datadir}/dbus-1/services/com.nextcloudgmbh.Nextcloud.service
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 %package nemo
85 Summary: Nemo overlay icons
86 Requires: nemo
87 Requires: nemo-python
88 Requires: %{name} = %{version}-%{release}
89
90 %description nemo
91 This package provides overlay icons to visualize the sync state
92 in the nemo file manager.
93
94 %files nemo
95 %{_datadir}/nemo-python/extensions/*
96
97 %package caja
98 Summary: Caja overlay icons
99 Requires: caja
100 Requires: python-caja
101 Requires: %{name} = %{version}-%{release}
102
103 %description caja
104 This package provides overlay icons to visualize the sync state
105 in the caja file manager.
106
107 %files caja
108 %{_datadir}/caja-python/extensions/*
109
110 %package dolphin
111 Summary: Dolphin overlay icons
112 Requires: dolphin
113 Requires: %{name} = %{version}-%{release}
114
115 %description dolphin
116 The nextcloud desktop client dolphin extension.
117
118 %files dolphin
119 %{_kf5_libdir}/libnextclouddolphinpluginhelper.so
120 %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
121 %{_qt5_plugindir}/nextclouddolphinactionplugin.so
122 %{_kf5_services}/nextclouddolphinactionplugin.desktop
123
124 %package -n %libnextcloudsync
125 Summary: The Nextcloud Client Libraries
126 Group: System/Libraries
127 # From owncloud-client
128 Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
129
130 %description -n %libnextcloudsync
131 The Nextcloud Client Libraries.
132
133 %files -n %libnextcloudsync
134 %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
135 %{_libdir}/libnextcloudsync.so.%version
136
137
138 %package -n %liblibocsync
139 Summary: The Nextcloud Client Libraries
140 Group: System/Libraries
141 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
142 # From owncloud-client
143 Obsoletes: %{_lib}ocsync2 < 2.2.4-2
144
145 %description -n %liblibocsync
146 The Nextcloud Client Libraries.
147
148 %files -n %liblibocsync
149 %dir %_libdir/nextcloud
150 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
151 %_libdir/nextcloud/libocsync.so.%{version}
152
153 %define develname %mklibname %{name} -d
154
155 %package -n %{develname}
156 Summary: Development files for nextcloud-client
157 License: LGPLv2+
158 Requires: %libnextcloudsync = %{version}-%{release}
159 Requires: %liblibocsync = %{version}-%{release}
160 Provides: %{name}-static = %{version}-%{release}
161 Provides: %{name}-devel = %{version}-%{release}
162 Obsoletes: %{name}-devel < 2.2.4-4
163 # From owncloud-client
164 Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2
165
166 %description -n %{develname}
167 Development headers for use of the nextcloud-client library.
168
169 %files -n %{develname}
170 %{_libdir}/libnextcloudsync.so
171 %{_includedir}/nextcloudsync/
172 %{_libdir}/libnextcloudsync.so
173 %{_libdir}/nextcloud/libocsync.so
174
175 %prep
176 %setup -q -n desktop-%{version}
177 %autopatch -p1
178
179 %build
180
181 %cmake_kf5 \
182 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
183 -DCMAKE_INSTALL_PREFIX=%{_usr} \
184 -DINOTIFY_LIBRARY="%{_libdir}/libc.so"
185 %cmake_build
186
187 %install
188 %cmake_install
189
190 #%find_lang client --with-qt
191 mkdir -p %{buildroot}%{_datadir}/appdata/
192 install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
193
194 %check
195 appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

  ViewVC Help
Powered by ViewVC 1.1.30