File rclone.spec of Package rclone

#
# spec file for package rclone
#
# Copyright (c) 2017 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

Name:           rclone
Version:        1.37
Release:        1.1
License:        MIT
Summary:        Rsync for cloud storage
Url:            https://github.com/ncw/rclone
Group:          Productivity/Networking/Other
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  golang-packaging
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Rclone is a command line program to sync files and directories to and from

* Google Drive
* Amazon S3
* Openstack Swift / Rackspace cloud files / Memset Memstore
* Dropbox
* Google Cloud Storage
* Amazon Drive
* Microsoft One Drive
* Hubic
* Backblaze B2
* Yandex Disk
* SFTP
* The local filesystem

Features

* MD5/SHA1 hashes checked at all times for file integrity
* Timestamps preserved on files
* Partial syncs supported on a whole file basis
* Copy mode to just copy new/changed files
* Sync (one way) mode to make a directory identical
* Check mode to check for file hash equality
* Can sync to and from network, eg two different cloud accounts
* Optional encryption (Crypt)
* Optional FUSE mount

%prep
%setup -q

%build
%goprep github.com/ncw/rclone
%gobuild

%install
%goinstall
rm -rf %{buildroot}/%{_libdir}/go/contrib
mkdir -p %{buildroot}%{_mandir}/man1
%{__install} -m 644  %{name}.1  %{buildroot}/%{_mandir}/man1/%{name}.1

#%check
#%gotest github.com/ncw/rclone

%files
%defattr(-,root,root)
%doc README.md COPYING CONTRIBUTING.md MANUAL.html MANUAL.md RELEASE.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

%changelog
* Wed Feb  8 2017 dmacvicar@suse.de
- initial package for 1.35