]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ofed/management/libibcommon/libibcommon.spec.in
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ofed / management / libibcommon / libibcommon.spec.in
1
2 %define RELEASE @RELEASE@
3 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
4
5 Summary: OpenFabrics Alliance InfiniBand management common library
6 Name: libibcommon
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: libtool
17
18 %description
19 libibcommon provides common utility functions for the OFA diagnostic and
20 management tools.
21
22 %package devel
23 Summary: Development files for the libibcommon library
24 Group: System Environment/Libraries
25 Requires: %{name} = %{version}-%{release}
26 Requires(post): /sbin/ldconfig
27 Requires(postun): /sbin/ldconfig
28
29 %description devel
30 Development files for the libibcommon library.
31
32 %package static
33 Summary: Static library files for the libibcommon library
34 Group: System Environment/Libraries
35 Requires: %{name} = %{version}-%{release}
36
37 %description static
38 Static library files for the libibcommon library.
39
40 %prep
41 %setup -q
42
43 %build
44 %configure
45 make %{?_smp_mflags}
46
47 %install
48 make DESTDIR=${RPM_BUILD_ROOT} install
49 # remove unpackaged files from the buildroot
50 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post -p /sbin/ldconfig
56 %postun -p /sbin/ldconfig
57 %post devel -p /sbin/ldconfig
58 %postun devel -p /sbin/ldconfig
59
60 %files
61 %defattr(-,root,root)
62 %{_libdir}/libibcommon*.so.*
63 %doc AUTHORS COPYING ChangeLog
64
65 %files devel
66 %defattr(-,root,root)
67 %{_libdir}/libibcommon.so
68 %{_includedir}/infiniband/*.h
69
70 %files static
71 %defattr(-,root,root)
72 %{_libdir}/libibcommon.a