Name: libhbalinux Version: 1.0.7 Release: 3%{?dist} Summary: FC-HBAAPI implementation using scsi_transport_fc interfaces Group: System Environment/Libraries License: LGPLv2 URL: http://www.open-fcoe.org Source0: http://www.open-fcoe.org/openfc/downloads/%{name}-%{version}.tar.gz Patch0: libhbalinux-1.0.7-conf.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: libhbaapi-devel libpciaccess-devel Requires: libhbaapi %description SNIA HBAAPI vendor library built on top of the scsi_transport_fc interfaces %prep %setup -q %patch0 -p1 -b .conf %build %configure --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' find $RPM_BUILD_ROOT -name '*.so' -exec rm -f {} ';' %clean rm -rf $RPM_BUILD_ROOT %post /sbin/ldconfig ORG=org.open-fcoe.libhbalinux LIB=%{_libdir}/libhbalinux.so.2.0.2 STR="$ORG $LIB" CONF=%{_sysconfdir}/hba.conf if test -f $CONF; then grep -E -q ^[[:space:]]*$ORG[[:space:]]+$LIB $CONF if test $? -ne 0; then echo $STR >> $CONF; fi fi %postun /sbin/ldconfig ORG=org.open-fcoe.libhbalinux CONF=%{_sysconfdir}/hba.conf if test -f $CONF; then grep -v $ORG $CONF > /tmp/hba.conf mv /tmp/hba.conf %{_sysconfdir}/hba.conf fi %files %defattr(-,root,root,-) %doc README COPYING %{_libdir}/*.so.* %changelog * Tue Apr 01 2009 Jan Zeleny - 1.0.7-3 - replaced unofficial 1.0.7 source tarball with official one - update of Makefile, part of it moved to postinstall section of spec file * Tue Mar 31 2009 Jan Zeleny - 1.0.7-2 - minor changes in spec file * Mon Mar 2 2009 Chris Leech - 1.0.7-1 - initial build