[libcxgb4/f15] Initial import into fedora git

Doug Ledford dledford at fedoraproject.org
Wed Jan 11 20:45:21 UTC 2012


commit cc45d16bae56f22807b69464bc43da0ba1353678
Author: Doug Ledford <dledford at redhat.com>
Date:   Wed Jan 11 15:45:16 2012 -0500

    Initial import into fedora git
    
    Signed-off-by: Doug Ledford <dledford at redhat.com>

 .gitignore                |   14 ++++++++
 libcxgb4-1.1.0-type.patch |   11 ++++++
 libcxgb4-modprobe.conf    |    1 +
 libcxgb4.spec             |   75 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 5 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2819ff6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,14 @@
+i386/
+i686/
+x86_64/
+ppc/
+ppc64/
+ia64/
+mips/
+arm*/
+noarch/
+.project
+*.src.rpm
+.build*.log
+/libcxgb4-1.2.0/
+/libcxgb4-1.2.0.tar.gz
diff --git a/libcxgb4-1.1.0-type.patch b/libcxgb4-1.1.0-type.patch
new file mode 100644
index 0000000..7150ecf
--- /dev/null
+++ b/libcxgb4-1.1.0-type.patch
@@ -0,0 +1,11 @@
+--- libcxgb4-1.1.0/src/t4.h.save	2011-02-03 18:23:03.612796608 -0500
++++ libcxgb4-1.1.0/src/t4.h	2011-02-03 18:23:22.489655272 -0500
+@@ -51,7 +51,7 @@
+ #define __be64 uint64_t
+ #define u64 uint64_t
+ #define DECLARE_PCI_UNMAP_ADDR(a)
+-#define dma_addr_t uint64_t
++// #define dma_addr_t uint64_t
+ #define __iomem
+ #define cpu_to_be16 htons
+ #define cpu_to_be32 htonl
diff --git a/libcxgb4-modprobe.conf b/libcxgb4-modprobe.conf
new file mode 100644
index 0000000..7fd73c2
--- /dev/null
+++ b/libcxgb4-modprobe.conf
@@ -0,0 +1 @@
+install cxgb4 /sbin/modprobe --ignore-install cxgb4 && /sbin/modprobe iw_cxgb4
diff --git a/libcxgb4.spec b/libcxgb4.spec
new file mode 100644
index 0000000..ccd1df7
--- /dev/null
+++ b/libcxgb4.spec
@@ -0,0 +1,75 @@
+Name: libcxgb4
+Version: 1.2.0
+Release: 1%{?dist}
+Summary: Chelsio T4 iWARP HCA Userspace Driver
+Group: System Environment/Libraries
+License: GPLv2 or BSD
+Url: http://www.openfabrics.org/
+Source: http://www.openfabrics.org/downloads/cxgb4/%{name}-%{version}.tar.gz
+Source1: libcxgb4-modprobe.conf
+Patch0:  libcxgb4-1.1.0-type.patch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libibverbs-devel >= 1.1.3, libtool
+Obsoletes: %{name}-devel
+ExcludeArch: s390 s390x
+Provides: libibverbs-driver.%{_arch}
+%description
+Userspace hardware driver for use with the libibverbs InfiniBand/iWARP verbs
+library.  This driver enables Chelsio T4 based iWARP capable Ethernet devices.
+
+%package static
+Summary: Static version of the libcxgb4 driver
+Group: System Environment/Libraries
+Requires: %{name} = %{version}-%{release}
+%description static
+Static version of libcxgb4 that may be linked directly to an application.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure
+%{__make} %{?_smp_mflags}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install DESTDIR=$RPM_BUILD_ROOT
+install -p -m 644 -D %{SOURCE1} ${RPM_BUILD_ROOT}%{_sysconfdir}/modprobe.d/libcxgb4.conf
+# remove unpackaged files from the buildroot
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(-,root,root,-)
+%{_libdir}/*.so*
+%{_sysconfdir}/libibverbs.d/*.driver
+%{_sysconfdir}/modprobe.d/libcxgb4.conf
+%doc AUTHORS COPYING README
+
+%files static
+%defattr(-,root,root,-)
+%{_libdir}/*.a
+
+%changelog
+* Tue Jan 03 2012 Doug Ledford <dledford at redhat.com> - 1.2.0-1
+- Update to latest upstream release
+- Initial submission to Fedora
+
+* Mon Jul 25 2011 Doug Ledford <dledford at redhat.com> - 1.1.1-3
+- Add missing arch macro to libibverbs-driver provide
+- Related: bz725016
+
+* Wed Apr 27 2011 Doug Ledford <dledford at redhat.com> - 1.1.1-2
+- Fix package description to differentiate the fact that this is for the T4
+  Chelsio based adapters instead of the previous T3 generation
+
+* Fri Mar 25 2011 Doug Ledford <dledford at redhat.com> - 1.1.1-1
+- Update to later upstream version
+- Resolves: bz685058
+
+* Thu Feb 03 2011 Doug Ledford <dledford at redhat.com> - 1.1.0-1
+- Initial import of libcxgb4 driver
+- Resolves: bz675024
diff --git a/sources b/sources
index e69de29..c52f422 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9e26aee8ec9975336e27439791bf9615  libcxgb4-1.2.0.tar.gz


More information about the scm-commits mailing list