2019-12-24 01:15:43 +00:00
#
# spec file for package nextcloud-desktop
#
2022-02-11 14:22:11 +00:00
# Copyright (c) 2022 SUSE LLC
2019-12-24 01:15:43 +00:00
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2020-02-17 07:51:01 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2019-12-24 01:15:43 +00:00
#
%define soname libnextcloudsync
%define sover 0
Name : nextcloud-desktop
2022-05-18 05:54:30 +00:00
Version : 3.5.1
2019-12-24 01:15:43 +00:00
Release : 0
2020-03-09 10:31:15 +00:00
Summary : Nextcloud desktop synchronisation client
License : GPL-2.0-or-later AND LGPL-3.0-or-later
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2020-02-17 07:51:01 +00:00
URL : https://nextcloud.com/
2021-06-25 11:31:29 +00:00
Source : https://github.com/nextcloud/desktop/archive/v%{version} /%{name} -%{version} .tar.gz
2020-03-09 10:34:14 +00:00
Source1 : sysctl-sync-inotify.conf
2020-03-09 10:31:15 +00:00
# PATCH-FIX-OPENSUSE nextcloud-desktop-remove-datetime.patch sor.alexei@meowr.ru -- Remove __TIME__ and __DATE__.
Patch1 : nextcloud-desktop-remove-datetime.patch
2022-07-03 15:33:37 +00:00
# PATCH-FIX-OPENSUSE nextcloud-remove-fortify-source-2.patch code@bnavigator.de -- Remove hardcoding of _FORTIFY_SOURCE=2 in order to not conflict with distribtion presets, boo#1201070, gh#nextcloud/desktop#4697
Patch2 : nextcloud-remove-fortify-source-2.patch
2020-03-09 10:31:15 +00:00
BuildRequires : AppStream
BuildRequires : cmake >= 3.2
2021-01-29 11:29:07 +00:00
BuildRequires : extra-cmake-modules
2019-12-24 01:15:43 +00:00
BuildRequires : fdupes
2020-02-17 07:51:01 +00:00
BuildRequires : gcc-c++
2020-03-09 10:31:15 +00:00
BuildRequires : glibc-devel
BuildRequires : gobject-introspection-devel
BuildRequires : hicolor-icon-theme
2021-08-03 12:04:45 +00:00
BuildRequires : inkscape >= 1.0
2020-12-14 14:44:42 +00:00
BuildRequires : libQt5Gui-private-headers-devel
2020-03-09 10:31:15 +00:00
BuildRequires : libqt5-linguist-devel
2019-12-24 01:15:43 +00:00
BuildRequires : pkgconfig
2020-03-09 10:31:15 +00:00
BuildRequires : qtkeychain-qt5-devel
2020-02-17 07:51:01 +00:00
BuildRequires : update-desktop-files
2021-01-29 11:29:07 +00:00
BuildRequires : cmake(KF5Config)
2021-04-08 19:40:59 +00:00
BuildRequires : cmake(KF5KIO) >= 5.16
2022-05-03 12:18:41 +00:00
###BuildRequires: cmake(Qt5Keychain)
2019-12-24 01:15:43 +00:00
BuildRequires : pkgconfig(Qt5Concurrent)
2022-02-11 14:22:11 +00:00
BuildRequires : pkgconfig(Qt5Core) >= 5.15
2019-12-24 01:15:43 +00:00
BuildRequires : pkgconfig(Qt5DBus)
BuildRequires : pkgconfig(Qt5Gui)
BuildRequires : pkgconfig(Qt5Network)
2020-03-09 10:31:15 +00:00
BuildRequires : pkgconfig(Qt5PrintSupport)
2020-08-21 20:57:35 +00:00
BuildRequires : pkgconfig(Qt5QuickControls2)
2020-03-09 10:31:15 +00:00
BuildRequires : pkgconfig(Qt5Sql)
2020-08-21 20:57:35 +00:00
BuildRequires : pkgconfig(Qt5Svg)
2019-12-24 01:15:43 +00:00
BuildRequires : pkgconfig(Qt5WebEngineWidgets)
2021-01-29 11:29:07 +00:00
BuildRequires : pkgconfig(Qt5WebSockets)
2019-12-24 01:15:43 +00:00
BuildRequires : pkgconfig(Qt5Xml)
2020-08-28 18:43:53 +00:00
BuildRequires : pkgconfig(cloudproviders)
2021-08-03 12:04:45 +00:00
BuildRequires : pkgconfig(cmocka)
2020-02-17 07:51:01 +00:00
BuildRequires : pkgconfig(dbus-1)
2020-03-09 10:31:15 +00:00
BuildRequires : pkgconfig(openssl) >= 1.1
2020-02-17 07:51:01 +00:00
BuildRequires : pkgconfig(sqlite3)
2019-12-24 01:15:43 +00:00
BuildRequires : pkgconfig(zlib)
Requires : %{soname} %{sover} = %{version}
2020-10-27 23:48:27 +00:00
Requires : libqt5-qtgraphicaleffects
Requires : libqt5-qtquickcontrols2
2019-12-24 01:15:43 +00:00
Provides : nextcloud-client = %{version}
Obsoletes : nextcloud-client < %{version}
2020-07-09 18:54:20 +00:00
Provides : nextcloud-client-lang = %{version}
2020-03-09 11:09:47 +00:00
Obsoletes : nextcloud-client-lang < %{version}
2020-03-09 10:31:15 +00:00
%if 0%{?is_opensuse}
BuildRequires : doxygen
2022-05-03 12:18:41 +00:00
#BuildRequires: python3-MarkupSafe
2020-03-09 10:31:15 +00:00
BuildRequires : python3-Sphinx
2022-05-03 12:18:41 +00:00
#BuildRequires: python3-importlib-metadata
2020-03-09 10:31:15 +00:00
Suggests : %{name} -doc = %{version}
%endif
2019-12-24 01:15:43 +00:00
%description
2020-03-09 10:31:15 +00:00
The Nextcloud Desktop Client is a tool to synchronise files from
the Nextcloud Server with your computer.
2020-03-09 10:32:52 +00:00
Nextcloud Desktop enables you to connect to your private
2020-03-09 10:31:15 +00:00
Nextcloud Server. With it you can create directories in your home
directory, and keep the contents of those directories synced with
the server. Simply copy a file into the directory and the desktop
synchronisation client does the rest.
2019-12-24 01:15:43 +00:00
%lang_package
2020-03-09 10:31:15 +00:00
%if 0%{?is_opensuse}
2019-12-24 01:15:43 +00:00
%package doc
2020-03-09 10:31:15 +00:00
Summary : Documentation for nextcloud-desktop
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2020-03-09 10:31:15 +00:00
Provides : nextcloud-client-doc = %{version}
Obsoletes : nextcloud-client-doc < %{version}
2020-02-17 07:51:01 +00:00
BuildArch : noarch
2019-12-24 01:15:43 +00:00
%description doc
2020-03-09 10:31:15 +00:00
The Nextcloud Desktop Client is a tool to synchronise files from
2019-12-24 01:15:43 +00:00
the Nextcloud Server with your computer.
2020-03-09 10:31:15 +00:00
2019-12-24 01:15:43 +00:00
This package contains the documentation.
2020-03-09 10:31:15 +00:00
%endif
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%package -n %{soname}%{sover}
Summary : The Nextcloud synchronisation library
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%description -n %{soname}%{sover}
The Nextcloud Desktop Client synchronisation library.
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%package -n %{soname}-devel
Summary : Development files for the Nextcloud synchronisation library
2020-07-09 18:54:20 +00:00
Group : Development/Libraries/C and C++
2020-03-09 10:31:15 +00:00
Requires : %{soname} %{sover} = %{version}
%description -n %{soname}-devel
Development files for the Nextcloud Desktop Client synchronisation
library.
%package -n nautilus-extension-nextcloud
2019-12-24 01:15:43 +00:00
Summary : Nautilus overlay icons
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2019-12-24 01:15:43 +00:00
Requires : %{name} = %{version}
Requires : nautilus
Requires : python3-nautilus
2020-02-17 07:51:01 +00:00
Supplements: (%{name} and nautilus)
2019-12-24 01:15:43 +00:00
BuildArch : noarch
2020-03-09 10:31:15 +00:00
%description -n nautilus-extension-nextcloud
2019-12-24 01:15:43 +00:00
This package provides overlay icons to visualise the
synchronisation state in the Nautilus file manager.
2020-03-09 10:31:15 +00:00
%if 0%{?is_opensuse}
%package -n caja-extension-nextcloud
Summary : Caja overlay icons
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2020-03-09 10:31:15 +00:00
Requires : %{name} = %{version}
Requires : caja
Requires : python-caja
Supplements: (%{name} and caja)
BuildArch : noarch
%description -n caja-extension-nextcloud
This package provides overlay icons to visualise the
synchronisation state in the Caja file manager.
%package -n nemo-extension-nextcloud
2019-12-24 01:15:43 +00:00
Summary : Nemo overlay icons
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2019-12-24 01:15:43 +00:00
Requires : %{name} = %{version}
Requires : nemo
Requires : python-nemo
2020-02-17 07:51:01 +00:00
Supplements: (%{name} and nemo)
2019-12-24 01:15:43 +00:00
BuildArch : noarch
2020-03-09 10:31:15 +00:00
%description -n nemo-extension-nextcloud
2019-12-24 01:15:43 +00:00
This package provides overlay icons to visualise the
synchronisation state in the Nemo file manager.
2020-03-09 10:31:15 +00:00
%package -n %{name}-dolphin
2019-12-24 01:15:43 +00:00
Summary : Dolphin overlay icons
2020-06-08 15:11:42 +00:00
Group : Productivity/Networking/File-Sharing
2019-12-24 01:15:43 +00:00
Requires : %{name} = %{version}
Requires : dolphin
2020-02-17 07:51:01 +00:00
Supplements: (%{name} and dolphin)
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%description -n %{name}-dolphin
2019-12-24 01:15:43 +00:00
This package provides the necessary plugin libraries for the
Dolphin filemanager to display overlay icons.
2020-03-09 10:31:15 +00:00
%endif
2019-12-24 01:15:43 +00:00
%prep
2022-07-03 15:33:37 +00:00
%autosetup -p1 -n desktop-%{version}
2020-03-09 10:39:32 +00:00
cp -a %{SOURCE1} sysctl-sync-inotify.conf
2019-12-24 01:15:43 +00:00
%build
2022-07-01 11:35:40 +00:00
2020-03-09 10:31:15 +00:00
%cmake \
%if 0%{?is_opensuse}
2021-04-08 19:40:59 +00:00
-DWITH_DOC=ON \
-DNO_SHIBBOLETH=1
2020-03-09 10:31:15 +00:00
%endif
%cmake_build
2019-12-24 01:15:43 +00:00
%install
2020-03-09 10:31:15 +00:00
%cmake_install
%if 0%{?is_opensuse}
mkdir -p %{buildroot} %{_docdir} /%{name} -doc/
2020-03-09 10:54:33 +00:00
mv -f %{buildroot} %{_datadir} /doc/client/nextcloud-client/html/ \
2020-03-09 10:31:15 +00:00
%{buildroot} %{_docdir} /%{name} -doc/html/
%else
# There's no Caja and Nemo in SLE.
rm -r %{buildroot} %{_datadir} /caja-python/
rm -r %{buildroot} %{_datadir} /nemo-python/
%endif
# Generate bytecode for extensions.
for fm in caja nautilus nemo; do
if [ -d %{buildroot} %{_datadir} /$fm-python/ ]; then
%py3_compile %{buildroot} %{_datadir} /$fm-python/extensions/
fi
done
# ecsos: Comment this out, because it seems to be a security risk.
# See: https://github.com/owncloud/client/issues/4107#issuecomment-240627858
2019-12-24 01:15:43 +00:00
# A workaround for gh#owncloud/client#4107
2020-03-09 10:31:15 +00:00
#install -Dpm 0644 sysctl-sync-inotify.conf \
# %%{buildroot}%%{_sysconfdir}/sysctl.d/99-%%{name}-sync-inotify.conf
2019-12-24 01:15:43 +00:00
2020-07-09 18:54:20 +00:00
%suse_update_desktop_file com.nextcloud.desktopclient.nextcloud
2019-12-24 01:15:43 +00:00
%fdupes %{buildroot} %{_datadir} /
%post -n %{soname}%{sover} -p /sbin/ldconfig
2020-03-09 10:31:15 +00:00
2019-12-24 01:15:43 +00:00
%postun -n %{soname}%{sover} -p /sbin/ldconfig
%files
2020-03-09 10:31:15 +00:00
%license COPYING*
%config %{_sysconfdir} /Nextcloud/
2020-03-09 11:00:39 +00:00
#%%config %%{_sysconfdir}/sysctl.d/99-%%{name}-sync-inotify.conf
2019-12-24 01:15:43 +00:00
%{_bindir} /nextcloud*
2020-03-09 10:31:15 +00:00
%dir %{_datadir} /nextcloud/
2020-07-09 18:54:20 +00:00
%{_datadir} /applications/com.nextcloud.desktopclient.nextcloud.desktop
2020-03-09 10:31:15 +00:00
%dir %{_datadir} /icons/hicolor/1024x1024/
%dir %{_datadir} /icons/hicolor/1024x1024/apps/
%{_datadir} /icons/hicolor/*/apps/Nextcloud*.*
2020-08-28 18:43:53 +00:00
%dir %{_datadir} /cloud-providers/
%{_datadir} /cloud-providers/com.nextcloudgmbh.Nextcloud.ini
%{_datadir} /dbus-1/services/com.nextcloudgmbh.Nextcloud.service
2021-04-08 19:40:59 +00:00
%{_datadir} /mime/packages/nextcloud.xml
2019-12-24 01:15:43 +00:00
%files lang
%{_datadir} /nextcloud/i18n/
2020-03-09 10:31:15 +00:00
%if 0%{?is_opensuse}
2019-12-24 01:15:43 +00:00
%files doc
2020-03-09 10:31:15 +00:00
%doc %{_docdir} /%{name} -doc/
%endif
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%files -n %{soname}%{sover}
%license COPYING*
%{_libdir} /%{soname} .so.*
2021-04-08 19:40:59 +00:00
%{_libdir} /libnextcloud_csync.so.*
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%files -n %{soname}-devel
%{_includedir} /nextcloudsync/
%{_libdir} /%{soname} .so
2021-04-08 19:40:59 +00:00
%{_libdir} /libnextcloud_csync.so
2021-08-03 12:04:45 +00:00
%{_libdir} /nextcloudsync_vfs_*.so
2020-03-09 10:31:15 +00:00
%files -n nautilus-extension-nextcloud
2019-12-24 01:15:43 +00:00
%dir %{_datadir} /nautilus-python/
%dir %{_datadir} /nautilus-python/extensions/
2020-03-09 10:31:15 +00:00
%dir %{_datadir} /nautilus-python/extensions/__pycache__
2019-12-24 01:15:43 +00:00
%{_datadir} /nautilus-python/extensions/syncstate-Nextcloud.py*
2020-03-09 10:31:15 +00:00
%{_datadir} /nautilus-python/extensions/__pycache__/syncstate-Nextcloud*
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%if 0%{?is_opensuse}
%files -n caja-extension-nextcloud
%dir %{_datadir} /caja-python/
%dir %{_datadir} /caja-python/extensions/
%dir %{_datadir} /caja-python/extensions/__pycache__
%{_datadir} /caja-python/extensions/syncstate-Nextcloud.py*
%{_datadir} /caja-python/extensions/__pycache__/*
%files -n nemo-extension-nextcloud
2019-12-24 01:15:43 +00:00
%dir %{_datadir} /nemo-python/
%dir %{_datadir} /nemo-python/extensions/
2020-03-09 10:31:15 +00:00
%dir %{_datadir} /nemo-python/extensions/__pycache__
2019-12-24 01:15:43 +00:00
%{_datadir} /nemo-python/extensions/syncstate-Nextcloud.py*
2020-03-09 10:31:15 +00:00
%{_datadir} /nemo-python/extensions/__pycache__/*
2019-12-24 01:15:43 +00:00
2020-03-09 10:31:15 +00:00
%files dolphin
2019-12-24 01:15:43 +00:00
%{_libdir} /libnextclouddolphinpluginhelper.so
%{_libdir} /qt5/plugins/nextclouddolphinactionplugin.so
2020-03-09 10:31:15 +00:00
%dir %{_libdir} /qt5/plugins/kf5/overlayicon/
2019-12-24 01:15:43 +00:00
%{_libdir} /qt5/plugins/kf5/overlayicon/nextclouddolphinoverlayplugin.so
%{_datadir} /kservices5/nextclouddolphinactionplugin.desktop
2020-03-09 10:31:15 +00:00
%endif
2019-12-24 01:15:43 +00:00
%changelog