[packages/seafile-client] - up to 8.0.4
baggins
baggins at pld-linux.org
Tue Oct 12 23:51:27 CEST 2021
commit 43b77eb2a164ee5f6e2945a939dd59242f25cc95
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Tue Oct 12 23:51:12 2021 +0200
- up to 8.0.4
seafile-client.spec | 14 ++++++++++----
unknowwn-errors.patch | 34 ++++++++++++++++++++++++++++++++++
2 files changed, 44 insertions(+), 4 deletions(-)
---
diff --git a/seafile-client.spec b/seafile-client.spec
index 8738566..add32b4 100644
--- a/seafile-client.spec
+++ b/seafile-client.spec
@@ -1,11 +1,12 @@
Summary: Seafile cloud storage desktop client
Name: seafile-client
-Version: 7.0.7
+Version: 8.0.4
Release: 1
License: Apache v2.0
Group: Applications/Networking
Source0: https://github.com/haiwen/seafile-client/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: d518b25f48526667f078c08793d512fc
+# Source0-md5: f1962a9033be781bf68acccc43c895ea
+Patch0: unknowwn-errors.patch
URL: https://www.seafile.com/
BuildRequires: Qt5Core-devel
BuildRequires: Qt5DBus-devel
@@ -43,9 +44,14 @@ team.
%prep
%setup -q
+%patch0 -p1
%build
-%cmake \
+mkdir -p build
+cd build
+%cmake ../ \
+ -DCMAKE_C_FLAGS="%{rpmcflags}" \
+ -DCMAKE_CXX_FLAGS="%{rpmcxxflags}" \
-Dqmake_executable:FILEPATH=/usr/bin/qmake-qt5 \
-DUSE_QT5=ON \
-DCMAKE_BUILD_TYPE=Release .
@@ -54,7 +60,7 @@ team.
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
+%{__make} -C build install \
DESTDIR=$RPM_BUILD_ROOT
desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/seafile.desktop
diff --git a/unknowwn-errors.patch b/unknowwn-errors.patch
new file mode 100644
index 0000000..a4b3279
--- /dev/null
+++ b/unknowwn-errors.patch
@@ -0,0 +1,34 @@
+--- seafile-client-8.0.4/src/utils/seafile-error.cpp~ 2021-09-17 04:23:54.000000000 +0200
++++ seafile-client-8.0.4/src/utils/seafile-error.cpp 2021-10-12 23:38:32.287064065 +0200
+@@ -99,14 +99,6 @@
+ case SYNC_ERROR_ID_REMOVE_UNCOMMITTED_FOLDER:
+ error_str = QObject::tr("A folder that may contain not-yet-uploaded files is moved to seafile-recycle-bin folder.");
+ break;
+-#if !defined(Q_OS_WIN32)
+- case SYNC_ERROR_ID_INVALID_PATH_ON_WINDOWS:
+- error_str = QObject::tr("The file path contains symbols that are not supported by the Windows system");
+- break;
+-#endif
+- case SYNC_ERROR_ID_LIBRARY_TOO_LARGE:
+- error_str = QObject::tr("Library is too large to sync.");
+- break;
+ default:
+ qWarning("Unknown sync error");
+ }
+--- seafile-client-8.0.4/src/message-poller.cpp~ 2021-09-17 04:23:54.000000000 +0200
++++ seafile-client-8.0.4/src/message-poller.cpp 2021-10-12 23:39:51.737017902 +0200
+@@ -176,14 +176,6 @@
+ case SYNC_ERROR_ID_REMOVE_UNCOMMITTED_FOLDER:
+ msg = tr("Folder %1 is moved to seafile-recycle-bin folder since it contains not-yet uploaded files.").arg(path);
+ break;
+-#if !defined(Q_OS_WIN32)
+- case SYNC_ERROR_ID_INVALID_PATH_ON_WINDOWS:
+- msg = tr("The file path %1 contains symbols that are not supported by the Windows system.").arg(path);
+- break;
+-#endif
+- case SYNC_ERROR_ID_LIBRARY_TOO_LARGE:
+- msg = tr("Library is too large to sync.");
+- break;
+ default:
+ qWarning("Unknown sync error id %d", err_id);
+ json_decref(object);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/seafile-client.git/commitdiff/43b77eb2a164ee5f6e2945a939dd59242f25cc95
More information about the pld-cvs-commit
mailing list