5 %bcond_without nautilus # build Nautilus extension
6 %bcond_without doc # build docs
7 %bcond_without gui # build only libraries
10 %undefine with_nautilus
14 Summary: The ownCloud client
19 Group: X11/Applications
20 Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz
21 # Source0-md5: 63a971158201a8dffe96a02c54b86819
22 URL: https://www.owncloud.com/
23 BuildRequires: QtCore-devel
24 BuildRequires: QtDBus-devel
25 BuildRequires: QtGui-devel
26 BuildRequires: QtKeychain-devel
27 BuildRequires: QtNetwork-devel
28 BuildRequires: QtSql-devel
29 BuildRequires: QtWebKit-devel
30 BuildRequires: QtXmlPatterns-devel
31 BuildRequires: cmake >= 2.8.11
32 BuildRequires: kf5-kconfig-devel
33 BuildRequires: kf5-ki18n-devel
34 BuildRequires: libstdc++-devel
35 BuildRequires: openssl-devel >= 1.0.0
36 BuildRequires: pkgconfig
37 BuildRequires: qt4-linguist
38 BuildRequires: rpm-pythonprov
39 BuildRequires: rpmbuild(macros) >= 1.596
40 BuildRequires: sqlite3-devel >= 3.8.0
41 BuildRequires: tar >= 1:1.22
44 BuildRequires: doxygen
45 BuildRequires: sphinx-pdg-2
46 BuildRequires: texlive-format-pdflatex
47 BuildRequires: texlive-latex-ams
48 BuildRequires: texlive-makeindex
49 BuildRequires: texlive-pdftex
50 BuildRequires: texlive-plain
51 BuildRequires: texlive-xetex
53 Requires: %{name}-libs = %{version}-%{release}
54 Requires: Qt5Gui-platform-xcb
55 Requires: desktop-file-utils
56 Requires: gtk-update-icon-cache
57 Requires: hicolor-icon-theme
58 Suggests: %{name}-nautilus
59 Suggests: %{name}-nemo
60 Obsoletes: mirall < 1.8
61 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
64 ownCloud client enables you to connect to your private ownCloud
65 Server. With it you can create folders in your home directory, and
66 keep the contents of those folders synced with your ownCloud server.
67 Simply copy a file into the directory and the ownCloud Client does the
70 ownCloud gives your employees anytime, anywhere access to the files
71 they need to get the job done, whether through this desktop
72 application, our mobile apps, the web interface, or other WebDAV
73 clients. With it, your employees can easily view and share documents
74 and information critical to the business, in a secure, flexible and
75 controlled architecture. You can easily extend ownCloud with plug-ins
76 from the community, or that you build yourself to meet the
77 requirements of your infrastructure and business.
80 Summary: Shared ownCloud client libraries
82 Obsoletes: mirall-libs < 1.8
85 Shared ownCloud client libraries.
88 Summary: Header files for %{name} library
89 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
90 Group: Development/Libraries
91 Requires: %{name}-libs = %{version}-%{release}
94 Header files for %{name} library.
96 %description devel -l pl.UTF-8
97 Pliki nagłówkowe biblioteki %{name}.
100 Summary: %{name} API documentation
101 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
103 %if "%{_rpmversion}" >= "5"
108 API documentation for %{name} library.
110 %description apidocs -l pl.UTF-8
111 Dokumentacja API biblioteki %{name}.
114 Summary: Nautilus overlay icons
116 Requires: %{name} = %{version}-%{release}
117 Requires: nautilus-python
119 %description nautilus
120 This package provides overlay icons to visualize the sync state in the
121 Nautilus file manager.
130 -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qtkeychain \
131 -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqtkeychain.so \
132 -DQT_LRELEASE_EXECUTABLE=/usr/bin/lrelease-qt4 \
134 -DSPHINX_EXECUTABLE=/usr/bin/sphinx-build-2 \
135 -DPDFLATEX_EXECUTABLE=/usr/bin/pdflatex \
136 -DDOXYGEN_EXECUTABLE=/usr/bin/doxygen \
137 -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
143 %{!?with_gui:-DBUILD_LIBRARIES_ONLY=ON} \
149 rm doc/html/unthemed/.buildinfo
153 rm -rf $RPM_BUILD_ROOT
154 %{__make} -C build install \
155 DESTDIR=$RPM_BUILD_ROOT
157 # owncloud client links without rpath
158 mv $RPM_BUILD_ROOT%{_libdir}/owncloud/libocsync.so* $RPM_BUILD_ROOT%{_libdir}
162 %{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate.py*
166 rm -rf $RPM_BUILD_ROOT
169 %update_desktop_database
170 %update_icon_cache hicolor
173 %update_desktop_database
174 %update_icon_cache hicolor
176 %post libs -p /sbin/ldconfig
177 %postun libs -p /sbin/ldconfig
181 %defattr(644,root,root,755)
182 %doc README.md COPYING
183 %dir %{_sysconfdir}/ownCloud
184 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ownCloud/*
185 %attr(755,root,root) %{_bindir}/owncloud
186 %attr(755,root,root) %{_bindir}/owncloudcmd
187 %{_desktopdir}/owncloud.desktop
188 %{_iconsdir}/*/*/apps/*.png
190 %dir %{_libdir}/owncloud
192 %{_mandir}/man1/owncloud.1*
193 %{_mandir}/man1/owncloudcmd.1*
198 %defattr(644,root,root,755)
199 %attr(755,root,root) %{_libdir}/libowncloudsync.so.*.*.*
200 %ghost %{_libdir}/libowncloudsync.so.0
201 %attr(755,root,root) %{_libdir}/libocsync.so.*.*.*
202 %ghost %{_libdir}/libocsync.so.0
205 %defattr(644,root,root,755)
206 %{_includedir}/owncloudsync
207 %{_libdir}/libowncloudsync.so
208 %{_libdir}/libocsync.so
212 %defattr(644,root,root,755)
213 %{_datadir}/nautilus-python/extensions/syncstate.py*
218 %defattr(644,root,root,755)
219 %doc %{_docdir}/%{name}