1219820Sjeff 2219820Sjeff%define RELEASE @RELEASE@ 3219820Sjeff%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} 4219820Sjeff 5219820SjeffSummary: OpenFabrics Alliance InfiniBand management common library 6219820SjeffName: libibcommon 7219820SjeffVersion: @VERSION@ 8219820SjeffRelease: %rel%{?dist} 9219820SjeffLicense: GPLv2 or BSD 10219820SjeffGroup: System Environment/Libraries 11219820SjeffBuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 12219820SjeffSource: http://www.openfabrics.org/downloads/management/@TARBALL@ 13219820SjeffUrl: http://openfabrics.org/ 14219820SjeffRequires(post): /sbin/ldconfig 15219820SjeffRequires(postun): /sbin/ldconfig 16219820SjeffBuildRequires: libtool 17219820Sjeff 18219820Sjeff%description 19219820Sjefflibibcommon provides common utility functions for the OFA diagnostic and 20219820Sjeffmanagement tools. 21219820Sjeff 22219820Sjeff%package devel 23219820SjeffSummary: Development files for the libibcommon library 24219820SjeffGroup: System Environment/Libraries 25219820SjeffRequires: %{name} = %{version}-%{release} 26219820SjeffRequires(post): /sbin/ldconfig 27219820SjeffRequires(postun): /sbin/ldconfig 28219820Sjeff 29219820Sjeff%description devel 30219820SjeffDevelopment files for the libibcommon library. 31219820Sjeff 32219820Sjeff%package static 33219820SjeffSummary: Static library files for the libibcommon library 34219820SjeffGroup: System Environment/Libraries 35219820SjeffRequires: %{name} = %{version}-%{release} 36219820Sjeff 37219820Sjeff%description static 38219820SjeffStatic library files for the libibcommon library. 39219820Sjeff 40219820Sjeff%prep 41219820Sjeff%setup -q 42219820Sjeff 43219820Sjeff%build 44219820Sjeff%configure 45219820Sjeffmake %{?_smp_mflags} 46219820Sjeff 47219820Sjeff%install 48219820Sjeffmake DESTDIR=${RPM_BUILD_ROOT} install 49219820Sjeff# remove unpackaged files from the buildroot 50219820Sjeffrm -f $RPM_BUILD_ROOT%{_libdir}/*.la 51219820Sjeff 52219820Sjeff%clean 53219820Sjeffrm -rf $RPM_BUILD_ROOT 54219820Sjeff 55219820Sjeff%post -p /sbin/ldconfig 56219820Sjeff%postun -p /sbin/ldconfig 57219820Sjeff%post devel -p /sbin/ldconfig 58219820Sjeff%postun devel -p /sbin/ldconfig 59219820Sjeff 60219820Sjeff%files 61219820Sjeff%defattr(-,root,root) 62219820Sjeff%{_libdir}/libibcommon*.so.* 63219820Sjeff%doc AUTHORS COPYING ChangeLog 64219820Sjeff 65219820Sjeff%files devel 66219820Sjeff%defattr(-,root,root) 67219820Sjeff%{_libdir}/libibcommon.so 68219820Sjeff%{_includedir}/infiniband/*.h 69219820Sjeff 70219820Sjeff%files static 71219820Sjeff%defattr(-,root,root) 72219820Sjeff%{_libdir}/libibcommon.a 73