Sophie

Sophie

distrib > Mageia > 7 > i586 > by-pkgid > b0bff2f54f278c88cf02dde0e2568223 > files > 4

golang-github-spf13-cobra-0.0.3-1.mga7.src.rpm

# http://github.com/spf13/cobra
%global goipath         github.com/spf13/cobra
%global commit          fe5e611709b0c57fa4a89136deaa8e1d4004d053

Version:        0.0.3
%gometa

Name:           %{goname}
Release:        1%{?dist}
Summary:        A Commander for modern go CLI interactions
Group:          Development/Other
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock
BuildArch:      noarch

%description
Cobra is a commander providing a simple interface to create powerful modern
CLI interfaces similar to git & go tools.
In addition to providing an interface, Cobra simultaneously provides
a controller to organize your application code.

Inspired by go, go-Commander, gh and subcommand, Cobra improves on these
by providing fully posix compliant flags (including short & long versions),
nesting commands, and the ability to define your own help and usage
for any or all commands.

%package devel
Summary:       %{summary}

BuildRequires: golang(github.com/cpuguy83/go-md2man/md2man)
BuildRequires: golang(github.com/inconshreveable/mousetrap)
BuildRequires: golang(github.com/mitchellh/go-homedir)
BuildRequires: golang(github.com/spf13/pflag)
BuildRequires: golang(github.com/spf13/viper)
BuildRequires: golang(gopkg.in/yaml.v2)

%description devel
Cobra is a commander providing a simple interface to create powerful modern
CLI interfaces similar to git & go tools.
In addition to providing an interface, Cobra simultaneously provides
a controller to organize your application code.

Inspired by go, go-Commander, gh and subcommand, Cobra improves on these
by providing fully posix compliant flags (including short & long versions),
nesting commands, and the ability to define your own help and usage
for any or all commands.

This package contains library source intended for
building other packages which use import path with
%{goipath} prefix.

%prep
%forgesetup
cp %{SOURCE1} %{SOURCE2} .

%install
%goinstall glide.yaml glide.lock

%check
%gochecks

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

%files devel -f devel.file-list
%license LICENSE.txt
%doc bash_completions.md README.md



%changelog
* Tue Nov 27 2018 pterjan <pterjan> 0.0.3-1.mga7
+ Revision: 1335763
- imported package golang-github-spf13-cobra