/[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 1065364 - (hide annotations) (download)
Fri Nov 4 17:42:26 2016 UTC (7 years, 5 months ago) by daviddavid
Original Path: cauldron/nextcloud-client/current/SPECS/nextcloud-client.spec
File size: 5823 byte(s)
SILENT: cleanup a bit spec file

1 neoclust 1064247 %global _hardened_build 1
2    
3     Name: nextcloud-client
4     Version: 2.2.4
5 neoclust 1065358 Release: %mkrel 3
6 neoclust 1064247 Summary: The Nextcloud Client
7 daviddavid 1065364 Group: Archiving/Backup
8 neoclust 1064247
9     # -libs are LGPLv2+, rest GPLv2
10     License: LGPLv2+ and GPLv2
11     Url: https://nextcloud.com/install/#install-clients
12     Source0: https://github.com/nextcloud/client_theming/archive/v%{version}.tar.gz
13     Source1: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.tar.xz
14     Source2: %{name}.appdata.xml
15     Patch0: %{name}-2.2.3-syslibs.patch
16     Patch1: %{name}-2.2.4-appshortname.patch
17    
18     BuildRequires: cmake
19     BuildRequires: desktop-file-utils
20     BuildRequires: doxygen
21     BuildRequires: neon-devel
22     BuildRequires: openssl-devel
23     BuildRequires: python-sphinx
24 daviddavid 1065364 BuildRequires: qtsingleapplication-qt5-devel
25     BuildRequires: appstream-util
26 neoclust 1064247
27     BuildRequires: kf5-macros
28    
29     BuildRequires: cmake(KF5KIO)
30    
31     BuildRequires: cmake(Qt5Keychain)
32    
33     BuildRequires: pkgconfig(sqlite3)
34    
35 daviddavid 1065364 BuildRequires: pkgconfig(Qt5Xml)
36     BuildRequires: pkgconfig(Qt5Concurrent)
37     BuildRequires: pkgconfig(Qt5WebKitWidgets)
38     BuildRequires: pkgconfig(Qt5DBus)
39     BuildRequires: pkgconfig(Qt5Help)
40 neoclust 1064247
41 daviddavid 1065364 Provides: mirall = %{version}-%{release}
42     Obsoletes: mirall < 1.8.0
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     %{_datadir}/nextcloud/i18n/*
58     %{_datadir}/icons/hicolor/*/apps/*
59     %{_datadir}/appdata/%{name}.appdata.xml
60     %{_sysconfdir}/Nextcloud/sync-exclude.lst
61    
62     #------------------------------------------------------------------------------
63    
64     %package nautilus
65 daviddavid 1065364 Summary: nextcloud client nautilus extension
66     Requires: nautilus
67     Requires: nautilus-python
68     Requires: %{name} = %{version}-%{release}
69 neoclust 1064247
70 daviddavid 1065364 Provides: mirall-nautilus = %{version}-%{release}
71     Obsoletes: mirall-nautilus < 1.8.0
72    
73 neoclust 1064247 %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     %{_libdir}/libnextclouddolphinpluginhelper.so
106     %{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
107     %{_qt5_plugindir}/nextclouddolphinactionplugin.so
108     %{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop
109    
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 neoclust 1064247
119     %description -n %libnextcloudsync
120 daviddavid 1065364 The Nextcloud Client Libraries.
121 neoclust 1064247
122     %files -n %libnextcloudsync
123     %{_libdir}/libnextcloudsync.so.%nextcloudsync_major
124     %{_libdir}/libnextcloudsync.so.%version
125    
126     #------------------------------------------------------------------------------
127    
128     %define libocsync_major 0
129     %define liblibocsync %mklibname libocsync %libocsync_major
130    
131     %package -n %liblibocsync
132 daviddavid 1065364 Summary: The Nextcloud Client Libraries
133     Group: System/Libraries
134 neoclust 1064247
135     %description -n %liblibocsync
136 daviddavid 1065364 The Nextcloud Client Libraries.
137 neoclust 1064247
138    
139     %files -n %liblibocsync
140     %_libdir/nextcloud/libocsync.so.%{libocsync_major}
141     %_libdir/nextcloud/libocsync.so.%{version}
142 daviddavid 1065364
143 neoclust 1064247 #------------------------------------------------------------------------------
144    
145     %package devel
146 daviddavid 1065364 Summary: Development files for nextcloud-client
147     License: LGPLv2+
148     Requires: %libnextcloudsync = %{version}-%{release}
149     Requires: %liblibocsync = %{version}-%{release}
150     Provides: %{name}-static = %{version}-%{release}
151     Provides: mirall-devel = %{version}-%{release}
152     Obsoletes: mirall-devel < 1.8.0
153 neoclust 1064247
154     %description devel
155 daviddavid 1065364 Development headers for use of the nextcloud-client library.
156 neoclust 1064247
157     %files devel
158     %{_libdir}/libnextcloudsync.so
159     %{_includedir}/nextcloudsync/
160     %{_libdir}/libnextcloudsync.so
161     %{_libdir}/nextcloud/libocsync.so
162    
163     #------------------------------------------------------------------------------
164    
165     %prep
166     %setup -q -n client_theming-%{version}
167     %setup -T -D -a 1 -n client_theming-%{version}
168     rm -Rf client
169     mv owncloudclient-%{version} client
170     %patch0 -p1
171     %patch1 -p1
172     rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
173    
174    
175     %build
176     #see https://www.openssl.org/docs/manmaster/crypto/OpenSSL_add_all_algorithms.html
177     sed -i "s#SSLeay_add_all_algorithms#//OPENSSL_init_crypto#g" client/src/3rdparty/certificates/p12topem.cpp
178 daviddavid 1065364
179 neoclust 1064247 %cmake_kf5 .. -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
180     make %{?_smp_mflags}
181    
182    
183     %install
184     pushd build
185     make install DESTDIR=%{buildroot}
186     popd
187 daviddavid 1065364 %find_lang client
188 neoclust 1064247 mkdir -p %{buildroot}%{_datadir}/appdata/
189     install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
190    
191    
192     %check
193     appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
194    

  ViewVC Help
Powered by ViewVC 1.1.30