1219820Sjeff
2219820SjeffSummary: LD_PRELOAD-able library for using SDP
3219820SjeffName: libsdp
4219820SjeffVersion: @VERSION@
5219820SjeffRelease: 1%{?dist}
6219820SjeffLicense: GPL/BSD
7219820SjeffGroup: System Environment/Libraries
8219820SjeffBuildRoot: %{_tmppath}/%{name}-%{version}-root
9219820SjeffSource: http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz
10219820SjeffUrl: http://www.openfabrics.org/
11219820Sjeff
12219820Sjeff%description
13219820Sjefflibsdp can be LD_PRELOAD-ed to have a sockets application use
14219820SjeffInfiniBand Sockets Direct Protocol (SDP) instead of TCP, transparently
15219820Sjeffand without recompiling the application.
16219820Sjeff
17219820Sjeff%package devel
18219820SjeffSummary: Development files for the libsdp
19219820SjeffGroup: System Environment/Libraries
20219820SjeffRequires: %{name} = %{version}-%{release}
21219820Sjeff
22219820Sjeff%description devel
23219820SjeffDevelopment files of libsdp that may be linked directly to an
24219820Sjeffapplication, which may be useful for debugging.
25219820Sjeff
26219820Sjeff%prep
27219820Sjeff%setup -q
28219820Sjeff
29219820Sjeff%build
30219820Sjeff%configure
31219820Sjeffmake
32219820Sjeff
33219820Sjeff%install
34219820Sjeffmake DESTDIR=${RPM_BUILD_ROOT} install
35219820Sjeff# remove unpackaged files from the buildroot
36219820Sjeffrm -f $RPM_BUILD_ROOT%{_libdir}/*.la
37219820Sjeff
38219820Sjeff%clean
39219820Sjeffrm -rf $RPM_BUILD_ROOT
40219820Sjeff
41219820Sjeff%files
42219820Sjeff%defattr(6644,root,root)
43219820Sjeff%{_libdir}/libsdp*.so*
44219820Sjeff%defattr(0644,root,root)
45219820Sjeff%config(noreplace) %{_sysconfdir}/libsdp.conf
46219820Sjeff%config(noreplace) %{_includedir}/linux/sdp_inet.h
47219820Sjeff%doc README NEWS ChangeLog COPYING
48219820Sjeff
49219820Sjeff%files devel
50219820Sjeff%defattr(6644,root,root,-)
51219820Sjeff%{_libdir}/libsdp*.so
52219820Sjeff
53219820Sjeff%changelog
54219820Sjeff* Sun Jul 22 2007 Vladimir Sokolovsky <vlad@mellanox.co.il>
55219820Sjeff- Initial packaging
56