/[packages]/updates/8/nextcloud-client/current/SPECS/nextcloud-client.spec
ViewVC logotype

Annotation of /updates/8/nextcloud-client/current/SPECS/nextcloud-client.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30