Blame SPECS/libhbalinux.spec

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