libsdp.spec.in revision 296402
1 2Summary: LD_PRELOAD-able library for using SDP 3Name: libsdp 4Version: @VERSION@ 5Release: 1%{?dist} 6License: GPL/BSD 7Group: System Environment/Libraries 8BuildRoot: %{_tmppath}/%{name}-%{version}-root 9Source: http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz 10Url: http://www.openfabrics.org/ 11 12%description 13libsdp can be LD_PRELOAD-ed to have a sockets application use 14InfiniBand Sockets Direct Protocol (SDP) instead of TCP, transparently 15and without recompiling the application. 16 17%package devel 18Summary: Development files for the libsdp 19Group: System Environment/Libraries 20Requires: %{name} = %{version}-%{release}, logrotate 21 22%description devel 23Development files of libsdp that may be linked directly to an 24application, which may be useful for debugging. 25 26%prep 27%setup -q 28 29%build 30%configure 31make 32 33%install 34etc=$RPM_BUILD_ROOT%{_sysconfdir} 35make DESTDIR=${RPM_BUILD_ROOT} install 36# remove unpackaged files from the buildroot 37rm -f $RPM_BUILD_ROOT%{_libdir}/*.la 38mkdir -p $etc/logrotate.d 39install -m 644 scripts/libsdp.logrotate $etc/logrotate.d/libsdp 40 41%clean 42rm -rf $RPM_BUILD_ROOT 43 44%files 45# For set-user-ID/set-group-ID ELF binaries, only libraries in the standard search directories that are also set-user-ID 46# To do so, change line below to: %defattr(6644,root,root) 47%defattr(0644,root,root) 48%{_libdir}/libsdp*.so* 49%defattr(0644,root,root) 50%config(noreplace) %{_sysconfdir}/libsdp.conf 51%config(noreplace) %{_includedir}/linux/sdp_inet.h 52%doc README NEWS ChangeLog COPYING 53%config(noreplace) %{_sysconfdir}/logrotate.d/libsdp 54 55%files devel 56%defattr(0644,root,root,-) 57%{_libdir}/libsdp*.so 58 59%changelog 60* Sun Jul 22 2007 Vladimir Sokolovsky <vlad@mellanox.co.il> 61- Initial packaging 62