Added support of yandex webdav

i9 changed/i9/gnome-online-accounts-3.40.0-2.el9.inferit.3
Alexey Berezhok 1 year ago
parent 7cf24656fb
commit 2ed1c1dafa

@ -0,0 +1,34 @@
From 7e3e59a4ab72c7fdcedf00e28247f565cdc3f84d Mon Sep 17 00:00:00 2001
From: Alexey Berezhok <alexey.berezhok@softline.com>
Date: Mon, 21 Aug 2023 16:56:22 +0300
Subject: [PATCH] Added yandex disk webdav support
---
src/goabackend/goayandexprovider.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/goabackend/goayandexprovider.c b/src/goabackend/goayandexprovider.c
index ab74283..acaa599 100644
--- a/src/goabackend/goayandexprovider.c
+++ b/src/goabackend/goayandexprovider.c
@@ -99,7 +99,7 @@ get_scope (GoaOAuth2Provider *oauth2_provider)
static guint
get_credentials_generation (GoaProvider *provider)
{
- return 24;
+ return 34;
}
static const gchar *
@@ -284,7 +284,7 @@ build_object (GoaProvider *provider,
/* Files */
files_enabled = g_key_file_get_boolean (key_file, group, "FilesEnabled", NULL);
- uri_drive = g_strconcat ("https://cloud-api.yandex.net/v1/disk", NULL);
+ uri_drive = g_strconcat ("davs://webdav.yandex.ru/", NULL);
goa_object_skeleton_attach_files (object, uri_drive, files_enabled, FALSE);
g_free (uri_drive);
--
2.39.1

@ -6,7 +6,7 @@
Name: gnome-online-accounts
Version: 3.40.0
Release: 2%{?dist}.inferit.2
Release: 2%{?dist}.inferit.3
Summary: Single sign-on framework for GNOME
License: LGPLv2+
@ -21,6 +21,7 @@ Patch0: 0001-Remove-Documents-support.patch
Patch1: 0001-google-Remove-Photos-support.patch
Patch2: 0001-Added-yandex-provider-prebuild-version.patch
Patch3: 0001-Added-yandex-disk-webdav-support.patch
BuildRequires: pkgconfig(gcr-3)
BuildRequires: pkgconfig(gio-2.0) >= %{glib2_version}
@ -64,6 +65,7 @@ developing applications that use %{name}.
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
%configure \
@ -128,6 +130,9 @@ find $RPM_BUILD_ROOT -name '*.la' -delete
%{_datadir}/vala/
%changelog
* Mon Aug 21 2023 Alexey Berezhok <alexey.berezhok@msvsphere.ru> - 3.40.0-2.inferit.3
- Added support of yandex webdav
* Tue May 23 2023 Alexey Berezhok <alexey.berezhok@msvsphere.ru> - 3.40.0-2.inferit.2
- Added support of yandex provider

Loading…
Cancel
Save