From 4575b511472f0af563aa56777d989df33a91b221 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Jun 30 2008 19:48:28 +0000 Subject: - Initial package for Fedora review process --- diff --git a/.cvsignore b/.cvsignore index e69de29..8fedd01 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libibcommon-1.1.0.tar.gz diff --git a/libibcommon.spec b/libibcommon.spec new file mode 100644 index 0000000..7c3e1ec --- /dev/null +++ b/libibcommon.spec @@ -0,0 +1,70 @@ +Summary: OpenFabrics Alliance InfiniBand management common library +Name: libibcommon +Version: 1.1.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: libtool + +%description +libibcommon provides common utility functions for the OFA diagnostic and +management tools. + +%package devel +Summary: Development files for the libibcommon library +Group: System Environment/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Development files for the libibcommon library. + +%package static +Summary: Static library files for the libibcommon library +Group: System Environment/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static library files for the libibcommon 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}/libibcommon*.so.* +%doc AUTHORS COPYING ChangeLog + +%files devel +%defattr(-,root,root) +%{_libdir}/libibcommon.so +%{_includedir}/infiniband/*.h + +%files static +%defattr(-,root,root) +%{_libdir}/libibcommon.a + +%changelog +* Sun Jun 08 2008 Doug Ledford - 1.1.0-1 +- Initial package for Fedora review process + diff --git a/sources b/sources index e69de29..53c1255 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b398ef1246a392338053c8e382b3e6ee libibcommon-1.1.0.tar.gz