## START: Set by rpmautospec ## (rpmautospec version 0.3.0) %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 4; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # 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 * Thu Jan 19 2023 Fedora Release Engineering 2.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering 2.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering 2.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Nov 14 2021 Davide Cavalca 2.2.1-1 - Initial import; Fixes: RHBZ#1979790