Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/anacrolix/tagflag
%global goipath         github.com/anacrolix/tagflag
Version:                1.0.0

%gometa

%global common_description %{expand:
Package Tagflag uses reflection to derive flags and positional arguments to a
program, and parses and sets them from a slice of arguments.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        3%{?dist}
Summary:        Declarative flag parsing for Go using struct tags

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/anacrolix/missinggo)
BuildRequires:  golang(github.com/anacrolix/missinggo/slices)
BuildRequires:  golang(github.com/bradfitz/iter)
BuildRequires:  golang(github.com/dustin/go-humanize)
BuildRequires:  golang(github.com/huandu/xstrings)
BuildRequires:  golang(github.com/pkg/errors)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
BuildRequires:  golang(github.com/stretchr/testify/require)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Tue Jun 04 00:24:32 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-2
- Update to new macros

* Tue Mar 26 20:28:59 CET 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-1
- Release 1.0.0 (#1692672)

* Sun Mar 03 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190326git3a8ff54
- First package for Fedora