[packages/rclone] Up to 1.75.2
arekm
arekm at pld-linux.org
Thu Oct 15 09:36:13 CEST 2026
commit 7af310562134165b4605c77e6e6b55a2b301cb55
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Oct 15 09:35:28 2026 +0200
Up to 1.75.2
rclone.spec | 12 ++++++------
webdav-modtime.patch | 43 +++++++++++++++++++++----------------------
2 files changed, 27 insertions(+), 28 deletions(-)
---
diff --git a/rclone.spec b/rclone.spec
index afb8966..6ce95db 100644
--- a/rclone.spec
+++ b/rclone.spec
@@ -1,23 +1,23 @@
-%define vendor_ver 1.75.0
+%define vendor_ver 1.75.2
Summary: rsync for cloud storage
Name: rclone
-Version: 1.75.0
+Version: 1.75.2
Release: 1
License: MIT
Group: Networking/Utilities
#Source0Download: https://github.com/rclone/rclone/releases
Source0: https://github.com/rclone/rclone/releases/download/v%{version}/%{name}-v%{version}.tar.gz
-# Source0-md5: efb5c5378a109d2167f3b09e068a7fc5
-# cd rclone-%{version}
+# Source0-md5: 068444472703563f023e0fa703a9ebdf
+# cd rclone-v%{version}
# go mod vendor
# cd ..
# tar cJf rclone-vendor-%{version}.tar.xz rclone-v%{version}/vendor
Source1: %{name}-vendor-%{vendor_ver}.tar.xz
-# Source1-md5: cda960bce528dcffd3e85ac4ef73119a
+# Source1-md5: 1aa3001d0fc433ee1ec3c8ebfe96a4c8
Patch0: webdav-modtime.patch
URL: https://rclone.org/
-BuildRequires: golang >= 1.25.0
+BuildRequires: golang >= 1.26.0
BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 2.009
BuildRequires: tar >= 1:1.22
diff --git a/webdav-modtime.patch b/webdav-modtime.patch
index b629494..193109c 100644
--- a/webdav-modtime.patch
+++ b/webdav-modtime.patch
@@ -1,4 +1,4 @@
-From fb38f0278d42b1de2a2f76c59aa294276aef64a1 Mon Sep 17 00:00:00 2001
+From e1bf6ba3450bd8a334064dc57a4bf9a184c5e97c Mon Sep 17 00:00:00 2001
From: Jan Palus <jpalus at fastmail.com>
Date: Mon, 15 May 2023 19:16:22 +0200
Subject: [PATCH 1/2] webdav: fastmail: adapt modtime update
@@ -6,14 +6,14 @@ Subject: [PATCH 1/2] webdav: fastmail: adapt modtime update
to make new logic work with fastmail bring spec compliant update from:
https://github.com/rclone/rclone/pull/6108
---
- backend/webdav/webdav.go | 17 ++++++++++++++---
- 1 file changed, 14 insertions(+), 3 deletions(-)
+ backend/webdav/webdav.go | 18 +++++++++++++++---
+ 1 file changed, 15 insertions(+), 3 deletions(-)
diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go
-index 801e8d970..c91e4950c 100644
+index e5c2d9e..a6945fd 100644
--- a/backend/webdav/webdav.go
+++ b/backend/webdav/webdav.go
-@@ -178,6 +178,7 @@ type Fs struct {
+@@ -231,6 +231,7 @@ type Fs struct {
canTus bool // supports the TUS upload protocol
useOCMtime bool // set if can use X-OC-Mtime
propsetMtime bool // set if can use propset
@@ -21,7 +21,7 @@ index 801e8d970..c91e4950c 100644
retryWithZeroDepth bool // some vendors (sharepoint) won't list files when Depth is 1 (our default)
checkBeforePurge bool // enables extra check that directory to purge really exists
hasOCMD5 bool // set if can use owncloud style checksums for MD5
-@@ -581,27 +582,32 @@ func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
+@@ -709,18 +710,22 @@ func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
f.canStream = true
f.precision = time.Second
f.useOCMtime = true
@@ -44,17 +44,15 @@ index 801e8d970..c91e4950c 100644
f.hasOCMD5 = false
f.hasOCSHA1 = true
f.canChunk = false
- f.canTus = true
- f.opt.ChunkSize = 10 * fs.Mebi
- case "nextcloud":
+@@ -730,6 +735,7 @@ func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
f.precision = time.Second
f.useOCMtime = true
f.propsetMtime = true
+ f.propNameMtime = "lastmodified"
f.hasOCSHA1 = true
f.canChunk = true
-
-@@ -1322,11 +1327,11 @@ func (o *Object) ModTime(ctx context.Context) time.Time {
+ f.canRecalcHash = true
+@@ -1518,11 +1524,11 @@ func (o *Object) ModTime(ctx context.Context) time.Time {
// Set modified time using propset
//
// <d:multistatus xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns"><d:response><d:href>/ocm/remote.php/webdav/office/wir.jpg</d:href><d:propstat><d:prop><d:lastmodified/></d:prop><d:status>HTTP/1.1 200 OK</d:status></d:propstat></d:response></d:multistatus>
@@ -68,8 +66,8 @@ index 801e8d970..c91e4950c 100644
</D:prop>
</D:set>
</D:propertyupdate>
-@@ -1335,11 +1340,17 @@ var owncloudPropset = `<?xml version="1.0" encoding="utf-8" ?>
- checksums = "MD5:" + o.md5
+@@ -1556,11 +1562,17 @@ func (o *Object) SetModTime(ctx context.Context, modTime time.Time) error {
+ }
}
+ var modTimeStr string
@@ -88,9 +86,10 @@ index 801e8d970..c91e4950c 100644
if checksums != "" {
opts.Body = strings.NewReader(fmt.Sprintf(owncloudPropsetWithChecksum, modTime.Unix(), checksums))
--
-2.41.0
+2.56.0
+
-From 84d2bbc2e2eb15f4ef3558aec46adf33d3b443c3 Mon Sep 17 00:00:00 2001
+From b9e5bae3f9c73bcdab222fe69471693151e28106 Mon Sep 17 00:00:00 2001
From: Jan Palus <jpalus at fastmail.com>
Date: Mon, 15 May 2023 19:20:32 +0200
Subject: [PATCH 2/2] webdav: fastmail: support for update_modtime config opt
@@ -102,10 +101,10 @@ https://github.com/rclone/rclone/pull/6108
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/backend/webdav/webdav.go b/backend/webdav/webdav.go
-index c91e4950c..a8c7ffce8 100644
+index a6945fd..572c5cb 100644
--- a/backend/webdav/webdav.go
+++ b/backend/webdav/webdav.go
-@@ -146,6 +146,14 @@ Set to 0 to disable chunked uploading.
+@@ -171,6 +171,14 @@ Set to 0 to disable chunked uploading.
Help: "Exclude ownCloud mounted storages",
Advanced: true,
Default: false,
@@ -118,9 +117,9 @@ index c91e4950c..a8c7ffce8 100644
+ Default: fs.Tristate{},
+ Advanced: true,
},
- fshttp.UnixSocketConfig,
- {
-@@ -162,6 +170,7 @@ type Options struct {
+ fshttp.UnixSocketConfig,
+ {
+@@ -214,6 +222,7 @@ type Options struct {
ExcludeMounts bool `config:"owncloud_exclude_mounts"`
UnixSocket string `config:"unix_socket"`
AuthRedirect bool `config:"auth_redirect"`
@@ -128,7 +127,7 @@ index c91e4950c..a8c7ffce8 100644
}
// Fs represents a remote webdav
-@@ -582,8 +591,10 @@ func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
+@@ -710,8 +719,10 @@ func (f *Fs) setQuirks(ctx context.Context, vendor string) error {
f.canStream = true
f.precision = time.Second
f.useOCMtime = true
@@ -142,5 +141,5 @@ index c91e4950c..a8c7ffce8 100644
case "owncloud":
f.canStream = true
--
-2.41.0
+2.56.0
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rclone.git/commitdiff/7af310562134165b4605c77e6e6b55a2b301cb55
More information about the pld-cvs-commit
mailing list