# Generated by go2rpm 1.5.0 %bcond_without check # https://github.com/schollz/cli %global goipath github.com/schollz/cli/v2 Version: 2.2.1 %gometa %global common_description %{expand: A simple, fast, and fun package for building command line apps in Go.} %global golicenses LICENSE %global godocs CODE_OF_CONDUCT.md README.md Name: %{goname} Release: %autorelease Summary: A simple, fast, and fun package for building command line apps in Go License: MIT URL: %{gourl} Source0: %{gosource} # Make test case compatible with Go 1.17 Patch0: https://github.com/schollz/cli/pull/1.patch BuildRequires: golang(github.com/BurntSushi/toml) BuildRequires: golang(github.com/cpuguy83/go-md2man/v2/md2man) BuildRequires: golang(gopkg.in/yaml.v2) %description %{common_description} %package doc Summary: Documentation for %{goname} BuildArch: noarch %description doc This package contains documentation for %{goname}. %gopkg %prep %goprep %autopatch -p1 %install %gopkginstall %if %{with check} %check # disable broken tests rm docs_test.go fish_test.go %gocheck %endif %files doc %license LICENSE %doc docs %gopkgfiles %changelog %autochangelog