%define build_version 1.0.0.1096
Name: libinvm-cli
Version: %{build_version}
Release: 3%{?dist}
Summary: Framework for Storage CLI Applications
License: BSD
Group: Development/Libraries
URL: https://01.org/intel-nvm-cli-library
Source: https://github.com/01org/libinvm-cli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
ExclusiveArch: x86_64
BuildRequires: gettext
BuildRequires: libinvm-i18n-devel
Requires: libinvm-i18n >= 1.0.0.1015
%description
Framework library supporting storage command line interface(CLI) applications.
%package -n %{name}-devel
Summary: Development files for %{name}
License: BSD
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n %{name}-devel
The %{name}-devel package contains header files for
developing applications that use %{name}.
%prep
%setup -q -n %{name}-%{version}
%build
make BUILDNUM=%{build_version} RELEASE=1 CFLAGS_EXTERNAL="%{?optflags}" %{?_smp_mflags}
%install
make install RELEASE=1 RPM_ROOT=%{buildroot} LIB_DIR=%{_libdir} INCLUDE_DIR=%{_includedir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc README.md
%{_libdir}/libinvm-cli.so.*
%license LICENSE
%files -n %{name}-devel
%doc README.md
%{_libdir}/libinvm-cli.so
%{_includedir}/libinvm-cli
%license LICENSE
%changelog
* Mon Aug 15 2016 Jeff Moyer <jmoyer@redhat.com> 1.0.0.1096-3.el7
- Fix broken import from fedora
Resolves: rhbz#1270998
* Thu Aug 11 2016 Dave Anderson <anderson@redhat.com> - 1.0.0.1096-2.el7
- Build for x86_64 only
Resolves: rhbz#1270998
* Thu Aug 11 2016 Dave Anderson <anderson@redhat.com> - 1.0.0.1096-1.el7
- Initial import for RHEL7
Resolves: rhbz#1270998
* Thu Dec 24 2015 Nicholas Moulin <nicholas.w.moulin@intel.com> - 1.0.0.1096-1
- Initial rpm release