Name: 		nvme
Version: 	@@VERSION@@
Release: 	1%{?dist}
Summary:  	Core nvme tools
License: 	GPL
Group: 		Development/Tools
URL: 		https://github.com/linux-nvme/nvme-cli/
Source: 	nvme-@@VERSION@@.tar.gz
Provides:	nvme
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
NVMe is a fast, scalable, direct attached storage interface. The nvme
cli rpm installs core management tools with minimal dependencies.

%prep
%setup

%build
make

%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX=%{buildroot}/usr

%files
%defattr(-,root,root)
%doc Documentation/nvme*.1
%{_sbindir}/nvme
%{_mandir}/man1/nvme*.1*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Thu Oct 15 2015 Keith Busch <keith.busch@intel.com>
- Initial RPM spec
