1Name: libmlx4
2Version: 1.0
3Release: 2%{?dist}
4Summary: Mellanox ConnectX InfiniBand HCA Userspace Driver
5
6Group: System Environment/Libraries
7License: GPLv2 or BSD
8Url: http://openfabrics.org/
9Source: http://openfabrics.org/downloads/mlx4/libmlx4-1.0.tar.gz
10BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12BuildRequires: libibverbs-devel >= 1.1-0.1.rc2
13
14%description
15libmlx4 provides a device-specific userspace driver for Mellanox
16ConnectX HCAs for use with the libibverbs library.
17
18%package devel
19Summary: Development files for the libmlx4 driver
20Group: System Environment/Libraries
21Requires: %{name} = %{version}-%{release}
22Provides: libmlx4-static = %{version}-%{release}
23
24%description devel
25Static version of libmlx4 that may be linked directly to an
26application, which may be useful for debugging.
27
28%prep
29%setup -q -n %{name}-@VERSION@
30
31%build
32%configure
33make %{?_smp_mflags}
34
35%install
36rm -rf $RPM_BUILD_ROOT
37make DESTDIR=%{buildroot} install
38# remove unpackaged files from the buildroot
39rm -f $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/libmlx4.so
40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
44%files
45%defattr(-,root,root,-)
46%{_libdir}/libmlx4-rdmav2.so
47%{_sysconfdir}/libibverbs.d/mlx4.driver
48%doc AUTHORS COPYING README
49
50%files devel
51%defattr(-,root,root,-)
52%{_libdir}/libmlx4.a
53
54%changelog
55* Sun Jan 27 2008 Roland Dreier <rdreier@cisco.com> - 1.0-2
56- Spec file cleanups, based on Fedora review: don't mark
57  libmlx4.driver as a config file, since it is not user modifiable,
58  and change the name of the -devel-static package to plain -devel,
59  since it would be empty without the static library.
60
61* Sun Dec  9 2007 Roland Dreier <rdreier@cisco.com> - 1.0-1
62- New upstream release
63
64* Fri Apr  6 2007 Roland Dreier <rdreier@cisco.com> - 1.0-0.1.rc1
65- Initial Fedora spec file
66