|
|
@ -1,20 +1,15 @@
|
|
|
|
# This package depends on automagic byte compilation
|
|
|
|
|
|
|
|
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
|
|
|
|
|
|
|
|
%global _python_bytecompile_extra 1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global _hardened_build 1
|
|
|
|
%global _hardened_build 1
|
|
|
|
|
|
|
|
|
|
|
|
Name: nextcloud-client
|
|
|
|
Name: nextcloud-client
|
|
|
|
Version: 2.4.0
|
|
|
|
Version: 2.5.0
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: The Nextcloud Client
|
|
|
|
Summary: The Nextcloud Client
|
|
|
|
|
|
|
|
|
|
|
|
# -libs are LGPLv2+, rest GPLv2
|
|
|
|
# -libs are LGPLv2+, rest GPLv2
|
|
|
|
License: LGPLv2+ and GPLv2
|
|
|
|
License: LGPLv2+ and GPLv2
|
|
|
|
Url: https://nextcloud.com/install/#install-clients
|
|
|
|
Url: https://nextcloud.com/install/#install-clients
|
|
|
|
Source0: https://github.com/nextcloud/client_theming/archive/v2.3.3.tar.gz
|
|
|
|
Source0: https://github.com/nextcloud/desktop/archive/desktop-%{version}.tar.gz
|
|
|
|
Source1: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.tar.xz
|
|
|
|
Source1: nextcloud.appdata.xml
|
|
|
|
Source2: nextcloud.appdata.xml
|
|
|
|
|
|
|
|
# The patch does 3 things:
|
|
|
|
# The patch does 3 things:
|
|
|
|
# - Depends on system lib for QtSingleApplication and QtLockedFile
|
|
|
|
# - Depends on system lib for QtSingleApplication and QtLockedFile
|
|
|
|
# - Remove the extraneous namespace when calling QtSingleApplication
|
|
|
|
# - Remove the extraneous namespace when calling QtSingleApplication
|
|
|
@ -22,7 +17,7 @@ Source2: nextcloud.appdata.xml
|
|
|
|
# Application::slotParseMessage slot
|
|
|
|
# Application::slotParseMessage slot
|
|
|
|
# These fix are needed because the system wide QtSingleApplication is slightly
|
|
|
|
# These fix are needed because the system wide QtSingleApplication is slightly
|
|
|
|
# different from the bundled one.
|
|
|
|
# different from the bundled one.
|
|
|
|
Patch0: %{name}-%{version}-syslibs.patch
|
|
|
|
#Patch0: %{name}-%{version}-syslibs.patch
|
|
|
|
## patch 1 solves https://bugzilla.redhat.com/show_bug.cgi?id=1409252
|
|
|
|
## patch 1 solves https://bugzilla.redhat.com/show_bug.cgi?id=1409252
|
|
|
|
Patch1: %{name}-icon.patch
|
|
|
|
Patch1: %{name}-icon.patch
|
|
|
|
|
|
|
|
|
|
|
@ -30,6 +25,7 @@ BuildRequires: check
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: doxygen
|
|
|
|
|
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
BuildRequires: neon-devel
|
|
|
|
BuildRequires: neon-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
@ -43,6 +39,8 @@ BuildRequires: qt5-qtbase-gui
|
|
|
|
BuildRequires: qt5-qtwebkit-devel
|
|
|
|
BuildRequires: qt5-qtwebkit-devel
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel
|
|
|
|
BuildRequires: qt5-qtxmlpatterns-devel
|
|
|
|
BuildRequires: qt5-qttools qt5-qttools-devel
|
|
|
|
BuildRequires: qt5-qttools qt5-qttools-devel
|
|
|
|
|
|
|
|
BuildRequires: qt5-qtwebengine-devel
|
|
|
|
|
|
|
|
BuildRequires: qt5-qtsvg-devel
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
BuildRequires: extra-cmake-modules
|
|
|
|
# Plasma 5 Dolphin integration
|
|
|
|
# Plasma 5 Dolphin integration
|
|
|
|
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
|
|
|
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
|
|
@ -133,24 +131,15 @@ The nextcloud desktop client dolphin extension.
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
# 2.3.2 Nextcloud theme not yet available
|
|
|
|
%setup -q -n desktop-%{version}
|
|
|
|
%setup -q -n client_theming-2.3.3
|
|
|
|
#%%patch0 -p1
|
|
|
|
%setup -T -D -a 1 -n client_theming-2.3.3
|
|
|
|
#rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
|
|
|
|
##%setup -q -n client_theming-%{version}
|
|
|
|
|
|
|
|
##%setup -T -D -a 1 -n client_theming-%{version}
|
|
|
|
|
|
|
|
rm -Rf client
|
|
|
|
|
|
|
|
##mv owncloudclient-%{version} client
|
|
|
|
|
|
|
|
cd client
|
|
|
|
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
cd -
|
|
|
|
|
|
|
|
%patch1 -p1
|
|
|
|
|
|
|
|
rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
mkdir build
|
|
|
|
mkdir build
|
|
|
|
pushd build
|
|
|
|
pushd build
|
|
|
|
%cmake_kf5 .. -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" -D OEM_THEME_DIR=`pwd`/../nextcloudtheme ../client
|
|
|
|
%cmake_kf5 .. -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
|
|
|
@ -161,7 +150,7 @@ make install DESTDIR=%{buildroot}
|
|
|
|
popd
|
|
|
|
popd
|
|
|
|
%find_lang client --with-qt
|
|
|
|
%find_lang client --with-qt
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/appdata/
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml
|
|
|
|
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# for distros that do not have KDE Plasma 5
|
|
|
|
# for distros that do not have KDE Plasma 5
|
|
|
@ -172,11 +161,13 @@ rm -f %{buildroot}%{_qt5_plugindir}/nextclouddolphinactionplugin.so
|
|
|
|
rm -f %{buildroot}%{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop
|
|
|
|
rm -f %{buildroot}%{_kf5_datadir}/kservices5/nextclouddolphinactionplugin.desktop
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Only Fedora has Mate, so there is no need for Caja extension on EPEL
|
|
|
|
# Only Fedora has Mate, so there is no need for Caja extension on EPEL
|
|
|
|
%if 0%{?rhel}
|
|
|
|
%if 0%{?rhel}
|
|
|
|
rm -rf %{buildroot}%{_datadir}/caja-python/
|
|
|
|
rm -rf %{buildroot}%{_datadir}/caja-python/
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml
|
|
|
|
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/nextcloud.appdata.xml
|
|
|
|
|
|
|
|
|
|
|
@ -213,7 +204,6 @@ fi
|
|
|
|
%{_libdir}/libnextcloudsync.so.%{version}
|
|
|
|
%{_libdir}/libnextcloudsync.so.%{version}
|
|
|
|
%{_libdir}/nextcloud/libocsync.so.*
|
|
|
|
%{_libdir}/nextcloud/libocsync.so.*
|
|
|
|
%doc README.md
|
|
|
|
%doc README.md
|
|
|
|
%license client/COPYING
|
|
|
|
|
|
|
|
%config %{_sysconfdir}/Nextcloud/sync-exclude.lst
|
|
|
|
%config %{_sysconfdir}/Nextcloud/sync-exclude.lst
|
|
|
|
%dir %{_sysconfdir}/Nextcloud
|
|
|
|
%dir %{_sysconfdir}/Nextcloud
|
|
|
|
|
|
|
|
|
|
|
@ -243,8 +233,11 @@ fi
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Mon Nov 19 2018 Germano Massullo <germano.massullo@gmail.com> - 2.4.0-3
|
|
|
|
* Thu Nov 15 2018 Germano Massullo <germano@germanomassullo.org> - 2.5.0-1
|
|
|
|
- rebuilt
|
|
|
|
- 2.5.0 release
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 15 2018 Germano Massullo <germano.massullo@gmail.com> - 2.5.0-0.1
|
|
|
|
|
|
|
|
- 2.5.0 beta 1
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|