]>
Commit | Line | Data |
---|---|---|
8a768bde ER |
1 | # |
2 | # Conditional build: | |
4bbe24d5 | 3 | %bcond_without nautilus # build Nautilus extension |
461d7e6d | 4 | %bcond_without caja # build caja extension |
e999176d | 5 | %bcond_with dolphin # build dolphin extension |
4bbe24d5 ER |
6 | %bcond_without doc # build docs |
7 | %bcond_without gui # build only libraries | |
8 | ||
9 | %if %{without gui} | |
10 | %undefine with_nautilus | |
461d7e6d | 11 | %undefine with_caja |
e999176d | 12 | %undefine with_dolphin |
4bbe24d5 ER |
13 | %undefine with_doc |
14 | %endif | |
8a768bde | 15 | |
fec6bd12 | 16 | %define qtver 5.4 |
b72e02cb | 17 | Summary: The ownCloud client |
69b59edf | 18 | Name: owncloudclient |
d31e5b37 | 19 | Version: 2.3.3 |
d80f1642 | 20 | Release: 3 |
42696897 | 21 | License: GPL v2+ |
8766d745 | 22 | Group: X11/Applications |
69b59edf | 23 | Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz |
d31e5b37 | 24 | # Source0-md5: bba20fc6f38e0b14f6ceb9ab432d1802 |
b570669f | 25 | Patch0: syslibs.patch |
42696897 | 26 | URL: https://www.owncloud.com/ |
ce8071a4 | 27 | BuildRequires: Qt5Concurrent-devel >= %{qtver} |
fec6bd12 ER |
28 | BuildRequires: Qt5Core-devel >= %{qtver} |
29 | BuildRequires: Qt5DBus-devel >= %{qtver} | |
30 | BuildRequires: Qt5Gui-devel >= %{qtver} | |
31 | BuildRequires: Qt5Keychain-devel | |
32 | BuildRequires: Qt5Network-devel >= %{qtver} | |
fec6bd12 ER |
33 | BuildRequires: Qt5WebKit-devel >= %{qtver} |
34 | BuildRequires: Qt5Xml-devel >= %{qtver} | |
b72e02cb | 35 | BuildRequires: cmake >= 2.8.11 |
60de00dd | 36 | BuildRequires: libstdc++-devel |
55bf14cd | 37 | BuildRequires: openssl-devel >= 1.0.0 |
60de00dd | 38 | BuildRequires: pkgconfig |
443783b7 | 39 | BuildRequires: qt5-linguist >= %{qtver} |
ae1f2a01 | 40 | BuildRequires: rpm-pythonprov |
db04c1c3 | 41 | BuildRequires: rpmbuild(macros) >= 1.596 |
55bf14cd | 42 | BuildRequires: sqlite3-devel >= 3.8.0 |
42696897 | 43 | BuildRequires: tar >= 1:1.22 |
db04c1c3 | 44 | BuildRequires: xz |
01a07148 | 45 | BuildRequires: zlib-devel |
ce8071a4 ER |
46 | %if %{with gui} |
47 | BuildRequires: Qt5LockedFile-devel >= 2.4 | |
1e8786d9 | 48 | BuildRequires: Qt5SingleApplication-devel >= 2.6.1-3 |
ce8071a4 | 49 | BuildRequires: Qt5Sql-devel >= %{qtver} |
1e8786d9 | 50 | BuildConflicts: QtLockedFile-devel |
ce8071a4 | 51 | %endif |
e999176d ER |
52 | %if %{with dolphin} |
53 | BuildRequires: kf5-attica-devel >= 5.16 | |
01a07148 | 54 | BuildRequires: kf5-extra-cmake-modules >= 1.2.0 |
e999176d ER |
55 | BuildRequires: kf5-kconfig-devel >= 5.16 |
56 | BuildRequires: kf5-ki18n-devel >= 5.16 | |
57 | BuildRequires: kf5-kio-devel >= 5.16 | |
58 | %endif | |
d15c01db | 59 | %if %{with doc} |
55bf14cd ER |
60 | BuildRequires: doxygen |
61 | BuildRequires: sphinx-pdg-2 | |
62 | BuildRequires: texlive-format-pdflatex | |
d5924c14 | 63 | BuildRequires: texlive-latex-ams |
55bf14cd ER |
64 | BuildRequires: texlive-makeindex |
65 | BuildRequires: texlive-pdftex | |
66 | BuildRequires: texlive-plain | |
67 | BuildRequires: texlive-xetex | |
d15c01db | 68 | %endif |
42696897 | 69 | Requires: %{name}-libs = %{version}-%{release} |
63be3806 | 70 | Requires: Qt5Gui-platform-xcb |
ae64705e | 71 | Requires: Qt5SingleApplication >= 2.6.1-3 |
db04c1c3 ER |
72 | Requires: desktop-file-utils |
73 | Requires: gtk-update-icon-cache | |
74 | Requires: hicolor-icon-theme | |
1a8da98e | 75 | Suggests: %{name}-nautilus |
b72e02cb | 76 | Suggests: %{name}-nemo |
7e597b00 | 77 | Obsoletes: mirall < 1.8 |
b72e02cb | 78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1a8da98e PG |
79 | |
80 | %description | |
b72e02cb PG |
81 | ownCloud client enables you to connect to your private ownCloud |
82 | Server. With it you can create folders in your home directory, and | |
83 | keep the contents of those folders synced with your ownCloud server. | |
84 | Simply copy a file into the directory and the ownCloud Client does the | |
85 | rest. | |
1a8da98e PG |
86 | |
87 | ownCloud gives your employees anytime, anywhere access to the files | |
b72e02cb PG |
88 | they need to get the job done, whether through this desktop |
89 | application, our mobile apps, the web interface, or other WebDAV | |
90 | clients. With it, your employees can easily view and share documents | |
91 | and information critical to the business, in a secure, flexible and | |
92 | controlled architecture. You can easily extend ownCloud with plug-ins | |
93 | from the community, or that you build yourself to meet the | |
94 | requirements of your infrastructure and business. | |
1a8da98e | 95 | |
42696897 ER |
96 | %package libs |
97 | Summary: Shared ownCloud client libraries | |
98 | Group: Libraries | |
c0298053 | 99 | Obsoletes: mirall-libs < 1.8 |
42696897 ER |
100 | |
101 | %description libs | |
102 | Shared ownCloud client libraries. | |
103 | ||
104 | %package devel | |
105 | Summary: Header files for %{name} library | |
106 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
107 | Group: Development/Libraries | |
108 | Requires: %{name}-libs = %{version}-%{release} | |
109 | ||
110 | %description devel | |
111 | Header files for %{name} library. | |
112 | ||
113 | %description devel -l pl.UTF-8 | |
114 | Pliki nagłówkowe biblioteki %{name}. | |
115 | ||
55bf14cd ER |
116 | %package apidocs |
117 | Summary: %{name} API documentation | |
118 | Summary(pl.UTF-8): Dokumentacja API biblioteki %{name} | |
119 | Group: Documentation | |
55bf14cd | 120 | BuildArch: noarch |
55bf14cd ER |
121 | |
122 | %description apidocs | |
123 | API documentation for %{name} library. | |
124 | ||
125 | %description apidocs -l pl.UTF-8 | |
126 | Dokumentacja API biblioteki %{name}. | |
127 | ||
8a768bde | 128 | %package nautilus |
36a3a84c | 129 | Summary: Nautilus overlay icons |
8a768bde ER |
130 | Group: Applications |
131 | Requires: %{name} = %{version}-%{release} | |
132 | Requires: nautilus-python | |
133 | ||
134 | %description nautilus | |
36a3a84c ER |
135 | This package provides overlay icons to visualize the sync state in the |
136 | Nautilus file manager. | |
8a768bde | 137 | |
461d7e6d JK |
138 | %package caja |
139 | Summary: Caja overlay icons | |
140 | Group: Applications | |
141 | Requires: %{name} = %{version}-%{release} | |
142 | Requires: caja-python | |
143 | ||
144 | %description caja | |
145 | This package provides overlay icons to visualize the sync state in the | |
146 | Caja file manager. | |
147 | ||
1a8da98e | 148 | %prep |
d5924c14 | 149 | %setup -q |
b570669f ER |
150 | %patch0 -p1 |
151 | ||
1e8786d9 ER |
152 | mv src/3rdparty/qtlockedfile . |
153 | mv src/3rdparty/qtsingleapplication . | |
1a8da98e | 154 | |
1a8da98e | 155 | %build |
d5924c14 PG |
156 | install -d build |
157 | cd build | |
158 | %cmake \ | |
fec6bd12 ER |
159 | -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qt5keychain \ |
160 | -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqt5keychain.so \ | |
161 | -DQT_LRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5 \ | |
162 | -DBUILD_WITH_QT4=NO \ | |
55bf14cd ER |
163 | %if %{with doc} |
164 | -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build-2 \ | |
165 | -DPDFLATEX_EXECUTABLE=/usr/bin/pdflatex \ | |
166 | -DDOXYGEN_EXECUTABLE=/usr/bin/doxygen \ | |
167 | -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \ | |
168 | %else | |
169 | -DWITH_DOC=NO \ | |
01a07148 ER |
170 | -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=TRUE \ |
171 | -DCMAKE_DISABLE_FIND_PACKAGE_PdfLatex=TRUE \ | |
172 | -DCMAKE_DISABLE_FIND_PACKAGE_Sphinx=TRUE \ | |
e999176d ER |
173 | %endif |
174 | %if %{without dolphin} | |
2e6eded8 ER |
175 | -DCMAKE_DISABLE_FIND_PACKAGE_ECM=TRUE \ |
176 | -DCMAKE_DISABLE_FIND_PACKAGE_KF5=TRUE \ | |
55bf14cd | 177 | %endif |
4bbe24d5 | 178 | %{!?with_gui:-DBUILD_LIBRARIES_ONLY=ON} \ |
42696897 | 179 | .. |
d80f1642 | 180 | %{__make} -j1 |
1a8da98e | 181 | |
4bbe24d5 | 182 | %if %{with doc} |
d80f1642 | 183 | %{__make} -j1 doc |
55bf14cd | 184 | rm doc/html/unthemed/.buildinfo |
4bbe24d5 | 185 | %endif |
1a8da98e PG |
186 | |
187 | %install | |
b72e02cb | 188 | rm -rf $RPM_BUILD_ROOT |
d80f1642 | 189 | %{__make} -j1 -C build install \ |
b72e02cb | 190 | DESTDIR=$RPM_BUILD_ROOT |
1a8da98e | 191 | |
a054015a ER |
192 | # owncloud client links without rpath |
193 | mv $RPM_BUILD_ROOT%{_libdir}/owncloud/libocsync.so* $RPM_BUILD_ROOT%{_libdir} | |
194 | ||
4bbe24d5 | 195 | %if %{with nautilus} |
8a768bde | 196 | # nemo not in pld |
461d7e6d | 197 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate-ownCloud.py* |
4bbe24d5 | 198 | %endif |
8a768bde | 199 | |
42696897 ER |
200 | %clean |
201 | rm -rf $RPM_BUILD_ROOT | |
1a8da98e | 202 | |
1a8da98e | 203 | %post |
db04c1c3 ER |
204 | %update_desktop_database |
205 | %update_icon_cache hicolor | |
1a8da98e PG |
206 | |
207 | %postun | |
db04c1c3 ER |
208 | %update_desktop_database |
209 | %update_icon_cache hicolor | |
42696897 ER |
210 | |
211 | %post libs -p /sbin/ldconfig | |
212 | %postun libs -p /sbin/ldconfig | |
1a8da98e | 213 | |
4bbe24d5 | 214 | %if %{with gui} |
1a8da98e | 215 | %files |
b72e02cb | 216 | %defattr(644,root,root,755) |
931f5ef6 | 217 | %doc README.md COPYING |
b72e02cb PG |
218 | %attr(755,root,root) %{_bindir}/owncloud |
219 | %attr(755,root,root) %{_bindir}/owncloudcmd | |
b72e02cb | 220 | %{_desktopdir}/owncloud.desktop |
931f5ef6 | 221 | %{_iconsdir}/*/*/apps/*.png |
c1b38b2d | 222 | %{_datadir}/owncloud |
fff4970d | 223 | %dir %{_libdir}/owncloud |
ab8b50fd | 224 | %if %{with doc} |
55bf14cd ER |
225 | %{_mandir}/man1/owncloud.1* |
226 | %{_mandir}/man1/owncloudcmd.1* | |
4bbe24d5 | 227 | %endif |
ab8b50fd | 228 | %endif |
42696897 | 229 | |
42696897 ER |
230 | %files libs |
231 | %defattr(644,root,root,755) | |
443783b7 ER |
232 | %dir %{_sysconfdir}/ownCloud |
233 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ownCloud/sync-exclude.lst | |
42696897 ER |
234 | %attr(755,root,root) %{_libdir}/libowncloudsync.so.*.*.* |
235 | %ghost %{_libdir}/libowncloudsync.so.0 | |
a054015a ER |
236 | %attr(755,root,root) %{_libdir}/libocsync.so.*.*.* |
237 | %ghost %{_libdir}/libocsync.so.0 | |
fff4970d | 238 | |
42696897 ER |
239 | %files devel |
240 | %defattr(644,root,root,755) | |
241 | %{_includedir}/owncloudsync | |
242 | %{_libdir}/libowncloudsync.so | |
a054015a | 243 | %{_libdir}/libocsync.so |
8a768bde ER |
244 | |
245 | %if %{with nautilus} | |
246 | %files nautilus | |
247 | %defattr(644,root,root,755) | |
461d7e6d JK |
248 | %{_datadir}/nautilus-python/extensions/syncstate-ownCloud.py* |
249 | %endif | |
250 | ||
251 | %if %{with caja} | |
252 | %files caja | |
253 | %defattr(644,root,root,755) | |
254 | %{_datadir}/caja-python/extensions/syncstate-ownCloud.py* | |
8a768bde | 255 | %endif |
55bf14cd ER |
256 | |
257 | %if %{with doc} | |
258 | %files apidocs | |
259 | %defattr(644,root,root,755) | |
260 | %doc %{_docdir}/%{name} | |
261 | %endif |