| |
@@ -1,9 +1,7 @@
|
| |
- %global _hardened_build 1
|
| |
-
|
| |
Name: owncloud-client
|
| |
- Version: 2.6.0
|
| |
- %global vertag 13018
|
| |
- Release: 4%{?dist}
|
| |
+ Version: 2.6.3
|
| |
+ %global vertag 14058
|
| |
+ Release: 1%{?dist}
|
| |
Summary: The ownCloud Client
|
| |
|
| |
# -libs are LGPLv2+, rest GPLv2
|
| |
@@ -11,6 +9,7 @@
|
| |
Url: http://owncloud.org/sync-clients/
|
| |
Source0: https://download.owncloud.com/desktop/stable/owncloudclient-%{version}.%{vertag}.tar.xz
|
| |
Source1: owncloud.appdata.xml
|
| |
+
|
| |
# The patch does 3 things:
|
| |
# - Depends on system lib for QtSingleApplication and QtLockedFile
|
| |
# - Remove the extraneous namespace when calling QtSingleApplication
|
| |
@@ -18,7 +17,11 @@
|
| |
# Application::slotParseMessage slot
|
| |
# These fix are needed because the system wide QtSingleApplication is slightly
|
| |
# different from the bundled one.
|
| |
- Patch0: %{name}-2.6.0-syslibs.patch
|
| |
+ Patch0: owncloud-client-2.6.0-syslibs.patch
|
| |
+
|
| |
+ # Qt 5.15+ fix from Gentoo by Bernard Cafarelli
|
| |
+ # https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fdbacd407eb7482df2e52d2232b97daae639d8bc
|
| |
+ Patch1: owncloud-client-2.6.3.14058-qt515.patch
|
| |
|
| |
BuildRequires: check
|
| |
BuildRequires: cmake
|
| |
@@ -40,11 +43,9 @@
|
| |
BuildRequires: extra-cmake-modules
|
| |
|
| |
# Plasma 5 Dolphin integration
|
| |
- %if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
| |
BuildRequires: kf5-kio-devel
|
| |
BuildRequires: kf5-kcoreaddons-devel
|
| |
BuildRequires: kf5-rpm-macros
|
| |
- %endif
|
| |
|
| |
BuildRequires: sqlite-devel
|
| |
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
| |
@@ -101,8 +102,6 @@
|
| |
This package provides overlay icons to visualize the sync state
|
| |
in the nemo file manager.
|
| |
|
| |
- # Only Fedora has Mate, so there is no need for Caja extension on EPEL
|
| |
- %if 0%{?fedora}
|
| |
%package caja
|
| |
Summary: Caja overlay icons
|
| |
Requires: caja
|
| |
@@ -112,61 +111,41 @@
|
| |
%description caja
|
| |
This package provides overlay icons to visualize the sync state
|
| |
in the caja file manager.
|
| |
- %endif
|
| |
|
| |
- %if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
| |
%package dolphin
|
| |
Summary: Dolphin overlay icons
|
| |
Requires: dolphin
|
| |
|
| |
%description dolphin
|
| |
The owncloud desktop client dolphin extension.
|
| |
- %endif
|
| |
|
| |
%prep
|
| |
- %setup -q -n owncloudclient-%{version}.%{vertag}
|
| |
- %patch0 -p0
|
| |
+ %autosetup -p1 -n owncloudclient-%{version}.%{vertag}
|
| |
|
| |
rm -rf src/3rdparty/qtlockedfile src/3rdparty/qtsingleapplication
|
| |
|
| |
|
| |
%build
|
| |
- mkdir build
|
| |
- pushd build
|
| |
- %cmake_kf5 .. -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
|
| |
- make %{?_smp_mflags}
|
| |
- popd
|
| |
+ %cmake_kf5 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed"
|
| |
+ %cmake_build
|
| |
|
| |
|
| |
%install
|
| |
- pushd build
|
| |
- make install DESTDIR=%{buildroot}
|
| |
- popd
|
| |
+ %cmake_install
|
| |
%find_lang client --with-qt
|
| |
mkdir -p %{buildroot}%{_datadir}/appdata/
|
| |
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/owncloud.appdata.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
|
| |
|
| |
- # Only Fedora has Mate, so there is no need for Caja extension on EPEL
|
| |
- %if 0%{?rhel}
|
| |
- rm -rf %{buildroot}%{_datadir}/caja-python/
|
| |
- %endif
|
| |
|
| |
%check
|
| |
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/owncloud.appdata.xml
|
| |
|
| |
- %ldconfig_scriptlets libs
|
| |
-
|
| |
- %if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
| |
- %ldconfig_scriptlets dolphin
|
| |
- %endif
|
| |
|
| |
%files -f client.lang
|
| |
%{_bindir}/owncloud
|
| |
@@ -198,24 +177,21 @@
|
| |
%files nemo
|
| |
%{_datadir}/nemo-python/extensions/*
|
| |
|
| |
- # Only Fedora has Mate, so there is no need for Caja extension on EPEL
|
| |
- %if 0%{?fedora}
|
| |
%files caja
|
| |
%{_datadir}/caja-python/extensions/*
|
| |
- %endif
|
| |
|
| |
- %if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
| |
%files dolphin
|
| |
%{_libdir}/libownclouddolphinpluginhelper.so
|
| |
%{_kf5_plugindir}/overlayicon/ownclouddolphinoverlayplugin.so
|
| |
%{_qt5_plugindir}/ownclouddolphinactionplugin.so
|
| |
%{_kf5_datadir}/kservices5/ownclouddolphinactionplugin.desktop
|
| |
- %endif
|
| |
+
|
| |
|
| |
%changelog
|
| |
- * Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-4
|
| |
- - Second attempt - Rebuilt for
|
| |
- https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
+ * Mon Dec 28 2020 Miro Hrončok <mhroncok@redhat.com> - 2.6.3-1
|
| |
+ - Update to 2.6.3
|
| |
+ - https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
|
| |
+ - Fixes: rhbz#1865188
|
| |
|
| |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.0-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
https://fedoraproject.org/wiki/Changes/CMake_to_do_out-of-source_builds
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1865188
Fixes https://bugs.gentoo.org/726172
Makes all patches -p1.
Cleans up old EPEL conditionals.