## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 2; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by go2rpm 1.18.0 %bcond check 1 # https://github.com/rclone/rclone %global goipath github.com/rclone/rclone Version: 1.75.2 %gometa -L -f Name: rclone Release: %autorelease Summary: Rsync for cloud storage # Generated by go-vendor-tools License: 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND LGPL-3.0-only AND MIT AND MPL-2.0 AND (Apache-2.0 OR MIT) URL: %{gourl} Source0: %{gosource} # Generated by go-vendor-tools Source1: %{archivename}-vendor.tar.bz2 Source2: go-vendor-tools.toml Patch: 0001-protondrive-fix-Go-1.27-vet-warning-in-retry-test.patch BuildRequires: go-vendor-tools %description "rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files. %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build %global gomodulesmode GO111MODULE=on export LDFLAGS="-X github.com/rclone/rclone/fs.Version=v%{version}" %gobuild -o %{gobuilddir}/bin/rclone %{goipath} %{gobuilddir}/bin/%{name} completion bash - > %{name}.bash %{gobuilddir}/bin/%{name} completion fish - > %{name}.fish %{gobuilddir}/bin/%{name} completion zsh - > %{name}.zsh %install %go_vendor_license_install -c %{S:2} install -m 0755 -vd %{buildroot}%{_bindir} install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/ install -Dpm 0644 ./rclone.1 %{buildroot}%{_mandir}/man1/rclone.1 install -Dpm 0644 %{name}.bash %{buildroot}%{bash_completions_dir}/%{name} install -Dpm 0644 %{name}.fish %{buildroot}%{fish_completions_dir}/%{name}.fish install -Dpm 0644 %{name}.zsh %{buildroot}%{zsh_completions_dir}/_%{name} # https://rclone.org/commands/rclone_mount/#rclone-as-unix-mount-helper install -m 0755 -vd %{buildroot}%{_sbindir} ln -rs %{buildroot}%{_bindir}/rclone %{buildroot}%{_sbindir}/mount.rclone ln -rs %{buildroot}%{_bindir}/rclone %{buildroot}%{_bindir}/rclonefs %check %go_vendor_license_check -c %{S:2} %if %{with check} for test in "TestZenodoRemote" "TestMetadata" "TestIntegration" "TestFTP" \ "TestS3" "TestSftp" "TestWebDav" "TestMetadataMapper" \ "TestLogger" "TestStatsGroupOperations" "TestRcDu" \ ; do awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test) done %gocheck -d backend/ftp \ -d backend/hdfs \ -d backend/sftp \ -d backend/smb \ -d backend/webdav \ -d cmd/mount \ -d cmd/mount2 \ -d cmd/selfupdate \ -d cmd/serve/docker \ -d fs/rc/webgui %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc MAINTAINERS.md MANUAL.html RELEASE.md CONTRIBUTING.md MANUAL.md README.md %doc docs/ %{_bindir}/rclone %{_bindir}/rclonefs %{_sbindir}/mount.rclone %{_mandir}/man1/rclone.1* %{bash_completions_dir}/%{name} %{fish_completions_dir}/%{name}.fish %{zsh_completions_dir}/_%{name} %changelog ## START: Generated by rpmautospec * Sun Oct 11 2026 Mikel Olasagasti Uranga - 1.75.2-2 - RPMAUTOSPEC: unresolvable merge ## END: Generated by rpmautospec