Compare commits

...

22 Commits

Author SHA1 Message Date
bf15c71498 automatic version update by autodist [release 9.0.12-1mamba;Sat Feb 15 2025] 2025-02-16 11:53:46 +01:00
6561629c50 automatic version update by autodist [release 9.0.11-1mamba;Fri Nov 15 2024] 2024-11-15 14:10:18 +01:00
758ad7d779 automatic version update by autodist [release 9.0.10-1mamba;Tue Nov 12 2024] 2024-11-12 20:56:26 +01:00
aede04f79c automatic version update by autodist [release 9.0.9-1mamba;Wed Oct 23 2024] 2024-10-24 23:08:46 +02:00
92f1caf070 added appdata metainfo file [release 9.0.8-2mamba;Fri Oct 18 2024] 2024-10-19 01:00:36 +02:00
bf9dd2c154 automatic version update by autodist [release 9.0.8-1mamba;Fri Aug 16 2024] 2024-08-18 22:57:18 +02:00
cf0d7a4d54 automatic version update by autodist [release 9.0.7-1mamba;Tue Jul 23 2024] 2024-07-23 20:43:42 +02:00
9668fb8912 automatic version update by autodist [release 9.0.6-1mamba;Wed Jun 26 2024] 2024-06-27 14:09:22 +02:00
93c5f5dc6a rebuilt with qt6 [release 9.0.5-2mamba;Sat Mar 30 2024] 2024-04-03 01:25:58 +02:00
98dcf69850 automatic version update by autodist [release 9.0.5-1mamba;Wed Feb 28 2024] 2024-02-28 15:06:08 +01:00
49e25baab5 automatic version update by autodist [release 9.0.4-1mamba;Sat Sep 16 2023] 2024-01-05 17:43:38 +01:00
0fceac8f76 automatic version update by autodist [release 9.0.3-1mamba;Fri Jun 30 2023] 2024-01-05 17:43:36 +01:00
7d4d5f1068 automatic version update by autodist [release 9.0.2-1mamba;Fri Apr 28 2023] 2024-01-05 17:43:35 +01:00
1fc079dbd9 automatic version update by autodist [release 9.0.1-1mamba;Wed Mar 22 2023] 2024-01-05 17:43:34 +01:00
f830a273e3 automatic version update by autodist [release 8.0.10-1mamba;Thu Dec 29 2022] 2024-01-05 17:43:33 +01:00
3799b48452 automatic version update by autodist [release 8.0.9-1mamba;Sat Nov 19 2022] 2024-01-05 17:43:33 +01:00
cf2af24dd8 automatic version update by autodist [release 8.0.6-1mamba;Sat Feb 26 2022] 2024-01-05 17:43:33 +01:00
334c0c9309 automatic version update by autodist [release 8.0.5-1mamba;Fri Nov 19 2021] 2024-01-05 17:43:33 +01:00
da32be90b8 automatic version update by autodist [release 8.0.4-1mamba;Thu Sep 16 2021] 2024-01-05 17:43:33 +01:00
a469aef2fc automatic version update by autodist [release 8.0.3-1mamba;Mon Jun 28 2021] 2024-01-05 17:43:33 +01:00
e3307270d4 update to 8.0.1 [release 8.0.1-1mamba;Thu Dec 31 2020] 2024-01-05 17:43:32 +01:00
57df5a8d94 update to 7.0.2 [release 7.0.2-1mamba;Sat Sep 14 2019] 2024-01-05 17:43:32 +01:00
6 changed files with 140 additions and 51 deletions

View File

@ -2,3 +2,4 @@
Seafile desktop client.

View File

