4575b51
Summary: OpenFabrics Alliance InfiniBand management common library
4575b51
Name: libibcommon
a4aa719
Version: 1.2.0
a4aa719
Release: 1%{?dist}
4575b51
License: GPLv2 or BSD
4575b51
Group: System Environment/Libraries
4575b51
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4575b51
Source: http://www.openfabrics.org/downloads/management/%{name}-%{version}.tar.gz
4575b51
Url: http://openfabrics.org/
4575b51
Requires(post): /sbin/ldconfig
4575b51
Requires(postun): /sbin/ldconfig
991e775
BuildRequires: libtool, automake, autoconf
4575b51
4575b51
%description
4575b51
libibcommon provides common utility functions for the OFA diagnostic and
4575b51
management tools. 
4575b51
4575b51
%package devel
4575b51
Summary: Development files for the libibcommon library
4575b51
Group: System Environment/Libraries
4575b51
Requires: %{name} = %{version}-%{release}
4575b51
4575b51
%description devel
4575b51
Development files for the libibcommon library.
4575b51
4575b51
%package static
4575b51
Summary: Static library files for the libibcommon library
4575b51
Group: System Environment/Libraries
4575b51
Requires: %{name}-devel = %{version}-%{release}
4575b51
4575b51
%description static
4575b51
Static library files for the libibcommon library.
4575b51
4575b51
%prep
4575b51
%setup -q
991e775
libtoolize --copy --force
991e775
touch NEWS README
991e775
autoreconf --install --force
4575b51
4575b51
%build
4575b51
%configure
4575b51
make %{?_smp_mflags}
4575b51
4575b51
%install
4575b51
rm -rf $RPM_BUILD_ROOT
4575b51
make DESTDIR=${RPM_BUILD_ROOT} install
4575b51
# remove unpackaged files from the buildroot
4575b51
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
4575b51
4575b51
%clean
4575b51
rm -rf $RPM_BUILD_ROOT
4575b51
4575b51
%post -p /sbin/ldconfig
4575b51
%postun -p /sbin/ldconfig
4575b51
4575b51
%files
4575b51
%defattr(-,root,root)
4575b51
%{_libdir}/libibcommon*.so.*
4575b51
%doc AUTHORS COPYING ChangeLog 
4575b51
4575b51
%files devel
4575b51
%defattr(-,root,root)
4575b51
%{_libdir}/libibcommon.so
fd8d980
%dir %{_includedir}/infiniband
4575b51
%{_includedir}/infiniband/*.h
4575b51
4575b51
%files static
4575b51
%defattr(-,root,root)
4575b51
%{_libdir}/libibcommon.a
4575b51
4575b51
%changelog
a4aa719
* Wed Apr 22 2009 Doug Ledford <dledford@redhat.com> - 1.2.0-1
a4aa719
- Update to latest upstream version
a4aa719
991e775
* Tue Mar 03 2009 Robert Scheck <robert@fedoraproject.org> - 1.1.0-4
991e775
- Rebuilt against libtool 2.2
991e775
b82daf7
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
b82daf7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
b82daf7
fd8d980
* Thu Dec  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 1.1.0-2
fd8d980
- Include /usr/include/infiniband directory.
fd8d980
4575b51
* Sun Jun 08 2008 Doug Ledford <dledford@redhat.com> - 1.1.0-1
4575b51
- Initial package for Fedora review process