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.22.2

%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:        %autorelease
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/go-openapi/errors)
BuildRequires:  golang(github.com/mitchellh/mapstructure)
BuildRequires:  golang(github.com/oklog/ulid)
BuildRequires:  golang(go.mongodb.org/mongo-driver/bson)
BuildRequires:  golang(go.mongodb.org/mongo-driver/bson/bsontype)
BuildRequires:  golang(go.mongodb.org/mongo-driver/bson/primitive)

%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
%autochangelog