Blob Blame History Raw
# Generated by go2rpm 1.5.0

# https://github.com/rclone/rclone
%global goipath         github.com/rclone/rclone
Version:                1.57.0

%gometa

%global common_description %{expand:
Rclone is a command line program to sync files and directories to and
from various cloud services.}

Name:           rclone
Release:        %autorelease
Summary:        Rsync for cloud storage

License:        MIT
URL:            http://rclone.org/
Source0:        %{gosource}
Source1:        vendor-%{version}.tar.gz

%description
%{common_description}

%prep
%goprep -k
%setup -q -T -D -a 1 -n %{name}-%{version}

%build
export GO111MODULE=on
export GOFLAGS=-mod=vendor
LDFLAGS="-X github.com/ncw/rclone/fs.Version=v%{version} "
%gobuild -o %{gobuilddir}/bin/rclone %{goipath}

%install
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -Dpm 0644 ./rclone.1 %{buildroot}%{_mandir}/man1/rclone.1

%files
%license COPYING
%doc MAINTAINERS.md MANUAL.html RELEASE.md CONTRIBUTING.md MANUAL.md README.md
%doc docs/
%{_bindir}/rclone
%{_mandir}/man1/rclone.1*

%changelog
%autochangelog