Name: libqedr Version: @VERSION@ Release: 1%{?dist} Summary: Userspace Library for QLogic ROCE Device. Group: System Environment/Libraries License: GPL/BSD Url: http://www.openfabrics.org/ Source: http://www.openfabrics.org/downloads/qedr/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libibverbs-devel %description libqedr provides a device-specific userspace driver for QLogic RoCE Adapters for use with the libibverbs library. %package devel Summary: Development files for the libqedr driver Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} %description devel Static version of libqedr that may be linked directly to an application, which may be useful for debugging. %prep %setup -q -n %{name}-%{version} %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %makeinstall # remove unpackaged files from the buildroot rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %post /sbin/ldconfig if [ -e %{_sysconfdir}/dat.conf ]; then sed -e '/ofa-v2-scm-roe-qedr.* u2/d' < %{_sysconfdir}/dat.conf > /tmp/$$ofadapl mv /tmp/$$ofadapl %{_sysconfdir}/dat.conf dapl_ver=`rpm -q dapl|cut -c6-8` echo ofa-v2-scm-roe-qedr0-1 u${dapl_ver} nonthreadsafe default libdaploscm.so.2 dapl.${dapl_ver} '"qedr0 1" ""' >> %{_sysconfdir}/dat.conf echo ofa-v2-scm-roe-qedr1-1 u${dapl_ver} nonthreadsafe default libdaploscm.so.2 dapl.${dapl_ver} '"qedr1 1" ""' >> %{_sysconfdir}/dat.conf echo ofa-v2-scm-roe-qedr2-1 u${dapl_ver} nonthreadsafe default libdaploscm.so.2 dapl.${dapl_ver} '"qedr2 1" ""' >> %{_sysconfdir}/dat.conf echo ofa-v2-scm-roe-qedr3-1 u${dapl_ver} nonthreadsafe default libdaploscm.so.2 dapl.${dapl_ver} '"qedr3 1" ""' >> %{_sysconfdir}/dat.conf fi %postun /sbin/ldconfig if [ -e %{_sysconfdir}/dat.conf ]; then sed -e '/ofa-v2-scm-roe-qedr.* u2/d' < %{_sysconfdir}/dat.conf > /tmp/$$ofadapl mv /tmp/$$ofadapl %{_sysconfdir}/dat.conf fi %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_libdir}/libqedr*.so # %doc AUTHORS COPYING ChangeLog README %config %{_sysconfdir}/libibverbs.d/qedr.driver %files devel %defattr(-,root,root,-) %{_libdir}/libqedr*.a %changelog