/[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 1082996 - (hide annotations) (download)
Sun Jan 22 16:48:38 2017 UTC (7 years, 3 months ago) by daviddavid
Original Path: cauldron/nextcloud-client/current/SPECS/nextcloud-client.spec
File size: 6388 byte(s)
- add patch to fix wrong library name in nextclouddolphinactionplugin.desktop file (mga#20156)
- rebase syslibs patch like fedora

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     Version: 2.2.4
8 daviddavid 1082996 Release: %mkrel 6
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     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 daviddavid 1082996 Patch0: %{name}-2.2.4-appshortname.patch
19     Patch1: %{name}-2.2.4-syslibs.patch
20     Patch2: %{name}-2.2.4-fix-nextclouddolphinactionplugin-desktop.patch
21 neoclust 1064247
22     BuildRequires: cmake
23     BuildRequires: desktop-file-utils
24     BuildRequires: doxygen
25 daviddavid 1065511 BuildRequires: pkgconfig(neon)
26     BuildRequires: pkgconfig(openssl)
27 neoclust 1064247 BuildRequires: python-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    
39 daviddavid 1065364 BuildRequires: pkgconfig(Qt5Xml)
40     BuildRequires: pkgconfig(Qt5Concurrent)
41     BuildRequires: pkgconfig(Qt5WebKitWidgets)
42     BuildRequires: pkgconfig(Qt5DBus)
43     BuildRequires: pkgconfig(Qt5Help)
44 neoclust 1064247
45 daviddavid 1065364 Provides: owncloud-client = %version-%release
46     Obsoletes: owncloud-client < 2.2.4-2
47 neoclust 1064247
48     %description
49     Nextcloud-client enables you to connect to your private Nextcloud Server.
50     With it you can create folders in your home directory, and keep the contents
51     of those folders synced with your Nextcloud server. Simply copy a file into
52     the directory and the Nextcloud Client does the rest.
53    
54 daviddavid 1065364 %files
55 neoclust 1064247 %{_bindir}/nextcloud
56     %{_bindir}/nextcloudcmd
57     %{_datadir}/applications/nextcloud.desktop
58 daviddavid 1065365 %dir %{_datadir}/nextcloud
59     %{_datadir}/nextcloud/i18n/
60 neoclust 1064247 %{_datadir}/icons/hicolor/*/apps/*
61     %{_datadir}/appdata/%{name}.appdata.xml
62 daviddavid 1065511 %dir %{_sysconfdir}/Nextcloud
63 neoclust 1064247 %{_sysconfdir}/Nextcloud/sync-exclude.lst
64    
65     #------------------------------------------------------------------------------
66    
67     %package nautilus
68 daviddavid 1065364 Summary: nextcloud client nautilus extension
69     Requires: nautilus
70     Requires: nautilus-python
71     Requires: %{name} = %{version}-%{release}
72 neoclust 1064247
73     %description nautilus
74     The nextcloud desktop client nautilus extension.
75    
76     %files nautilus
77     %{_datadir}/nautilus-python/extensions/*
78    
79     #------------------------------------------------------------------------------
80    
81     %package nemo
82     Summary: Nemo overlay icons
83     Requires: nemo
84     Requires: nemo-python
85 neoclust 1065358 Requires: %{name} = %{version}-%{release}
86 neoclust 1064247
87     %description nemo
88     This package provides overlay icons to visualize the sync state
89     in the nemo file manager.
90    
91     %files nemo
92     %{_datadir}/nemo-python/extensions/*
93    
94     #------------------------------------------------------------------------------
95    
96     %package dolphin
97     Summary: Dolphin overlay icons
98     Requires: dolphin
99 neoclust 1065358 Requires: %{name} = %{version}-%{release}
100 neoclust 1064247
101     %description dolphin
102     The nextcloud desktop client dolphin extension.
103    
104     %files dolphin
105 daviddavid 1065365 %{_kf5_libdir}/libnextclouddolphinpluginhelper.so
106 neoclust 1064247 %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
107     %{_qt5_plugindir}/nextclouddolphinactionplugin.so
108 daviddavid 1065365 %{_kf5_services}/nextclouddolphinactionplugin.desktop
109 neoclust 1064247
110     #------------------------------------------------------------------------------
111    
112     %define nextcloudsync_major 0
113     %define libnextcloudsync %mklibname nextcloudsync %nextcloudsync_major
114    
115     %package -n %libnextcloudsync
116 daviddavid 1065364 Summary: The Nextcloud Client Libraries
117     Group: System/Libraries
118 daviddavid 1065365 # From owncloud-client
119     Obsoletes: %{_lib}owncloudsync2 < 2.2.4-2
120 neoclust 1064247
121     %description -n %libnextcloudsync
122 daviddavid 1065364 The Nextcloud Client Libraries.
123 neoclust 1064247
124     %files -n %libnextcloudsync
125     %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
126     %{_libdir}/libnextcloudsync.so.%version
127    
128     #------------------------------------------------------------------------------
129    
130     %define libocsync_major 0
131 daviddavid 1065365 %define liblibocsync %mklibname ocsync %libocsync_major
132 neoclust 1064247
133     %package -n %liblibocsync
134 daviddavid 1065364 Summary: The Nextcloud Client Libraries
135     Group: System/Libraries
136 daviddavid 1065365 Obsoletes: %{_lib}libocsync0 < 2.2.4-4
137     # From owncloud-client
138     Obsoletes: %{_lib}ocsync2 < 2.2.4-2
139 neoclust 1064247
140     %description -n %liblibocsync
141 daviddavid 1065364 The Nextcloud Client Libraries.
142 neoclust 1064247
143    
144     %files -n %liblibocsync
145 daviddavid 1065365 %dir %_libdir/nextcloud
146 neoclust 1064247 %_libdir/nextcloud/libocsync.so.%{libocsync_major}
147     %_libdir/nextcloud/libocsync.so.%{version}
148 daviddavid 1065364
149 neoclust 1064247 #------------------------------------------------------------------------------
150    
151 daviddavid 1065365 %define develname %mklibname %{name} -d
152    
153     %package -n %{develname}
154 daviddavid 1065364 Summary: Development files for nextcloud-client
155     License: LGPLv2+
156     Requires: %libnextcloudsync = %{version}-%{release}
157     Requires: %liblibocsync = %{version}-%{release}
158     Provides: %{name}-static = %{version}-%{release}
159 daviddavid 1065365 Provides: %{name}-devel = %{version}-%{release}
160     Obsoletes: %{name}-devel < 2.2.4-4
161     # From owncloud-client
162     Obsoletes: %{_lib}owncloud-client-devel < 2.2.4-2
163 neoclust 1064247
164 daviddavid 1065365 %description -n %{develname}
165 daviddavid 1065364 Development headers for use of the nextcloud-client library.
166 neoclust 1064247
167 daviddavid 1065365 %files -n %{develname}
168 neoclust 1064247 %{_libdir}/libnextcloudsync.so
169     %{_includedir}/nextcloudsync/
170     %{_libdir}/libnextcloudsync.so
171     %{_libdir}/nextcloud/libocsync.so
172    
173     #------------------------------------------------------------------------------
174    
175     %prep
176     %setup -q -n client_theming-%{version}
177     %setup -T -D -a 1 -n client_theming-%{version}
178     rm -Rf client
179     mv owncloudclient-%{version} client
180     %patch0 -p1
181 daviddavid 1082996 pushd client
182 neoclust 1064247 %patch1 -p1
183 daviddavid 1082996 %patch2 -p1
184     popd
185 neoclust 1064247 rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
186    
187 daviddavid 1065428 # fix nextcloud desktop icon name (mga#19473#c6)
188     sed -i 's/^\(Icon\(\[.*\]\)*=\).*$/\1@APPLICATION_NAME@/' client/mirall.desktop.in
189 neoclust 1064247
190     %build
191     #see https://www.openssl.org/docs/manmaster/crypto/OpenSSL_add_all_algorithms.html
192     sed -i "s#SSLeay_add_all_algorithms#//OPENSSL_init_crypto#g" client/src/3rdparty/certificates/p12topem.cpp
193 daviddavid 1065364
194 daviddavid 1065365 %cmake_kf5 \
195     -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
196     -DOEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
197     %make_build
198 neoclust 1064247
199    
200     %install
201 daviddavid 1065365 %make_install -C build
202    
203 daviddavid 1065364 %find_lang client
204 neoclust 1064247 mkdir -p %{buildroot}%{_datadir}/appdata/
205     install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
206    
207    
208     %check
209     appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
210    

  ViewVC Help
Powered by ViewVC 1.1.30