[openib-general] [RFC] [PATCH 1/7] ibrdmaverbs config files.

Krishna Kumar krkumar2 at in.ibm.com
Mon Jul 10 03:06:58 PDT 2006


diff -ruNp ORG/librdmaverbs/autogen.sh NEW/librdmaverbs/autogen.sh
--- ORG/librdmaverbs/autogen.sh	1969-12-31 16:00:00.000000000 -0800
+++ NEW/librdmaverbs/autogen.sh	2006-07-10 18:07:45.000000000 -0700
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -x
+aclocal -I config
+libtoolize --force --copy
+autoheader
+automake --foreign --add-missing --copy
+autoconf
diff -ruNp ORG/librdmaverbs/librdmaverbs.spec.in NEW/librdmaverbs/librdmaverbs.spec.in
--- ORG/librdmaverbs/librdmaverbs.spec.in	1969-12-31 16:00:00.000000000 -0800
+++ NEW/librdmaverbs/librdmaverbs.spec.in	2006-07-10 18:07:46.000000000 -0700
@@ -0,0 +1,106 @@
+# $Id: librdmaverbs.spec.in 7631 2006-06-02 19:53:25Z swise $
+
+%define ver      @VERSION@
+
+Name: librdmaverbs
+Version: 1.1
+Release: 0.1.pre1%{?dist}
+Summary: A library for direct userspace use of InfiniBand
+
+Group: System Environment/Libraries
+License: GPL/BSD
+Url: http://openib.org/
+Source: http://openib.org/downloads/librdmaverbs-1.1-pre1.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+%description
+librdmaverbs is a library that allows userspace processes to use
+InfiniBand/iWARP "verbs" as described in the InfiniBand Architecture
+Specification.  This includes direct hardware access for fast path
+operations.
+
+For this library to be useful, a device-specific plug-in module should
+also be installed.
+
+%package devel
+Summary: Development files for the librdmaverbs library
+Group: System Environment/Libraries
+
+%description devel
+Static libraries and header files for the librdmaverbs verbs library.
+
+%package utils
+Summary: Examples for the librdmaverbs library
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description utils
+Useful librdmaverbs1 example programs such as rdma_devinfo, which
+displays information about InfiniBand devices.
+
+%prep
+%setup -q -n %{name}-%{ver}
+
+%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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/librdmaverbs*.so.*
+%doc AUTHORS COPYING ChangeLog README
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/lib*.so
+%{_libdir}/*.a
+%{_includedir}/*
+
+%files utils
+%defattr(-,root,root,-)
+%{_bindir}/*
+%{_mandir}/man1/*
+
+%changelog
+* Mon May 22 2006 Roland Dreier <rdreier at cisco.com> - 1.1-0.1.pre1
+- New upstream release
+- Remove dependency on libsysfs, since it is no longer used
+
+* Thu May  4 2006 Roland Dreier <rdreier at cisco.com> - 1.0.4-1
+- New upstream release
+
+* Mon Mar 14 2006 Roland Dreier <rdreier at cisco.com> - 1.0.3-1
+- New upstream release
+
+* Mon Mar 13 2006 Roland Dreier <rdreier at cisco.com> - 1.0.1-1
+- New upstream release
+
+* Thu Feb 16 2006 Roland Dreier <rdreier at cisco.com> - 1.0-1
+- New upstream release
+
+* Wed Feb 15 2006 Roland Dreier <rolandd at cisco.com> - 1.0-0.5.rc7
+- New upstream release
+
+* Sun Jan 22 2006 Roland Dreier <rolandd at cisco.com> - 1.0-0.4.rc6
+- New upstream release
+
+* Tue Oct 25 2005 Roland Dreier <rolandd at cisco.com> - 1.0-0.3.rc5
+- New upstream release
+
+* Wed Oct  5 2005 Roland Dreier <rolandd at cisco.com> - 1.0-0.2.rc4
+- Update to upstream 1.0-rc4 release
+
+* Mon Sep 26 2005 Roland Dreier <rolandd at cisco.com> - 1.0-0.1.rc3
+- Initial attempt at Fedora Extras-compliant spec file
diff -ruNp ORG/librdmaverbs/configure.in NEW/librdmaverbs/configure.in
--- ORG/librdmaverbs/configure.in	1969-12-31 16:00:00.000000000 -0800
+++ NEW/librdmaverbs/configure.in	2006-07-10 18:07:46.000000000 -0700
@@ -0,0 +1,37 @@
+dnl Process this file with autoconf to produce a configure script.
+
+AC_PREREQ(2.57)
+AC_INIT(librdmaverbs, 1.1-pre1, openib-general at openib.org)
+AC_CONFIG_SRCDIR([src/rdmaverbs.h])
+AC_CONFIG_AUX_DIR(config)
+AM_CONFIG_HEADER(config.h)
+AM_INIT_AUTOMAKE(librdmaverbs, 1.1-pre1)
+
+AM_PROG_LIBTOOL
+
+dnl Checks for programs
+AC_PROG_CC
+
+dnl Checks for libraries
+AC_CHECK_LIB(dl, dlsym, [],
+    AC_MSG_ERROR([dlsym() not found.  librdmaverbs requires libdl.]))
+AC_CHECK_LIB(pthread, pthread_mutex_init, [],
+    AC_MSG_ERROR([pthread_mutex_init() not found.  librdmaverbs requires libpthread.]))
+
+dnl Checks for header files.
+AC_HEADER_STDC
+
+dnl Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+
+AC_CACHE_CHECK(whether ld accepts --version-script, ac_cv_version_script,
+    if test -n "`$LD --help < /dev/null 2>/dev/null | grep version-script`"; then
+        ac_cv_version_script=yes
+    else
+        ac_cv_version_script=no
+    fi)
+
+AM_CONDITIONAL(HAVE_LD_VERSION_SCRIPT, test "$ac_cv_version_script" = "yes")
+
+AC_CONFIG_FILES([Makefile librdmaverbs.spec])
+AC_OUTPUT






More information about the general mailing list