#
# Conditional build:
%bcond_without nautilus # build Nautilus extension
+%bcond_without caja # build caja extension
%bcond_with dolphin # build dolphin extension
%bcond_without doc # build docs
%bcond_without gui # build only libraries
%if %{without gui}
%undefine with_nautilus
+%undefine with_caja
%undefine with_dolphin
%undefine with_doc
%endif
%define qtver 5.4
Summary: The ownCloud client
Name: owncloudclient
-Version: 2.1.1
-Release: 0.17
+Version: 2.3.3
+Release: 2
License: GPL v2+
Group: X11/Applications
Source0: https://download.owncloud.com/desktop/stable/%{name}-%{version}.tar.xz
-# Source0-md5: 63a971158201a8dffe96a02c54b86819
+# Source0-md5: bba20fc6f38e0b14f6ceb9ab432d1802
Patch0: syslibs.patch
URL: https://www.owncloud.com/
BuildRequires: Qt5Concurrent-devel >= %{qtver}
BuildRequires: zlib-devel
%if %{with gui}
BuildRequires: Qt5LockedFile-devel >= 2.4
-BuildRequires: Qt5SingleApplication-devel >= 2.6
+BuildRequires: Qt5SingleApplication-devel >= 2.6.1-3
BuildRequires: Qt5Sql-devel >= %{qtver}
+BuildConflicts: QtLockedFile-devel
%endif
%if %{with dolphin}
BuildRequires: kf5-attica-devel >= 5.16
%endif
Requires: %{name}-libs = %{version}-%{release}
Requires: Qt5Gui-platform-xcb
+Requires: Qt5SingleApplication >= 2.6.1-3
Requires: desktop-file-utils
Requires: gtk-update-icon-cache
Requires: hicolor-icon-theme
This package provides overlay icons to visualize the sync state in the
Nautilus file manager.
+%package caja
+Summary: Caja overlay icons
+Group: Applications
+Requires: %{name} = %{version}-%{release}
+Requires: caja-python
+
+%description caja
+This package provides overlay icons to visualize the sync state in the
+Caja file manager.
+
%prep
%setup -q
%patch0 -p1
-rm -r src/3rdparty/qtlockedfile
-rm -r src/3rdparty/qtsingleapplication
+mv src/3rdparty/qtlockedfile .
+mv src/3rdparty/qtsingleapplication .
%build
install -d build
%if %{with nautilus}
# nemo not in pld
-%{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate.py*
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/nemo-python/extensions/syncstate-ownCloud.py*
%endif
%clean
%if %{with nautilus}
%files nautilus
%defattr(644,root,root,755)
-%{_datadir}/nautilus-python/extensions/syncstate.py*
+%{_datadir}/nautilus-python/extensions/syncstate-ownCloud.py*
+%endif
+
+%if %{with caja}
+%files caja
+%defattr(644,root,root,755)
+%{_datadir}/caja-python/extensions/syncstate-ownCloud.py*
%endif
%if %{with doc}