0b9c79
Name:               libhbalinux
ae4d9d
Version:            1.0.17
ae4d9d
Release:            2%{?dist}
0b9c79
Summary:            FC-HBAAPI implementation using scsi_transport_fc interfaces
0b9c79
Group:              System Environment/Libraries
0b9c79
License:            LGPLv2
0b9c79
URL:                http://www.open-fcoe.org
0b9c79
Source0:            %{name}-%{version}.tar.gz
0b9c79
Patch0:             libhbalinux-1.0.13-conf.patch
ae4d9d
Patch1:             libhbalinux-fix-non-pci-netdev.patch
9c444d
BuildRequires:      libhbaapi-devel >= 2.2.9-6
ae4d9d
BuildRequires:      libpciaccess-devel libtool automake systemd-devel
9c444d
Requires:           libhbaapi >= 2.2.9-6
0b9c79
Requires(post):     grep
0b9c79
Requires(postun):   grep
0b9c79
0b9c79
%description
0b9c79
SNIA HBAAPI vendor library built on top of the scsi_transport_fc interfaces.
0b9c79
0b9c79
%package devel
0b9c79
Summary:            A file needed for libhbalinux application development
0b9c79
Group:              Development/Libraries
0b9c79
Requires:           %{name}%{?_isa} = %{version}-%{release}
0b9c79
Requires:           pkgconfig
0b9c79
0b9c79
%description devel
0b9c79
The libhbalinux-devel package contains the library pkgconfig file.
0b9c79
0b9c79
%prep
ae4d9d
%autosetup -p1
0b9c79
0b9c79
%build
0b9c79
./bootstrap.sh
0b9c79
%configure --disable-static
0b9c79
make %{?_smp_mflags}
0b9c79
0b9c79
%install
0b9c79
make install DESTDIR=%{buildroot}
0b9c79
find %{buildroot} -name '*.la' -exec rm -f {} ';'
0b9c79
0b9c79
%post
0b9c79
/sbin/ldconfig
0b9c79
ORG=org.open-fcoe.libhbalinux
0b9c79
LIB=%{_libdir}/libhbalinux.so.2.0.2
0b9c79
STR="$ORG	$LIB"
0b9c79
CONF=%{_sysconfdir}/hba.conf
0b9c79
if test -f $CONF; then
0b9c79
  grep -E -q ^[[:space:]]*$ORG[[:space:]]+$LIB $CONF
0b9c79
  if test $? -ne 0; then
0b9c79
    echo $STR >> $CONF;
0b9c79
  fi
0b9c79
fi
0b9c79
0b9c79
%postun
0b9c79
/sbin/ldconfig
0b9c79
ORG=org.open-fcoe.libhbalinux
0b9c79
CONF=%{_sysconfdir}/hba.conf
0b9c79
if test -f $CONF; then
0b9c79
  grep -v $ORG $CONF > %{_sysconfdir}/hba.conf.new
0b9c79
  mv %{_sysconfdir}/hba.conf.new %{_sysconfdir}/hba.conf
0b9c79
fi
0b9c79
0b9c79
%files
0b9c79
%doc README COPYING
0b9c79
%{_libdir}/%{name}.so.*
0b9c79
0b9c79
%files devel
0b9c79
%{_libdir}/pkgconfig/%{name}.pc
0b9c79
%{_libdir}/%{name}.so
0b9c79
0b9c79
%changelog
ae4d9d
* Mon Jul 06 2015 Chris Leech <cleech@redhat.com> - 1.0.17-2
ae4d9d
- 1056367 support non-PCI netdevs including s390x, virtio, bridges, etc.
ae4d9d
ae4d9d
* Thu Jun 18 2015 Chris Leech <cleech@redhat.com> - 1.0.17-1
ae4d9d
- 1175802 rebase to upstream v1.0.17
ae4d9d
9c444d
* Fri Oct 03 2014 Chris Leech <cleech@redhat.com> - 1.0.16-4
9c444d
- 1087093 sync with upstream, extends portspeed support up to 40 Gbit
9c444d
5b67ba
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.0.16-3
5b67ba
- Mass rebuild 2014-01-24
5b67ba
5b67ba
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.16-2
5b67ba
- Mass rebuild 2013-12-27
5b67ba
0b9c79
* Tue Jun 04 2013 Petr Šabata <contyk@redhat.com> - 1.0.16-1
0b9c79
- 1.0.16 bump
0b9c79
0b9c79
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-5
0b9c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
0b9c79
0b9c79
* Wed Oct 03 2012 Petr Šabata <contyk@redhat.com> - 1.0.14-4
0b9c79
- Require grep for the post/postun scriptlets (#859397)
0b9c79
0b9c79
* Thu Aug 16 2012 Petr Šabata <contyk@redhat.com> - 1.0.14-3
0b9c79
- Include the unversioned library in the devel subpackage.
0b9c79
0b9c79
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-2
0b9c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
0b9c79
0b9c79
* Mon Jun 25 2012 Petr Šabata <contyk@redhat.com> - 1.0.14-1
0b9c79
- 1.0.14 bump (really just a version bump, removing the need for
0b9c79
  the previous patch)
0b9c79
0b9c79
* Tue Jan 31 2012 Petr Šabata <contyk@redhat.com> - 1.0.13-3
0b9c79
- Set SerialNumber to "Unknown" if not found (47d8dca41)
0b9c79
0b9c79
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-2
0b9c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
0b9c79
0b9c79
* Thu Nov 24 2011 Petr Šabata <contyk@redhat.com> - 1.0.13-1
0b9c79
- 1.0.13 bump
0b9c79
- Creating the devel subpackage with a pkgconfig file
0b9c79
0b9c79
* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 1.0.12-1
0b9c79
- 1.0.12 bump
0b9c79
- Remove now obsolete Buildroot and defattr
0b9c79
0b9c79
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
0b9c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
0b9c79
0b9c79
* Mon May 24 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.10-1
0b9c79
- rebased to 1.0.10, bugfix release (see git changelog for more info)
0b9c79
0b9c79
* Fri Dec 04 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-20091204git
0b9c79
- rebased to the latest version in upstream git
0b9c79
0b9c79
* Thu Jul 30 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-1
0b9c79
- rebase of libhbalinux, spec file adjusted to match changes
0b9c79
0b9c79
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-4
0b9c79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0b9c79
0b9c79
* Tue Apr 01 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-3
0b9c79
- replaced unofficial 1.0.7 source tarball with official one
0b9c79
- update of Makefile, part of it moved to postinstall section
0b9c79
  of spec file
0b9c79
0b9c79
* Tue Mar 31 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.7-2
0b9c79
- minor changes in spec file
0b9c79
0b9c79
* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
0b9c79
- initial build
0b9c79