# Generated by go2rpm %bcond_without check # https://github.com/go-playground/validator %global goipath github.com/go-playground/validator/v10 %global forgeurl https://github.com/go-playground/validator Version: 10.3.0 %gometa %global goaltipaths gopkg.in/go-playground/validator.v10 %global common_description %{expand: Package Validator implements value validations for structs and individual fields based on tags. It can also handle Cross-Field and Cross-Struct validation for nested structs and has the ability to dive into arrays and maps of any type.} %global golicenses LICENSE %global godocs examples README.md Name: %{goname} Release: 1%{?dist} Summary: Go struct and field validation License: MIT URL: %{gourl} Source0: %{gosource} BuildRequires: golang(github.com/go-playground/locales) BuildRequires: golang(github.com/go-playground/universal-translator) BuildRequires: golang(github.com/leodido/go-urn) %if %{with check} # Tests BuildRequires: golang(github.com/go-playground/assert/v2) BuildRequires: golang(github.com/go-playground/locales/en) BuildRequires: golang(github.com/go-playground/locales/es) BuildRequires: golang(github.com/go-playground/locales/fr) BuildRequires: golang(github.com/go-playground/locales/id) BuildRequires: golang(github.com/go-playground/locales/ja) BuildRequires: golang(github.com/go-playground/locales/nl) BuildRequires: golang(github.com/go-playground/locales/pt_BR) BuildRequires: golang(github.com/go-playground/locales/tr) BuildRequires: golang(github.com/go-playground/locales/zh) BuildRequires: golang(github.com/go-playground/locales/zh_Hant_TW) %endif %description %{common_description} %gopkg %prep %goprep %install %gopkginstall %if %{with check} %check %gocheck %endif %gopkgfiles %changelog * Sun Jul 26 18:42:55 CEST 2020 Robert-André Mauchin - 10.3.0-1 - Initial package