]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ofed/management/libibumad/libibumad.spec.in
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ofed / management / libibumad / libibumad.spec.in
1
2 %define RELEASE @RELEASE@
3 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
4
5 Summary: OpenFabrics Alliance InfiniBand umad (user MAD) library
6 Name: libibumad
7 Version: @VERSION@
8 Release: %rel%{?dist}
9 License: GPLv2 or BSD
10 Group: System Environment/Libraries
11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12 Source: http://www.openfabrics.org/downloads/management/@TARBALL@
13 Url: http://openfabrics.org
14 Requires(post): /sbin/ldconfig
15 Requires(postun): /sbin/ldconfig
16 BuildRequires: libibcommon-devel, libtool
17
18 %description
19 libibumad provides the user MAD library functions which sit on top of
20 the user MAD modules in the kernel. These are used by the IB diagnostic
21 and management tools, including OpenSM.
22
23 %package devel
24 Summary: Development files for the libibumad library
25 Group: System Environment/Libraries
26 Requires: %{name} = %{version}-%{release} libibcommon-devel
27 Requires(post): /sbin/ldconfig
28 Requires(postun): /sbin/ldconfig
29
30 %description devel
31 Development files for the libibumad library.
32
33 %package static
34 Summary: Static version of the libibumad library
35 Group: System Environment/Libraries
36 Requires: %{name} = %{version}-%{release}
37
38 %description static
39 Static version of the libibumad library.
40
41 %prep
42 %setup -q
43
44 %build
45 %configure
46 make %{?_smp_mflags}
47
48 %install
49 make DESTDIR=${RPM_BUILD_ROOT} install
50 # remove unpackaged files from the buildroot
51 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
58 %post devel -p /sbin/ldconfig
59 %postun devel -p /sbin/ldconfig
60
61 %files
62 %defattr(-,root,root)
63 %{_libdir}/libibumad*.so.*
64 %{_mandir}/man3/*
65 %doc AUTHORS COPYING ChangeLog
66
67 %files devel
68 %defattr(-,root,root)
69 %{_libdir}/libibumad.so
70 %{_includedir}/infiniband/*.h
71
72 %files static
73 %defattr(-,root,root)
74 %{_libdir}/libibumad.a