xref: /NextBSD/contrib/ofed/management/libibmad/libibmad.spec.in (revision eb1a5f8de9f7ea602c373a710f531abbf81141c4)
1
2%define RELEASE @RELEASE@
3%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
4
5Summary: OpenFabrics Alliance InfiniBand MAD library
6Name: libibmad
7Version: @VERSION@
8Release: %rel%{?dist}
9License: GPLv2 or BSD
10Group: System Environment/Libraries
11BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
12Source: http://www.openfabrics.org/downloads/management/@TARBALL@
13Url: http://openfabrics.org/
14BuildRequires: libibumad-devel, libtool
15Requires(post): /sbin/ldconfig
16Requires(postun): /sbin/ldconfig
17
18%description
19libibmad provides low layer IB functions for use by the IB diagnostic
20and management programs. These include MAD, SA, SMP, and other basic
21IB functions.
22
23%package devel
24Summary: Development files for the libibmad library
25Group: System Environment/Libraries
26Requires: %{name} = %{version}-%{release} libibumad-devel
27Requires(post): /sbin/ldconfig
28Requires(postun): /sbin/ldconfig
29
30%description devel
31Development files for the libibmad library.
32
33%package static
34Summary: Static version of the libibmad library
35Group: System Environment/Libraries
36Requires: %{name} = %{version}-%{release}
37
38%description static
39Static version of the libibmad library
40
41%prep
42%setup -q
43
44%build
45%configure
46make %{?_smp_mflags}
47
48%install
49make DESTDIR=${RPM_BUILD_ROOT} install
50# remove unpackaged files from the buildroot
51rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
52
53%clean
54rm -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}/libibmad*.so.*
64%doc AUTHORS COPYING ChangeLog
65
66%files devel
67%defattr(-,root,root)
68%{_libdir}/libibmad.so
69%{_includedir}/infiniband/*.h
70
71%files static
72%defattr(-,root,root)
73%{_libdir}/libibmad.a
74