From 2ed1c1dafaa262b7ed0414e54a970ada1bed25bd Mon Sep 17 00:00:00 2001 From: Alexey Berezhok Date: Mon, 21 Aug 2023 19:00:21 +0300 Subject: [PATCH] Added support of yandex webdav --- ...001-Added-yandex-disk-webdav-support.patch | 34 +++++++++++++++++++ SPECS/gnome-online-accounts.spec | 7 +++- 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 SOURCES/0001-Added-yandex-disk-webdav-support.patch diff --git a/SOURCES/0001-Added-yandex-disk-webdav-support.patch b/SOURCES/0001-Added-yandex-disk-webdav-support.patch new file mode 100644 index 0000000..016b5d4 --- /dev/null +++ b/SOURCES/0001-Added-yandex-disk-webdav-support.patch @@ -0,0 +1,34 @@ +From 7e3e59a4ab72c7fdcedf00e28247f565cdc3f84d Mon Sep 17 00:00:00 2001 +From: Alexey Berezhok +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 + diff --git a/SPECS/gnome-online-accounts.spec b/SPECS/gnome-online-accounts.spec index db0bcff..dba5204 100644 --- a/SPECS/gnome-online-accounts.spec +++ b/SPECS/gnome-online-accounts.spec @@ -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 - 3.40.0-2.inferit.3 +- Added support of yandex webdav + * Tue May 23 2023 Alexey Berezhok - 3.40.0-2.inferit.2 - Added support of yandex provider