mirror of
https://abf.rosa.ru/djam/rclone.git
synced 2025-02-23 09:32:55 +00:00
43 lines
1,014 B
RPMSpec
43 lines
1,014 B
RPMSpec
%define debug %nil
|
|
%define debug_package %nil
|
|
|
|
Name: rclone
|
|
Version: 1.69.0
|
|
Release: 1
|
|
Summary: Rsync for cloud storage
|
|
URL: https://rclone.org
|
|
Source0: https://github.com/rclone/rclone/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
License: MIT
|
|
Group: Development/Other
|
|
BuildRequires: go
|
|
BuildRequires: git-core
|
|
BuildRequires: upx
|
|
BuildRequires: pkgconfig(openssl3.3)
|
|
|
|
%description
|
|
"rsync for cloud storage" - Google Drive, S3, Dropbox,
|
|
Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google
|
|
Cloud Storage, Yandex Files
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
export GOPROXY=direct
|
|
%make
|
|
upx %{name}
|
|
|
|
./%{name} genautocomplete bash %{name}_completion
|
|
./%{name} gendocs _docs
|
|
|
|
%install
|
|
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
install -Dm0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
|
|
install -Dm0644 %{name}_completion %{buildroot}%{_sysconfdir}/bash_completion/%{name}
|
|
|
|
%files
|
|
%doc README.md COPYING MANUAL.* _docs
|
|
%{_bindir}/%{name}
|
|
%{_mandir}/man1/%{name}.*
|
|
%{_sysconfdir}/bash_completion/%{name}
|
|
|