From 85649ba44cf5bab1eb201d31c3caca90701aabe1 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Jun 30 2008 20:31:47 +0000 Subject: - Initial package for Fedora review process --- diff --git a/.cvsignore b/.cvsignore index e69de29..d58fb35 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libibumad-1.2.0.tar.gz diff --git a/libibumad.spec b/libibumad.spec new file mode 100644 index 0000000..ed785bd --- /dev/null +++ b/libibumad.spec @@ -0,0 +1,72 @@ +Summary: OpenFabrics Alliance InfiniBand umad (user MAD) library +Name: libibumad +Version: 1.2.0 +Release: 1%{?dist} +License: GPLv2 or BSD +Group: System Environment/Libraries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Source: http://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz +Url: http://openfabrics.org +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig +BuildRequires: libibcommon-devel >= 1.1.0, libtool + +%description +libibumad provides the user MAD library functions which sit on top of +the user MAD modules in the kernel. These are used by the IB diagnostic +and management tools, including OpenSM. + +%package devel +Summary: Development files for the libibumad library +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release}, libibcommon-devel + +%description devel +Development files for the libibumad library. + +%package static +Summary: Static version of the libibumad library +Group: System Environment/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static version of the libibumad library. + +%prep +%setup -q + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +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 + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libibumad*.so.* +%{_mandir}/man3/* +%doc AUTHORS COPYING ChangeLog + +%files devel +%defattr(-,root,root) +%{_libdir}/libibumad.so +%{_includedir}/infiniband/*.h + +%files static +%defattr(-,root,root) +%{_libdir}/libibumad.a + +%changelog +* Sun Jun 08 2008 Doug Ledford - 1.2.0-1 +- Initial package for Fedora review process + diff --git a/sources b/sources index e69de29..d071189 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +abce72fbb91530a97493eba7a28a0de6 libibumad-1.2.0.tar.gz