]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ofed/librdmacm/librdmacm.spec.in
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ofed / librdmacm / librdmacm.spec.in
1 %define ver @VERSION@
2
3 Name: librdmacm
4 Version: 1.0.11
5 Release: 1%{?dist}
6 Summary: Userspace RDMA Connection Manager
7
8 Group: System Environment/Libraries
9 License: GPLv2 or BSD
10 Url: http://www.openfabrics.org/
11 Source: http://www.openfabrics.org/downloads/rdmacm/%{name}-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13
14 BuildRequires: libibverbs-devel >= 1.1-1
15
16 %description
17 librdmacm provides a userspace RDMA Communication Managment API.
18
19 %package devel
20 Summary: Development files for the librdmacm library
21 Group: System Environment/Libraries
22 Requires: %{name} = %{version}-%{release} %{_includedir}/infiniband/verbs.h
23
24 %description devel
25 Development files for the librdmacm library.
26
27 %package utils
28 Summary: Examples for the librdmacm library
29 Group: System Environment/Libraries
30 Requires: %{name} = %{version}-%{release}
31
32 %description utils
33 Example test programs for the librdmacm library.
34
35 %prep
36 %setup -q -n %{name}-%{ver}
37
38 %build
39 %configure
40 make %{?_smp_mflags}
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 %makeinstall
45 # remove unpackaged files from the buildroot
46 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50
51 %post -p /sbin/ldconfig
52 %postun -p /sbin/ldconfig
53
54 %files
55 %defattr(-,root,root,-)
56 %{_libdir}/librdmacm*.so.*
57 %doc AUTHORS COPYING README
58
59 %files devel
60 %defattr(-,root,root)
61 %{_libdir}/lib*.so
62 %{_libdir}/*.a
63 %{_includedir}/*
64 %{_mandir}/man3/*
65 %{_mandir}/man7/*
66
67 %files utils
68 %defattr(-,root,root,-)
69 %{_bindir}/*
70 %{_mandir}/man1/*
71
72 %changelog
73
74 * Fri Feb 15 2008 Roland Dreier <rdreier@cisco.com> - 1.0.6-1
75 - Initial Fedora spec file