Name:           jsonval
Version:        0.0.2
Release:        0.20161006git104b6b%{?dist}
Summary:        Simple C program to validate JSON

License:        GPLv2+
URL:            https://github.com/dangerousben/jsonval
# no upstream tags, source created with git archive
Source0:        jsonval-0.0.2.tar.gz

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  bison
BuildRequires:  flex

%description
Simple C program to validate JSON

%prep
%autosetup

%build
autoreconf -i
%configure
# don't use _smp_mflags, automake+lex+yacc doesn't generate enough dependency
# info to run multiple jobs
make

%install
%make_install

%files
%doc AUTHORS ChangeLog INSTALL NEWS README
%license COPYING
%{_bindir}/jsonval

%changelog
* Wed Dec 5 2018 David Shea <dshea@redhat.com> - 0.0.2-0.20161006git104b6b
- Initial package