/[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 1130020 - (hide annotations) (download)
Mon Jul 24 10:56:47 2017 UTC (6 years, 9 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 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 1130020 Version: 2.3.2
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 1130020 Source0: https://github.com/nextcloud/client_theming/archive/client_theming-%{version}.tar.gz
16 neoclust 1064247 Source1: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.tar.xz
17     Source2: %{name}.appdata.xml
18 guillomovitch 1130020 Patch0: %{name}-2.3.2-syslibs.patch
19     Patch1: %{name}-icon.patch
20 neoclust 1064247
21     BuildRequires: cmake
22     BuildRequires: desktop-file-utils
23     BuildRequires: doxygen
24 daviddavid 1065511 BuildRequires: pkgconfig(neon)
25     BuildRequires: pkgconfig(openssl)
26 neoclust 1064247 BuildRequires: python-sphinx
27 daviddavid 1065364 BuildRequires: qtsingleapplication-qt5-devel
28     BuildRequires: appstream-util
29 neoclust 1064247
30     BuildRequires: kf5-macros
31    
32     BuildRequires: cmake(KF5KIO)
33    
34     BuildRequires: cmake(Qt5Keychain)
35    
36     BuildRequires: pkgconfig(sqlite3)
37    
38 daviddavid 1065364 BuildRequires: pkgconfig(Qt5Xml)
39     BuildRequires: pkgconfig(Qt5Concurrent)
40     BuildRequires: pkgconfig(Qt5WebKitWidgets)
41     BuildRequires: pkgconfig(Qt5DBus)
42     BuildRequires: pkgconfig(Qt5Help)
43 neoclust 1064247
44 daviddavid 1065364 Provides: owncloud-client = %version-%release
45     Obsoletes: owncloud-client < 2.2.4-2
46 neoclust 1064247
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 daviddavid 1065364 %files
54 neoclust 1064247 %{_bindir}/nextcloud
55     %{_bindir}/nextcloudcmd
56     %{_datadir}/applications/nextcloud.desktop
57 daviddavid 1065365 %dir %{_datadir}/nextcloud
58     %{_datadir}/nextcloud/i18n/
59 neoclust 1064247 %{_datadir}/icons/hicolor/*/apps/*
60     %{_datadir}/appdata/%{name}.appdata.xml
61 daviddavid 1065511 %dir %{_sysconfdir}/Nextcloud
62 neoclust 1064247 %{_sysconfdir}/Nextcloud/sync-exclude.lst
63    
64     #------------------------------------------------------------------------------
65    
66     %package nautilus
67 daviddavid 1065364 Summary: nextcloud client nautilus extension
68     Requires: nautilus
69     Requires: nautilus-python
70     Requires: %{name} = %{version}-%{release}
71 neoclust 1064247
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 neoclust 1065358 Requires: %{name} = %{version}-%{release}
85 neoclust 1064247
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 guillomovitch 1130020 %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 neoclust 1064247 #------------------------------------------------------------------------------
106    
107     %package dolphin
108     Summary: Dolphin overlay icons
109     Requires: dolphin
110 neoclust 1065358 Requires: %{name} = %{version}-%{release}
111 neoclust 1064247
112     %description dolphin
113     The nextcloud desktop client dolphin extension.
114    
115     %files dolphin
116 daviddavid 1065365 %{_kf5_libdir}/libnextclouddolphinpluginhelper.so
117 neoclust 1064247 %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
118     %{_qt5_plugindir}/nextclouddolphinactionplugin.so
119 daviddavid 1065365 %{_kf5_services}/nextclouddolphinactionplugin.desktop
120 neoclust 1064247
121     #------------------------------------------------------------------------------
122    
123     %define nextcloudsync_major 0
124     %define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major
125    
126     %package -n %libnextcloudsync
127 daviddavid 1065364 Summary: The Nextcloud Client Libraries
128     Group: System/Libraries
129 daviddavid 1065365 # From owncloud-client
130     Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
131 neoclust 1064247
132     %description -n %libnextcloudsync
133 daviddavid 1065364 The Nextcloud Client Libraries.
134 neoclust 1064247
135     %files -n %libnextcloudsync
136     %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
137     %{_libdir}/libnextcloudsync.so.%version
138    
139     #------------------------------------------------------------------------------
140    
141     %define libocsync_major 0
142 daviddavid 1065365 %define liblibocsync %mklibname ocsync %libocsync_major
143 neoclust 1064247
144     %package -n %liblibocsync
145 daviddavid 1065364 Summary: The Nextcloud Client Libraries
146     Group: System/Libraries
147 daviddavid 1065365 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
148     # From owncloud-client
149     Obsoletes: %{_lib}ocsync2 < 2.2.4-2
150 neoclust 1064247
151     %description -n %liblibocsync
152 daviddavid 1065364 The Nextcloud Client Libraries.
153 neoclust 1064247
154    
155     %files -n %liblibocsync
156 daviddavid 1065365 %dir %_libdir/nextcloud
157 neoclust 1064247 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
158     %_libdir/nextcloud/libocsync.so.%{version}
159 daviddavid 1065364
160 neoclust 1064247 #------------------------------------------------------------------------------
161    
162 daviddavid 1065365 %define develname %mklibname %{name} -d
163    
164     %package -n %{develname}
165 daviddavid 1065364 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 daviddavid 1065365 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 neoclust 1064247
175 daviddavid 1065365 %description -n %{develname}
176 daviddavid 1065364 Development headers for use of the nextcloud-client library.
177 neoclust 1064247
178 daviddavid 1065365 %files -n %{develname}
179 neoclust 1064247 %{_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 guillomovitch 1130020 %setup -q -T -D -a 1 -n client_theming-%{version}
189 neoclust 1064247 rm -Rf client
190     mv owncloudclient-%{version} client
191 guillomovitch 1130020 pushd client
192 neoclust 1064247 %patch0 -p1
193 guillomovitch 1130020 popd
194 neoclust 1064247 %patch1 -p1
195     rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
196    
197     %build
198 daviddavid 1065364
199 daviddavid 1065365 %cmake_kf5 \
200     -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
201     -DOEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
202     %make_build
203 neoclust 1064247
204    
205     %install
206 daviddavid 1065365 %make_install -C build
207    
208 daviddavid 1065364 %find_lang client
209 neoclust 1064247 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