|
|
|
@ -4,13 +4,12 @@
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
Name: nextcloud-client
|
|
|
|
|
Version: 3.13.4
|
|
|
|
|
Version: 3.14.2
|
|
|
|
|
Release: %autorelease
|
|
|
|
|
Summary: The Nextcloud Client
|
|
|
|
|
|
|
|
|
|
# -libs are LGPLv2+, rest GPLv2
|
|
|
|
|
# Automatically converted from old format: LGPLv2+ and GPLv2 - review is highly recommended.
|
|
|
|
|
License: LicenseRef-Callaway-LGPLv2+ AND GPL-2.0-only
|
|
|
|
|
License: LGPL-2.1-or-later and GPL-2.0-only
|
|
|
|
|
Url: https://nextcloud.com/install/#install-clients
|
|
|
|
|
Source0: https://github.com/nextcloud/desktop/archive/v%{version}/desktop-%{version}.tar.gz
|
|
|
|
|
Source1: com.nextcloud.desktopclient.nextcloud.metainfo.xml
|
|
|
|
@ -37,38 +36,36 @@ BuildRequires: neon-devel
|
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
|
BuildRequires: pkgconfig(dbus-1)
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: qtlockedfile-qt5-devel
|
|
|
|
|
BuildRequires: qtkeychain-qt5-devel
|
|
|
|
|
BuildRequires: qtsingleapplication-qt5-devel
|
|
|
|
|
BuildRequires: qt5-qtbase
|
|
|
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-private-devel
|
|
|
|
|
BuildRequires: qt5-qtbase-gui
|
|
|
|
|
BuildRequires: qt5-qtwebkit-devel
|
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel
|
|
|
|
|
BuildRequires: qt5-qttools
|
|
|
|
|
BuildRequires: qt5-qttools-devel
|
|
|
|
|
BuildRequires: qt5-qtquickcontrols2-devel
|
|
|
|
|
BuildRequires: qt5-qtwebengine-devel
|
|
|
|
|
BuildRequires: qt5-qtwebsockets-devel
|
|
|
|
|
BuildRequires: qt5-qtsvg-devel
|
|
|
|
|
BuildRequires: qtlockedfile-qt6-devel
|
|
|
|
|
BuildRequires: qtkeychain-qt6-devel
|
|
|
|
|
BuildRequires: qtsingleapplication-qt6-devel
|
|
|
|
|
BuildRequires: qt6-qtbase-devel
|
|
|
|
|
BuildRequires: qt6-qtbase-private-devel
|
|
|
|
|
BuildRequires: qt6-qtbase-gui
|
|
|
|
|
BuildRequires: qt6-qtdeclarative-devel
|
|
|
|
|
BuildRequires: qt6-qttools
|
|
|
|
|
BuildRequires: qt6-qttools-devel
|
|
|
|
|
BuildRequires: qt6-qtscxml-devel
|
|
|
|
|
BuildRequires: qt6-qtquickcontrols2-devel
|
|
|
|
|
BuildRequires: qt6-qtwebengine-devel
|
|
|
|
|
BuildRequires: qt6-qtwebsockets-devel
|
|
|
|
|
BuildRequires: qt6-qtsvg-devel
|
|
|
|
|
BuildRequires: qt6-qt5compat-devel
|
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
|
BuildRequires: inkscape
|
|
|
|
|
# Plasma 5 Dolphin integration
|
|
|
|
|
BuildRequires: kf6-kio-devel
|
|
|
|
|
BuildRequires: kf6-kbookmarks-devel
|
|
|
|
|
|
|
|
|
|
# Dolphin integration
|
|
|
|
|
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
|
|
|
|
BuildRequires: qt6-qtbase-devel
|
|
|
|
|
BuildRequires: kf6-kio-devel
|
|
|
|
|
BuildRequires: kf5-karchive-devel
|
|
|
|
|
BuildRequires: kf6-karchive-devel
|
|
|
|
|
BuildRequires: kf6-kcoreaddons-devel
|
|
|
|
|
BuildRequires: kf6-rpm-macros
|
|
|
|
|
BuildRequires: kf6-kguiaddons-devel
|
|
|
|
|
%endif
|
|
|
|
|
BuildRequires: sqlite-devel
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
%if 0%{?fedora} && 0%{?fedora} < 33
|
|
|
|
|
# concerning libgnome-keyring read https://bugzilla.redhat.com/show_bug.cgi?id=1652973
|
|
|
|
|
Requires: libgnome-keyring
|
|
|
|
|
%endif
|
|
|
|
|
Requires: qt5-qtquickcontrols
|
|
|
|
|
|
|
|
|
|
Provides: mirall = %{version}-%{release}
|
|
|
|
|
Obsoletes: mirall < 1.8.0
|
|
|
|
@ -85,8 +82,7 @@ the directory and the Nextcloud Client does the rest.
|
|
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
|
Summary: Common files for nextcloud-client
|
|
|
|
|
# Automatically converted from old format: LGPLv2+ - review is highly recommended.
|
|
|
|
|
License: LicenseRef-Callaway-LGPLv2+
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Provides: mirall-common = %{version}-%{release}
|
|
|
|
|
Obsoletes: mirall-common < 1.8.0
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
@ -98,8 +94,7 @@ configuration file that determines the excluded files in a sync.
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
|
Summary: Development files for nextcloud-client
|
|
|
|
|
# Automatically converted from old format: LGPLv2+ - review is highly recommended.
|
|
|
|
|
License: LicenseRef-Callaway-LGPLv2+
|
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
@ -166,7 +161,7 @@ sed -i 's/-fPIE/-fPIC/g' src/gui/CMakeLists.txt
|
|
|
|
|
sed -i 's/-fPIE/-fPIC/g' src/cmd/CMakeLists.txt
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cmake_kf5 \
|
|
|
|
|
%cmake_kf6 \
|
|
|
|
|
-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" \
|
|
|
|
|
-DNO_SHIBBOLETH=1 \
|
|
|
|
|
-DBUILD_UPDATER=False
|
|
|
|
@ -176,25 +171,12 @@ sed -i 's/-fPIE/-fPIC/g' src/cmd/CMakeLists.txt
|
|
|
|
|
%install
|
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
|
|
# move dolphin plugins to kf5_plugindir
|
|
|
|
|
mkdir -p %{buildroot}%{_kf6_plugindir}
|
|
|
|
|
mv -v %{buildroot}%{_qt5_plugindir}/kf6/kfileitemaction %{buildroot}/%{_kf6_plugindir}
|
|
|
|
|
mv -v %{buildroot}%{_qt5_plugindir}/kf6/overlayicon/ %{buildroot}/%{_kf6_plugindir}
|
|
|
|
|
|
|
|
|
|
%find_lang client --with-qt
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/metainfo/
|
|
|
|
|
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/metainfo/com.nextcloud.desktopclient.nextcloud.metainfo.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# for distros that do not have KDE Plasma 5
|
|
|
|
|
%if 0%{?fedora} < 24 && 0%{?rhel} <= 7
|
|
|
|
|
rm -f %{buildroot}%{_libdir}/libnextclouddolphinpluginhelper.so
|
|
|
|
|
rm -f %{buildroot}%{_kf5_plugindir}/overlayicon/nextclouddolphinoverlayplugin.so
|
|
|
|
|
rm -f %{buildroot}%{_qt5_plugindir}/nextclouddolphinactionplugin.so
|
|
|
|
|
rm -f %{buildroot}%{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?rhel}
|
|
|
|
|
# Only Fedora has Cinnamon, so there is no need for Nemo extension on EPEL
|
|
|
|
|
rm -rf %{buildroot}%{_datadir}/nemo-python/
|
|
|
|
|