# # Conditional build: %bcond_without nautilus # build Nautilus extension %bcond_without doc # build docs %bcond_without gui # build only libraries %if %{without gui} %undefine with_nautilus %undefine with_doc %endif Summary: The ownCloud client Name: owncloudclient Version: 2.1.1 Release: 0.13 License: GPL v2+ Group: X11/Applications Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz # Source0-md5: 63a971158201a8dffe96a02c54b86819 URL: https://www.owncloud.com/ BuildRequires: QtCore-devel BuildRequires: QtDBus-devel BuildRequires: QtGui-devel BuildRequires: QtKeychain-devel BuildRequires: QtNetwork-devel BuildRequires: QtSql-devel BuildRequires: QtWebKit-devel BuildRequires: QtXmlPatterns-devel BuildRequires: cmake >= 2.8.11 BuildRequires: kf5-ki18n-devel BuildRequires: libstdc++-devel BuildRequires: openssl-devel BuildRequires: pkgconfig BuildRequires: python BuildRequires: python-Sphinx BuildRequires: python-modules BuildRequires: qt4-linguist BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.596 BuildRequires: sphinx-pdg BuildRequires: sqlite3-devel BuildRequires: tar >= 1:1.22 BuildRequires: xz %if %{with doc} BuildRequires: texlive-latex-ams %endif Requires: %{name}-libs = %{version}-%{release} Requires: Qt5Gui-platform-xcb Requires: desktop-file-utils Requires: gtk-update-icon-cache Requires: hicolor-icon-theme Suggests: %{name}-nautilus Suggests: %{name}-nemo Obsoletes: mirall < 1.8 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The ownCloud sync client - github.com/owncloud/client ownCloud client enables you to connect to your private ownCloud Server. With it you can create folders in your home directory, and keep the contents of those folders synced with your ownCloud server. Simply copy a file into the directory and the ownCloud Client does the rest. ownCloud gives your employees anytime, anywhere access to the files they need to get the job done, whether through this desktop application, our mobile apps, the web interface, or other WebDAV clients. With it, your employees can easily view and share documents and information critical to the business, in a secure, flexible and controlled architecture. You can easily extend ownCloud with plug-ins from the community, or that you build yourself to meet the requirements of your infrastructure and business. %package libs Summary: Shared ownCloud client libraries Group: Libraries Obsoletes: mirall-libs < 1.8 %description libs Shared ownCloud client libraries. %package devel Summary: Header files for %{name} library Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} %description devel Header files for %{name} library. %description devel -l pl.UTF-8 Pliki nagłówkowe biblioteki %{name}. %package nautilus Summary: Nautilus overlay icons Group: Applications Requires: %{name} = %{version}-%{release} Requires: nautilus-python %description nautilus This package provides overlay icons to visualize the sync state in the Nautilus file manager. %prep %setup -q %build install -d build cd build %cmake \ -DQTKEYCHAIN_INCLUDE_DIR=/usr/include/qtkeychain \ -DQTKEYCHAIN_LIBRARY=/usr/%{_lib}/libqtkeychain.so \ -DQT_LRELEASE_EXECUTABLE=/usr/bin/lrelease-qt4 \ %{!?with_gui:-DBUILD_LIBRARIES_ONLY=ON} \ .. %{__make} %if %{with doc} # documentation here? if [ -e conf.py ]; then # for old cmake versions we need to move the conf.py. mv conf.py doc/ fi %{__make} doc %endif %install rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT %if %{with nautilus} # nemo not in pld %{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate.py* %endif %if %{with doc} mv $RPM_BUILD_ROOT%{_docdir}/html ${RPM_BUILD_ROOT}%{_docdir}/%{name} mv $RPM_BUILD_ROOT%{_docdir}/latex ${RPM_BUILD_ROOT}%{_docdir}/%{name} rm $RPM_BUILD_ROOT%{_docdir}/%{name}/unthemed/.buildinfo %endif %clean rm -rf $RPM_BUILD_ROOT %post %update_desktop_database %update_icon_cache hicolor %postun %update_desktop_database %update_icon_cache hicolor %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %if %{with gui} %files %defattr(644,root,root,755) %doc README.md COPYING %dir %{_sysconfdir}/ownCloud %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ownCloud/* %attr(755,root,root) %{_bindir}/owncloud %attr(755,root,root) %{_bindir}/owncloudcmd %{_desktopdir}/owncloud.desktop %{_iconsdir}/*/*/apps/*.png %{_datadir}/owncloud %dir %{_libdir}/owncloud %if %{with doc} %doc %{_docdir}/%{name} %{_mandir}/man1/owncloud* %endif %endif %files libs %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libowncloudsync.so.*.*.* %ghost %{_libdir}/libowncloudsync.so.0 %attr(755,root,root) %{_libdir}/owncloud/libocsync.so.*.*.* %ghost %{_libdir}/owncloud/libocsync.so.0 %files devel %defattr(644,root,root,755) %{_includedir}/owncloudsync %{_libdir}/libowncloudsync.so %{_libdir}/owncloud/libocsync.so %if %{with nautilus} %files nautilus %defattr(644,root,root,755) %{_datadir}/nautilus-python/extensions/syncstate.py* %endif