]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ofed/libmlx4/libmlx4.spec.in
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ofed / libmlx4 / libmlx4.spec.in
1 Name: libmlx4
2 Version: 1.0
3 Release: 2%{?dist}
4 Summary: Mellanox ConnectX InfiniBand HCA Userspace Driver
5
6 Group: System Environment/Libraries
7 License: GPLv2 or BSD
8 Url: http://openfabrics.org/
9 Source: http://openfabrics.org/downloads/mlx4/libmlx4-1.0.tar.gz
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
11
12 BuildRequires: libibverbs-devel >= 1.1-0.1.rc2
13
14 %description
15 libmlx4 provides a device-specific userspace driver for Mellanox
16 ConnectX HCAs for use with the libibverbs library.
17
18 %package devel
19 Summary: Development files for the libmlx4 driver
20 Group: System Environment/Libraries
21 Requires: %{name} = %{version}-%{release}
22 Provides: libmlx4-static = %{version}-%{release}
23
24 %description devel
25 Static version of libmlx4 that may be linked directly to an
26 application, which may be useful for debugging.
27
28 %prep
29 %setup -q -n %{name}-@VERSION@
30
31 %build
32 %configure
33 make %{?_smp_mflags}
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 make DESTDIR=%{buildroot} install
38 # remove unpackaged files from the buildroot
39 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la $RPM_BUILD_ROOT%{_libdir}/libmlx4.so
40
41 %clean
42 rm -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