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

  ViewVC Help
Powered by ViewVC 1.1.30