Blob Blame History Raw
# Generated by go2rpm
%bcond_without check

# https://github.com/go-openapi/strfmt
%global goipath         github.com/go-openapi/strfmt
Version:                0.19.0

%gometa

%global common_description %{expand:
This package exposes a registry of data types to support string formats in the
Go-openapi toolkit.

Strfmt represents a well known string format such as credit card or email. The
go toolkit for OpenAPI specifications knows how to deal with those.}

%global golicenses      LICENSE
%global godocs          CODE_OF_CONDUCT.md README.md

Name:           %{goname}
Release:        2%{?dist}
Summary:        Openapi toolkit common string formats

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/asaskevich/govalidator)
BuildRequires:  golang(github.com/globalsign/mgo/bson)
BuildRequires:  golang(github.com/go-openapi/errors)
BuildRequires:  golang(github.com/mailru/easyjson/jlexer)
BuildRequires:  golang(github.com/mailru/easyjson/jwriter)
BuildRequires:  golang(github.com/mitchellh/mapstructure)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/google/uuid)
BuildRequires:  golang(github.com/stretchr/testify/assert)
%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> - 0.19.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat May 11 04:54:31 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.19.0-1
- Initial package