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
20296402SbdreweryRequires: %{name} = %{version}-%{release}, logrotate
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
34296402Sbdreweryetc=$RPM_BUILD_ROOT%{_sysconfdir}
35219820Sjeffmake DESTDIR=${RPM_BUILD_ROOT} install
36219820Sjeff# remove unpackaged files from the buildroot
37219820Sjeffrm -f $RPM_BUILD_ROOT%{_libdir}/*.la
38296402Sbdrewerymkdir -p $etc/logrotate.d
39296402Sbdreweryinstall -m 644 scripts/libsdp.logrotate $etc/logrotate.d/libsdp
40219820Sjeff
41219820Sjeff%clean
42219820Sjeffrm -rf $RPM_BUILD_ROOT
43219820Sjeff
44219820Sjeff%files
45296402Sbdrewery# For set-user-ID/set-group-ID ELF binaries, only libraries in the standard search directories that are also set-user-ID
46296402Sbdrewery# To do so, change line below to: %defattr(6644,root,root)
47296402Sbdrewery%defattr(0644,root,root)
48219820Sjeff%{_libdir}/libsdp*.so*
49219820Sjeff%defattr(0644,root,root)
50219820Sjeff%config(noreplace) %{_sysconfdir}/libsdp.conf
51219820Sjeff%config(noreplace) %{_includedir}/linux/sdp_inet.h
52219820Sjeff%doc README NEWS ChangeLog COPYING
53296402Sbdrewery%config(noreplace) %{_sysconfdir}/logrotate.d/libsdp
54219820Sjeff
55219820Sjeff%files devel
56296402Sbdrewery%defattr(0644,root,root,-)
57219820Sjeff%{_libdir}/libsdp*.so
58219820Sjeff
59219820Sjeff%changelog
60219820Sjeff* Sun Jul 22 2007 Vladimir Sokolovsky <vlad@mellanox.co.il>
61219820Sjeff- Initial packaging
62