## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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.14.0 %bcond check 1 # https://github.com/rclone/rclone %global goipath github.com/rclone/rclone Version: 1.68.2 %gometa -L -f %global common_description %{expand: "rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files.} # This package uses gold. Tell package-notes implementation about this. %global _package_note_linker gold Name: rclone Release: %autorelease Summary: "rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files # Generated by go-vendor-tools License: Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND CC0-1.0 AND ISC 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 BuildRequires: go-vendor-tools # Failure on s390x # https://github.com/cronokirby/saferith/issues/52 ExcludeArch: s390x %description %{common_description} %prep %goprep -A %setup -q -T -D -a1 %{forgesetupargs} %autopatch -p1 %generate_buildrequires %go_vendor_license_buildrequires -c %{S:2} %build 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} declare -A tests tests[TestIntegrationProftpd,TestIntegrationProftpd]="backend/ftp/ftp_test.go" tests[TestIntegrationPureftpd,TestIntegrationPureftpd]="backend/ftp/ftp_test.go" tests[TestIntegrationVsftpd,TestIntegrationVsftpd]="backend/ftp/ftp_test.go" tests[TestIntegration1,TestIntegration]="backend/hdfs/hdfs_test.go" tests[TestMetadata,TestMetadata]="backend/local/local_internal_test.go" tests[TestIntegration2,TestIntegration]="backend/seafile/seafile_test.go" tests[TestIntegration3,TestIntegration]="backend/sftp/sftp_test.go" tests[TestIntegration4,TestIntegration3]="backend/sftp/sftp_test.go" tests[TestIntegration5,TestIntegration]="backend/sia/sia_test.go" tests[TestIntegration6,TestIntegration]="backend/smb/smb_test.go" tests[TestIntegration7,TestIntegration]="backend/swift/swift_test.go" tests[TestIntegration8,TestIntegration]="backend/union/union_test.go" tests[TestIntegration9,TestIntegration]="backend/webdav/webdav_test.go" tests[TestIntegration10,TestIntegration2]="backend/webdav/webdav_test.go" tests[TestGetVersion,TestGetVersion]="cmd/selfupdate/selfupdate_test.go" tests[TestInstallOnLinux,TestInstallOnLinux]="cmd/selfupdate/selfupdate_test.go" tests[TestDockerPluginLogic,TestDockerPluginLogic]="cmd/serve/docker/docker_test.go" tests[TestDockerPluginMountTCP,TestDockerPluginMountTCP]="cmd/serve/docker/docker_test.go" tests[TestDockerPluginMountUnix,TestDockerPluginMountUnix]="cmd/serve/docker/docker_test.go" tests[TestStatsGroupOperations,TestStatsGroupOperations]="fs/accounting/stats_groups_test.go" tests[TestLogger,TestLogger]="fs/logger/logger_test.go" tests[TestMetadataMapper,TestMetadataMapper]="fs/metadata_test.go" tests[TestAddPlugin,TestAddPlugin]="fs/rc/webgui/rc_test.go" tests[TestRemovePlugin,TestRemovePlugin]="fs/rc/webgui/rc_test.go" for key in "${!tests[@]}"; do IFS=',' read -r test_name test <<< "$key" path="${tests[$key]}" if [ -n "${path}" ]; then awk -i inplace '/^func.*'"${test}"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' "${path}" fi done %gocheck -d cmd/mount \ -d cmd/mount2 \ -d cmd/serve/ftp \ -d cmd/serve/s3 \ -d cmd/serve/sftp \ -d cmd/serve/webdav %endif %files -f %{go_vendor_license_filelist} %license vendor/modules.txt %doc docs CONTRIBUTING.md MAINTAINERS.md MANUAL.md MANUAL.txt README.md %doc RELEASE.md notes.txt %{_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 * Mon Jan 06 2025 Robert-André Mauchin - 1.68.2-2 - Update to 1.68.2 - Move to bundling with gotmax23 tool - Bump golang.org/x/net/html to v0.33.0 to fix CVE-2024-45338 - Bump golang.org/x/crypto/ssh to v0.31.0 to fix CVE-2024-45337 - Bump github.com/quic-go/quic-go to 0.48.2 to fix CVE-2024-53259 and CVE-2024-22189 - s390x is temporarly disable until a workaround to https://github.com/cronokirby/saferith/issues/52 is found * Sat Jan 04 2025 Mikel Olasagasti Uranga - 1.68.2-1 - Update to 1.68.2 - Closes rhbz#2311287 rhbz#2326578 rhbz#2333262 rhbz#2333238 rhbz#2331989 rhbz#2331961 * Tue Oct 01 2024 Mikel Olasagasti Uranga - 1.67.0-2 - Fix version ldflag - Closes rhbz#2315855 * Fri Aug 09 2024 Mikel Olasagasti Uranga - 1.67.0-1 - Update to 1.67.0 - Closes rhbz#2251762 rhbz#2292717 rhbz#2301235 rhbz#2255106 * Fri Jul 19 2024 Fedora Release Engineering - 1.64.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sun Feb 11 2024 Maxwell G - 1.64.2-4 - Rebuild for golang 1.22.0 * Fri Jan 26 2024 Fedora Release Engineering - 1.64.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.64.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Oct 20 2023 Mikel Olasagasti Uranga - 1.64.2-1 - Update to 1.64.2 - Closes rhbz#2244697 * Sun Oct 15 2023 Jonathan Steffan - 1.64.0-2 - Add mount.rclone for systemd.mount support - Create symlink for utilization in systemd units - Create optional rclonefs symlink, per documentation * Thu Oct 12 2023 Mikel Olasagasti Uranga - 1.64.0-1 - Update to 1.64.0 - Closes rhbz#2238581 rhbz#2229610 rhbz#2229606 * Mon Jul 31 2023 Mikel Olasagasti Uranga - 1.63.1-1 - Update to 1.63.1 - Closes rhbz#2155701 rhbz#2163286 rhbz#2171700 rhbz#2178480 rhbz#2226392 - Don't build storj backend by default - Use shell completion macros * Fri Jul 21 2023 Fedora Release Engineering - 1.60.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Fri Jan 20 2023 Fedora Release Engineering - 1.60.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Nov 23 2022 Mikel Olasagasti Uranga - 1.60.1-1 - Update to 1.60.1 - Closes rhbz#2144108 * Mon Nov 07 2022 Mikel Olasagasti Uranga - 1.60.0-1 - Update to 1.60.0 * Sat Jul 23 2022 Fedora Release Engineering - 1.57.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jul 19 2022 Maxwell G - 1.57.0-6 - Rebuild for CVE-2022-{1705,32148,30631,30633,28131,30635,30632,30630,1962} in golang * Sat Jun 18 2022 Robert-André Mauchin - 1.57.0-4 - Rebuilt for CVE-2022-1996, CVE-2022-24675, CVE-2022-28327, CVE-2022-27191, CVE-2022-29526, CVE-2022-30629 * Sat Feb 19 2022 Zbigniew Jędrzejewski-Szmek - 1.57.0-3 - Disable package notes because gold linker is used * Fri Jan 21 2022 Fedora Release Engineering - 1.57.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Dec 21 2021 Robert-André Mauchin - 1.57.0-1 - Update to commit 1.57.0 Close: rhbz#1953788 * Fri Jul 23 2021 Fedora Release Engineering - 1.55.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon May 17 15:41:30 CEST 2021 Robert-André Mauchin - 1.55.1-1 - Update to 1.55.1 * Wed Apr 7 21:23:12 CEST 2021 Robert-André Mauchin - 1.55.0-1 - Update to 1.55.0 - Close: rhbz#1936764 * Sat Mar 6 08:41:07 CET 2021 Robert-André Mauchin - 1.54.0-1 - Update to 1.54.0 - Close: rhbz#1918543 * Wed Jan 27 2021 Fedora Release Engineering - 1.53.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Dec 06 00:39:23 CET 2020 Robert-André Mauchin - 1.53.3-1 - Update to 1.53.3 - Close: rhbz#1899641 - Fix: rhbz#1900705 - Fix: rhbz#1900719 * Sun Nov 08 14:15:33 CET 2020 Robert-André Mauchin - 1.53.2-1 - Update to 1.53.2 (#1840915) * Fri Sep 18 11:05:08 CEST 2020 Robert-André Mauchin - 1.53.1-1 - Update to 1.53.1 * Sat Aug 01 2020 Fedora Release Engineering - 1.51.0-3 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jul 29 2020 Fedora Release Engineering - 1.51.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Feb 26 23:53:19 CET 2020 Robert-André Mauchin - 1.51.0-1 - Update to 1.51.0 * Thu Jan 30 2020 Fedora Release Engineering - 1.50.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Dec 23 22:22:16 CET 2019 Robert-André Mauchin - 1.50.2-1 - Release 1.50.2 (#1756764) * Sat Sep 28 13:00:14 CEST 2019 Robert-André Mauchin - 1.49.3-1 - Release 1.49.3 (#1747050) * Fri Jul 26 2019 Fedora Release Engineering - 1.48.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun Jun 16 16:26:43 CEST 2019 Robert-André Mauchin - 1.48.0-1 - Release 1.48.0 (#1720839) * Sat Apr 13 18:34:07 CET 2019 Robert-André Mauchin - 1.47.0-1 - Release 1.47.0 (#1674166) * Sat Apr 06 21:17:09 CET 2019 Robert-André Mauchin - 1.46.0-1 - Release 1.46.0 * Sat Feb 02 2019 Fedora Release Engineering - 1.45-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Tue Dec 18 2018 Robert-André Mauchin - 1.45-1 - Update to version 1.45 * Mon Oct 22 2018 Robert-André Mauchin - 1.44-1 - Update to version 1.44 * Sat Jul 14 2018 Fedora Release Engineering - 1.42-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 28 2018 Robert-André Mauchin - 1.42-1 - Update to version 1.42 * Tue Mar 20 2018 Robert-André Mauchin - 1.41-1 - Update to version 1.41 - Use new Go packaging * Fri Feb 09 2018 Fedora Release Engineering - 1.39-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sun Dec 24 2017 Robert-André Mauchin - 1.39-1 - Update to version 1.39 * Sun Oct 01 2017 Robert-André Mauchin - 1.38-1 - Update to version 1.38 * Fri Jul 28 2017 Robert-André Mauchin - 1.37-2 - Unbundled revision * Sun Jul 23 2017 Robert-André Mauchin - 1.37-1 - Update to version 1.37 * Thu Jul 20 2017 Robert-André Mauchin - 1.36-2 - Update to Fedora Packaging Guidelines specification * Sat Mar 25 2017 Robert-André Mauchin - 1.36-1 - Update to version 1.36 * Fri Jan 06 2017 Robert-André Mauchin - 1.35-1 - Update to version 1.35 * Sun Dec 11 2016 Robert-André Mauchin - 1.34-1 - Initial RPM release ## END: Generated by rpmautospec