Summary:        cve-check-tool, as its name suggests, is a tool for checking known (public) CVEs.
Name:           cve-check-tool
Version:        5.6.2
Release:        2%{?dist}
Source0:        cve-check-tool-%{version}.tar.gz
%define sha1 cve-check-tool=ccfa275fb8edccfdd977f1bbfc6713498769e347
License:        GPLv2
URL:            https://github.com/ikeydoherty/cve-check-tool
Vendor:		    VMware, Inc.
Distribution:	Photon
# We always run autogen.sh
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: json-glib-devel
BuildRequires: check
BuildRequires: libxml2-devel
BuildRequires: sqlite-autoconf
BuildRequires: curl
BuildRequires: openssl-devel
Requires:	curl

%global security_hardening nonow

%description
The tool will identify potentially vunlnerable software packages within Linux distributions through version matching. Where possible it will also seek to determine (through a distribution implemention) if a vulnerability has been addressed by way of a patch.

%prep
%setup -q

%build
./autogen.sh
make %{?_smp_mflags} CFLAGS="-w"

%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make install DESTDIR=%{buildroot} 

%clean
rm -rf %{buildroot}/*

%files
%defattr(-,root,root,-)
/usr/bin/cve-check-*
/usr/lib/cve-check-tool/*
/usr/share/cve-check-tool/*
%doc %{_mandir}/man1/*

%changelog
*	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.6.2-2
-	GA - Bump release of all rpms
*       Wed Feb 24 2016 Kumar Kaushik <kaushikk@vmware.com>
-       Updating version to 5.6.2.
*	Wed Jul 29 2015 Luis Zuniga <lzuniga@vmware.com>
-	Added new version of cve-check-tool