freebsd-skq/contrib/ofed/libsdp/libsdp.spec.in
2011-03-21 09:58:24 +00:00

56 lines
1.3 KiB
RPMSpec

Summary: LD_PRELOAD-able library for using SDP
Name: libsdp
Version: @VERSION@
Release: 1%{?dist}
License: GPL/BSD
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz
Url: http://www.openfabrics.org/
%description
libsdp can be LD_PRELOAD-ed to have a sockets application use
InfiniBand Sockets Direct Protocol (SDP) instead of TCP, transparently
and without recompiling the application.
%package devel
Summary: Development files for the libsdp
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
Development files of libsdp that may be linked directly to an
application, which may be useful for debugging.
%prep
%setup -q
%build
%configure
make
%install
make DESTDIR=${RPM_BUILD_ROOT} install
# remove unpackaged files from the buildroot
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(6644,root,root)
%{_libdir}/libsdp*.so*
%defattr(0644,root,root)
%config(noreplace) %{_sysconfdir}/libsdp.conf
%config(noreplace) %{_includedir}/linux/sdp_inet.h
%doc README NEWS ChangeLog COPYING
%files devel
%defattr(6644,root,root,-)
%{_libdir}/libsdp*.so
%changelog
* Sun Jul 22 2007 Vladimir Sokolovsky <vlad@mellanox.co.il>
- Initial packaging