@ -1,13 +0,0 @@
--- seafile-client-4.4.2/src/seafile-applet.cpp.orig 2016-03-08 13:28:23.124439314 +0100
+++ seafile-client-4.4.2/src/seafile-applet.cpp 2016-03-08 13:28:36.250436044 +0100
@@ -410,10 +410,6 @@
configurator_->installCustomUrlHandler();
#endif
- if (settings_mgr_->isCheckLatestVersionEnabled()) {
- checkLatestVersionInfo();
- }
-
OpenLocalHelper::instance()->checkPendingOpenLocalRequest();
QTimer::singleShot(kIntervalForUpdateRepoProperty,

View File

@ -1,20 +0,0 @@
--- seafile-client-6.0.7/src/utils/utils.cpp.orig 2017-07-12 17:02:33.804293399 +0200
+++ seafile-client-6.0.7/src/utils/utils.cpp 2017-07-12 17:03:05.801440950 +0200
@@ -468,7 +468,7 @@
} else if (json_is_string(value)) {
v = QString::fromUtf8(json_string_value(value));
} else if (json_is_integer(value)) {
- v = json_integer_value(value);
+ v = QVariant::fromValue(json_integer_value(value));
} else if (json_is_real(value)) {
v = json_real_value(value);
} else if (json_is_boolean(value)) {
@@ -510,7 +510,7 @@
} else if (json_is_string(value)) {
v = QString::fromUtf8(json_string_value(value));
} else if (json_is_integer(value)) {
- v = json_integer_value(value);
+ v = QVariant::fromValue(json_integer_value(value));
} else if (json_is_real(value)) {
v = json_real_value(value);
} else if (json_is_boolean(value)) {

View File

@ -0,0 +1,21 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index fd16f046..5c195178 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,14 +133,14 @@ ENDIF()
####################
###### BEGIN: QT configuration
####################
-FIND_PROGRAM(qmake_executable NAMES qmake qmake.exe)
+FIND_PROGRAM(qmake_executable NAMES qmake-qt6)
EXECUTE_PROCESS(COMMAND
bash -c "${qmake_executable} --version | grep -iE '^using qt version [0-9.]+' | awk '{print $4}'"
OUTPUT_VARIABLE DETECTED_QT_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE)
MESSAGE("Qt version: ${DETECTED_QT_VERSION}")
EXECUTE_PROCESS(COMMAND
- bash -c "qmake --version|grep -iE '^using qt version [0-9]'|awk '{print $4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
+ bash -c "${qmake_executable} --version|grep -iE '^using qt version [0-9]'|awk '{print $4}'|grep -iE '^[0-9]'|awk -F . '{print $1}'"
OUTPUT_VARIABLE QT_VERSION_MAJOR
OUTPUT_STRIP_TRAILING_WHITESPACE)
MESSAGE("QT_VERSION_MAJOR: ${QT_VERSION_MAJOR}")

View File

@ -1,57 +1,58 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: seafile-client
Version: 6.2.9
Version: 9.0.12
Release: 1mamba
Summary: Seafile desktop client
Group: Graphical Desktop/Applications/Archiving
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://seafile.com
## GITSOURCE https://github.com/haiwen/seafile-client.git v3.1.5
URL: https://www.seafile.com/en/home/
Source: https://github.com/haiwen/seafile-client.git/v%{version}/seafile-client-%{version}.tar.bz2
Patch0: seafile-client-4.4.2-disable-latest-version-check.patch
Patch1: seafile-client-6.0.7-qt5-5.7.1.patch
Source1: seafile.appdata.xml
Patch1: seafile-client-9.0.5-qt6-6.6.3.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libccnet-devel
BuildRequires: libQt6Core
BuildRequires: libQt6DBus
BuildRequires: libQt6Gui
BuildRequires: libQt6Network
BuildRequires: libQt6Widgets
BuildRequires: libevent-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libglvnd-devel
BuildRequires: libjansson-devel
BuildRequires: libopenssl-devel
BuildRequires: libqt5-devel
BuildRequires: libseafile-devel
BuildRequires: libsearpc-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libuuid-devel
BuildRequires: libz-devel
BuildRequires: qt6-qt5compat-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
Requires: seafile >= %majver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Seafile desktop client.
%debug_package
%prep
%setup -q
#%patch0 -p1
%patch1 -p1
sed -i "s| qmake | qmake-qt5 |" CMakeLists.txt
%patch 1 -p1
%build
%cmake \
-DCMAKE_CXX_FLAGS="-fuse-ld=gold"
%cmake
%make
%cmake_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%cmake_install
install -D -m 644 -pv %{SOURCE1} %{buildroot}%{_metainfodir}/com.seafile.seafile-applet.appdata.xml
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -59,7 +60,8 @@ sed -i "s| qmake | qmake-qt5 |" CMakeLists.txt
%files
%defattr(-,root,root)
%{_bindir}/seafile-applet
%{_datadir}/applications/seafile.desktop
%{_datadir}/applications/com.seafile.seafile-applet.desktop
%{_metainfodir}/com.seafile.seafile-applet.appdata.xml
%{_datadir}/icons/hicolor/*/apps/seafile.png
%{_datadir}/icons/hicolor/scalable/apps/seafile.svg
%{_datadir}/pixmaps/seafile.png
@ -67,6 +69,75 @@ sed -i "s| qmake | qmake-qt5 |" CMakeLists.txt
#%doc README.md
%changelog
* Sat Feb 15 2025 Automatic Build System <autodist@openmamba.org> 9.0.12-1mamba
- automatic version update by autodist
* Fri Nov 15 2024 Automatic Build System <autodist@openmamba.org> 9.0.11-1mamba
- automatic version update by autodist
* Tue Nov 12 2024 Automatic Build System <autodist@openmamba.org> 9.0.10-1mamba
- automatic version update by autodist
* Wed Oct 23 2024 Automatic Build System <autodist@openmamba.org> 9.0.9-1mamba
- automatic version update by autodist
* Fri Oct 18 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.8-2mamba
- added appdata metainfo file
* Fri Aug 16 2024 Automatic Build System <autodist@openmamba.org> 9.0.8-1mamba
- automatic version update by autodist
* Tue Jul 23 2024 Automatic Build System <autodist@openmamba.org> 9.0.7-1mamba
- automatic version update by autodist
* Wed Jun 26 2024 Automatic Build System <autodist@openmamba.org> 9.0.6-1mamba
- automatic version update by autodist
* Sat Mar 30 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 9.0.5-2mamba
- rebuilt with qt6
* Wed Feb 28 2024 Automatic Build System <autodist@openmamba.org> 9.0.5-1mamba
- automatic version update by autodist
* Sat Sep 16 2023 Automatic Build System <autodist@mambasoft.it> 9.0.4-1mamba
- automatic version update by autodist
* Fri Jun 30 2023 Automatic Build System <autodist@mambasoft.it> 9.0.3-1mamba
- automatic version update by autodist
* Fri Apr 28 2023 Automatic Build System <autodist@mambasoft.it> 9.0.2-1mamba
- automatic version update by autodist
* Wed Mar 22 2023 Automatic Build System <autodist@mambasoft.it> 9.0.1-1mamba
- automatic version update by autodist
* Mon Mar 20 2023 Automatic Build System <autodist@mambasoft.it> 9.0.0-1mamba
- automatic version update by autodist
* Thu Dec 29 2022 Automatic Build System <autodist@mambasoft.it> 8.0.10-1mamba
- automatic version update by autodist
* Sat Nov 19 2022 Automatic Build System <autodist@mambasoft.it> 8.0.9-1mamba
- automatic version update by autodist
* Sat Feb 26 2022 Automatic Build System <autodist@mambasoft.it> 8.0.6-1mamba
- automatic version update by autodist
* Fri Nov 19 2021 Automatic Build System <autodist@mambasoft.it> 8.0.5-1mamba
- automatic version update by autodist
* Thu Sep 16 2021 Automatic Build System <autodist@mambasoft.it> 8.0.4-1mamba
- automatic version update by autodist
* Mon Jun 28 2021 Automatic Build System <autodist@mambasoft.it> 8.0.3-1mamba
- automatic version update by autodist
* Thu Dec 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 8.0.1-1mamba
- update to 8.0.1
* Sat Sep 14 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.2-1mamba
- update to 7.0.2
* Tue Dec 11 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 6.2.9-1mamba
- update to 6.2.9

29
seafile.appdata.xml Normal file
View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>seafile.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<name>Seafile</name>
<summary>Seafile cloud storage desktop client</summary>
<description>
<p>
Seafile is a next-generation open source cloud storage system, with
advanced support for file syncing, privacy protection and teamwork.
</p>
<p>
Seafile allows users to create groups with file syncing, wiki, and discussion
to enable easy collaboration around documents within a team.
</p>
</description>
<screenshots>
<screenshot height="444" width="790" type="default">
<image>https://comzeradd.fedorapeople.org/screenshots/seafile.png</image>
</screenshot>
</screenshots>
<url type="homepage">https://www.seafile.com</url>
<url type="bugtracker">https://forum.seafile.com/</url>
<url type="help">https://help.seafile.com/</url>
<update_contact>daniel_dot_pan_at_seafile_dot_com</update_contact>
<project_license>Apache-2.0</project_license>
<developer_name>Seafile Ltd</developer_name>
<translation type="qt"/>
</component>