~janbaudisch/copr-yajsv

copr-yajsv/yajsv.spec -rw-r--r-- 1.2 KiB
b08f1849Jan Baudisch update to 1.4.0 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%global goipath github.com/neilpa/yajsv
%global forgeurl https://github.com/neilpa/yajsv

Version: 1.4.0

%gometa

Name: yajsv
Release: 1%{?dist}
Summary: Yet Another JSON-Schema Validator
License: MIT
URL: %{gourl}
Source: %{gosource}
BuildRequires: golang(github.com/davecgh/go-spew/spew)
BuildRequires: golang(github.com/ghodss/yaml)
BuildRequires: golang(github.com/mitchellh/go-homedir)
BuildRequires: golang(github.com/stretchr/testify)
BuildRequires: golang(github.com/stretchr/objx)
BuildRequires: golang(github.com/xeipuuv/gojsonpointer)
BuildRequires: golang(github.com/xeipuuv/gojsonreference)
BuildRequires: golang(github.com/xeipuuv/gojsonschema)
BuildRequires: golang(golang.org/x/text)
BuildRequires: golang(gopkg.in/check.v1)
BuildRequires: golang(gopkg.in/yaml.v2)
# FIXME: copr can't find golang(github.com/pmezard/difflib)
BuildRequires: golang-github-pmezard-difflib-devel

%description
Yet Another JSON-Schema Validator. Command line tool for validating JSON and/or YAML documents against provided schemas.

%prep
%goprep

%build
%gobuild -o %{gobuilddir}/bin/yajsv %{goipath}

%install
install -Dpm 755 %{gobuilddir}/bin/yajsv %{buildroot}%{_bindir}/yajsv

%check
%gocheck

%files
%license LICENSE
%doc README.md
%{_bindir}/yajsv