File arduino-cli.spec of Package arduino-cli

%global provider        github
%global provider_tld    com
%global project         arduino
%global repo            arduino-cli
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:           golang-%{provider}-%{project}-%{repo}
Version: 0.3.7
Release: 0
Summary: Arduino command line interface
License: GPL-3.0
Group: Development/Languages/Golang
Url:            https://%{provider_prefix}
# Url: https://github.com/arduino/arduino-cli
Source0: %{version}-alpha.preview.tar.gz

BuildRoot: %{_tmppath}/%{name}-%{version}-build
# BuildRequires: git
BuildRequires: golang-packaging
BuildRequires: golang(github.com/arduino/board-discovery)
BuildRequires: golang(github.com/arduino/go-paths-helper)
BuildRequires: golang(github.com/arduino/go-properties-orderedmap)
BuildRequires: golang(github.com/arduino/go-timeutils)
BuildRequires: golang(github.com/arduino/go-win32-utils)
BuildRequires: golang(github.com/cmaglie/pb)
BuildRequires: golang(github.com/codeclysm/cc)
BuildRequires: golang(github.com/codeclysm/extract)
BuildRequires: golang(github.com/creack/goselect)
BuildRequires: golang(github.com/fatih/color)
BuildRequires: golang(github.com/fluxio/iohelpers)
BuildRequires: golang(github.com/fluxio/multierror)
BuildRequires: golang(github.com/fsnotify/fsnotify)
BuildRequires: golang(github.com/go-errors/errors)
BuildRequires: golang(github.com/golang/protobuf)
BuildRequires: golang(github.com/gosuri/uitable)
BuildRequires: golang(github.com/h2non/filetype)
BuildRequires: golang(github.com/juju/errors)
BuildRequires: golang(github.com/juju/loggo)
BuildRequires: golang(github.com/juju/testing)
BuildRequires: golang(github.com/mattn/go-colorable)
BuildRequires: golang(github.com/mattn/go-runewidth)
BuildRequires: golang(github.com/miekg/dns)
BuildRequires: golang(github.com/mitchellh/go-homedir)
BuildRequires: golang(github.com/oleksandr/bonjour)
BuildRequires: golang(github.com/pkg/errors)
BuildRequires: golang(github.com/pmylund/sortutil)
BuildRequires: golang(github.com/schollz/closestmatch)
BuildRequires: golang(github.com/sergi/go-diff)
BuildRequires: golang(github.com/sirupsen/logrus)
BuildRequires: golang(github.com/smartystreets/goconvey)
BuildRequires: golang(github.com/spf13/cobra)
BuildRequires: golang(github.com/stretchr/testify)

Requires: golang(github.com/arduino/board-discovery)
Requires: golang(github.com/arduino/go-paths-helper)
Requires: golang(github.com/arduino/go-properties-orderedmap)
Requires: golang(github.com/arduino/go-timeutils)
Requires: golang(github.com/arduino/go-win32-utils)
Requires: golang(github.com/cmaglie/pb)
Requires: golang(github.com/codeclysm/cc)
Requires: golang(github.com/codeclysm/extract)
Requires: golang(github.com/creack/goselect)
Requires: golang(github.com/fatih/color)
Requires: golang(github.com/fluxio/iohelpers)
Requires: golang(github.com/fluxio/multierror)
Requires: golang(github.com/fsnotify/fsnotify)
Requires: golang(github.com/go-errors/errors)
Requires: golang(github.com/golang/protobuf)
Requires: golang(github.com/gosuri/uitable)
Requires: golang(github.com/h2non/filetype)
Requires: golang(github.com/juju/errors)
Requires: golang(github.com/juju/loggo)
Requires: golang(github.com/juju/testing)
Requires: golang(github.com/mattn/go-colorable)
Requires: golang(github.com/mattn/go-runewidth)
Requires: golang(github.com/miekg/dns)
Requires: golang(github.com/mitchellh/go-homedir)
Requires: golang(github.com/oleksandr/bonjour)
Requires: golang(github.com/pkg/errors)
Requires: golang(github.com/pmylund/sortutil)
Requires: golang(github.com/schollz/closestmatch)
Requires: golang(github.com/sergi/go-diff)
Requires: golang(github.com/sirupsen/logrus)
Requires: golang(github.com/smartystreets/goconvey)
Requires: golang(github.com/spf13/cobra)
Requires: golang(github.com/stretchr/testify)


%{go_nostrip}
%{go_provides}

%description

The arduino-cli is an all-in-one solution that provides builder, boards/library manager, uploader, discovery and many other tools needed to use any Arduino compatible board and platforms.

This software is currently in alpha state: new features will be added and some may be changed.

%prep
%setup -q -n "%{repo}-%{version}-alpha.preview"

%build

%goprep %{import_path}
%gobuild ...