3 %bcond_without nautilus # build Nautilus extension
4 %bcond_without doc # build docs
5 %bcond_without gui # build only libraries
8 %undefine with_nautilus
12 Summary: The ownCloud client
17 Group: X11/Applications
18 Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz
19 # Source0-md5: 63a971158201a8dffe96a02c54b86819
20 URL: https://www.owncloud.com/
21 BuildRequires: QtCore-devel
22 BuildRequires: QtDBus-devel
23 BuildRequires: QtGui-devel
24 BuildRequires: QtKeychain-devel
25 BuildRequires: QtNetwork-devel
26 BuildRequires: QtSql-devel
27 BuildRequires: QtWebKit-devel
28 BuildRequires: QtXmlPatterns-devel
29 BuildRequires: cmake >= 2.8.11
30 BuildRequires: kf5-ki18n-devel
31 BuildRequires: libstdc++-devel
32 BuildRequires: openssl-devel
33 BuildRequires: pkgconfig
35 BuildRequires: python-Sphinx
36 BuildRequires: python-modules
37 BuildRequires: qt4-linguist
38 BuildRequires: rpm-pythonprov
39 BuildRequires: rpmbuild(macros) >= 1.596
40 BuildRequires: sphinx-pdg
41 BuildRequires: sqlite3-devel
42 BuildRequires: tar >= 1:1.22
45 BuildRequires: texlive-latex-ams
47 Requires: %{name}-libs = %{version}-%{release}
48 Requires: Qt5Gui-platform-xcb
49 Requires: desktop-file-utils
50 Requires: gtk-update-icon-cache
51 Requires: hicolor-icon-theme
52 Suggests: %{name}-nautilus
53 Suggests: %{name}-nemo
54 Obsoletes: mirall < 1.8
55 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
58 The ownCloud sync client - github.com/owncloud/client
60 ownCloud client enables you to connect to your private ownCloud
61 Server. With it you can create folders in your home directory, and
62 keep the contents of those folders synced with your ownCloud server.
63 Simply copy a file into the directory and the ownCloud Client does the
66 ownCloud gives your employees anytime, anywhere access to the files
67 they need to get the job done, whether through this desktop
68 application, our mobile apps, the web interface, or other WebDAV
69 clients. With it, your employees can easily view and share documents
70 and information critical to the business, in a secure, flexible and
71 controlled architecture. You can easily extend ownCloud with plug-ins
72 from the community, or that you build yourself to meet the
73 requirements of your infrastructure and business.
76 Summary: Shared ownCloud client libraries
78 Obsoletes: mirall-libs < 1.8
81 Shared ownCloud client libraries.
84 Summary: Header files for %{name} library
85 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
86 Group: Development/Libraries
87 Requires: %{name}-libs = %{version}-%{release}
90 Header files for %{name} library.
92 %description devel -l pl.UTF-8
93 Pliki nagłówkowe biblioteki %{name}.
96 Summary: Nautilus overlay icons
98 Requires: %{name} = %{version}-%{release}
99 Requires: nautilus-python
101 %description nautilus
102 This package provides overlay icons to visualize the sync state in the
103 Nautilus file manager.
112 -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qtkeychain \
113 -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqtkeychain.so \
114 -DQT_LRELEASE_EXECUTABLE=/usr/bin/lrelease-qt4 \
115 %{!?with_gui:-DBUILD_LIBRARIES_ONLY=ON} \
120 # documentation here?
121 if [ -e conf.py ]; then
122 # for old cmake versions we need to move the conf.py.
129 rm -rf $RPM_BUILD_ROOT
130 %{__make} -C build install \
131 DESTDIR=$RPM_BUILD_ROOT
133 # owncloud client links without rpath
134 mv $RPM_BUILD_ROOT%{_libdir}/owncloud/libocsync.so* $RPM_BUILD_ROOT%{_libdir}
138 %{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate.py*
142 mv $RPM_BUILD_ROOT%{_docdir}/html ${RPM_BUILD_ROOT}%{_docdir}/%{name}
143 mv $RPM_BUILD_ROOT%{_docdir}/latex ${RPM_BUILD_ROOT}%{_docdir}/%{name}
144 rm $RPM_BUILD_ROOT%{_docdir}/%{name}/unthemed/.buildinfo
148 rm -rf $RPM_BUILD_ROOT
151 %update_desktop_database
152 %update_icon_cache hicolor
155 %update_desktop_database
156 %update_icon_cache hicolor
158 %post libs -p /sbin/ldconfig
159 %postun libs -p /sbin/ldconfig
163 %defattr(644,root,root,755)
164 %doc README.md COPYING
165 %dir %{_sysconfdir}/ownCloud
166 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ownCloud/*
167 %attr(755,root,root) %{_bindir}/owncloud
168 %attr(755,root,root) %{_bindir}/owncloudcmd
169 %{_desktopdir}/owncloud.desktop
170 %{_iconsdir}/*/*/apps/*.png
172 %dir %{_libdir}/owncloud
174 %doc %{_docdir}/%{name}
175 %{_mandir}/man1/owncloud*
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/libowncloudsync.so.*.*.*
182 %ghost %{_libdir}/libowncloudsync.so.0
183 %attr(755,root,root) %{_libdir}/libocsync.so.*.*.*
184 %ghost %{_libdir}/libocsync.so.0
187 %defattr(644,root,root,755)
188 %{_includedir}/owncloudsync
189 %{_libdir}/libowncloudsync.so
190 %{_libdir}/libocsync.so
194 %defattr(644,root,root,755)
195 %{_datadir}/nautilus-python/extensions/syncstate.py*