1219820SjeffName: libmlx4
2219820SjeffVersion: 1.0
3219820SjeffRelease: 2%{?dist}
4219820SjeffSummary: Mellanox ConnectX InfiniBand HCA Userspace Driver
5219820Sjeff
6219820SjeffGroup: System Environment/Libraries
7219820SjeffLicense: GPLv2 or BSD
8219820SjeffUrl: http://openfabrics.org/
9219820SjeffSource: http://openfabrics.org/downloads/mlx4/libmlx4-1.0.tar.gz
10219820SjeffBuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11219820Sjeff
12219820SjeffBuildRequires: libibverbs-devel >= 1.1-0.1.rc2
13219820Sjeff
14219820Sjeff%description
15219820Sjefflibmlx4 provides a device-specific userspace driver for Mellanox
16219820SjeffConnectX HCAs for use with the libibverbs library.
17219820Sjeff
18219820Sjeff%package devel
19219820SjeffSummary: Development files for the libmlx4 driver
20219820SjeffGroup: System Environment/Libraries
21219820SjeffRequires: %{name} = %{version}-%{release}
22219820SjeffProvides: libmlx4-static = %{version}-%{release}
23219820Sjeff
24219820Sjeff%description devel
25219820SjeffStatic version of libmlx4 that may be linked directly to an
26219820Sjeffapplication, which may be useful for debugging.
27219820Sjeff
28219820Sjeff%prep
29219820Sjeff%setup -q -n %{name}-@VERSION@
30219820Sjeff
31219820Sjeff%build
32219820Sjeff%configure
33219820Sjeffmake %{?_smp_mflags}
34219820Sjeff
35219820Sjeff%install
36219820Sjeffrm -rf $RPM_BUILD_ROOT
37219820Sjeffmake DESTDIR=%{buildroot} install
38219820Sjeff# remove unpackaged files from the buildroot
39219820Sjeffrm -f $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/libmlx4.so
40219820Sjeff
41219820Sjeff%clean
42219820Sjeffrm -rf $RPM_BUILD_ROOT
43219820Sjeff
44219820Sjeff%files
45219820Sjeff%defattr(-,root,root,-)
46219820Sjeff%{_libdir}/libmlx4-rdmav2.so
47219820Sjeff%{_sysconfdir}/libibverbs.d/mlx4.driver
48219820Sjeff%doc AUTHORS COPYING README
49219820Sjeff
50219820Sjeff%files devel
51219820Sjeff%defattr(-,root,root,-)
52219820Sjeff%{_libdir}/libmlx4.a
53219820Sjeff
54219820Sjeff%changelog
55219820Sjeff* Sun Jan 27 2008 Roland Dreier <rdreier@cisco.com> - 1.0-2
56219820Sjeff- Spec file cleanups, based on Fedora review: don't mark
57219820Sjeff  libmlx4.driver as a config file, since it is not user modifiable,
58219820Sjeff  and change the name of the -devel-static package to plain -devel,
59219820Sjeff  since it would be empty without the static library.
60219820Sjeff
61219820Sjeff* Sun Dec  9 2007 Roland Dreier <rdreier@cisco.com> - 1.0-1
62219820Sjeff- New upstream release
63219820Sjeff
64219820Sjeff* Fri Apr  6 2007 Roland Dreier <rdreier@cisco.com> - 1.0-0.1.rc1
65219820Sjeff- Initial Fedora spec file
66