Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 5857d1546d78856b26f2561ae7275caf > files > 4

libhbalinux-1.0.17-7.mga9.src.rpm

%define major 2
%define libname %mklibname hbalinux %{major}
%define devname %mklibname hbalinux -d

Name:               libhbalinux
Version:            1.0.17
Release:            %mkrel 7
Summary:            FC-HBAAPI implementation using scsi_transport_fc interfaces
Group:              System/Libraries
License:            LGPLv2
URL:                http://www.open-fcoe.org
Source0:            %{name}-%{version}.tar.gz
Patch0:             libhbalinux-1.0.13-conf.patch
Patch1:             libhbalinux-fix-non-pci-netdev.patch
BuildRequires:      pkgconfig(HBAAPI)
BuildRequires:      pkgconfig(pciaccess)
BuildRequires:      libtool
BuildRequires:      automake
BuildRequires:      pkgconfig(libudev)
BuildRequires:      pkgconfig(libsystemd)
Requires(post):     grep
Requires(postun):   grep

%description
SNIA HBAAPI vendor library built on top of the scsi_transport_fc interfaces.

%package -n %{libname}
Summary:            FC-HBAAPI implementation using scsi_transport_fc interfaces
Group:              System/Libraries

%description -n %{libname}
SNIA HBAAPI vendor library built on top of the scsi_transport_fc interfaces.

%package -n %{devname}
Summary:            Files needed for libhbalinux application development
Group:              Development/C
Provides:           %{name}-devel%{?_isa} = %{version}-%{release}
Provides:           %{name}-devel = %{version}-%{release}
Requires:           %{libname}%{?_isa} = %{version}-%{release}


%description -n %{devname}
This package contains the files needed for developing applications that use
%{name}.

%prep
%autosetup -p1

%build
./bootstrap.sh
%configure --disable-static
%make_build

%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%post
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
ORG=org.open-fcoe.libhbalinux
CONF=%{_sysconfdir}/hba.conf
if test -f $CONF; then
  grep -v $ORG $CONF > %{_sysconfdir}/hba.conf.new
  mv %{_sysconfdir}/hba.conf.new %{_sysconfdir}/hba.conf
fi

%files -n %{libname}
%license COPYING
%doc README
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{major}.*

%files -n %{devname}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so



%changelog
* Thu Mar 31 2022 umeabot <umeabot> 1.0.17-7.mga9
+ Revision: 1836580
- Mageia 9 Mass Rebuild

* Thu Feb 13 2020 umeabot <umeabot> 1.0.17-6.mga8
+ Revision: 1514152
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%configure2_5x

* Sun Sep 23 2018 umeabot <umeabot> 1.0.17-5.mga7
+ Revision: 1298904
- Mageia 7 Mass Rebuild

* Fri May 06 2016 ngompa <ngompa> 1.0.17-4.mga6
+ Revision: 1009892
- Add libudev-devel BR
- imported package libhbalinux


* Fri May 06 2016 Neal Gompa <ngompa13@gmail.com> - 1.0.17-4
- Port to Mageia

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Jul 06 2015 Chris Leech <cleech@redhat.com> - 1.0.17-2
- fix for non-PCI netdevs

* Tue Jun 16 2015 Chris Leech <cleech@redhat.com> - 1.0.17-1
- rebase to upstream v1.0.17

* Tue Oct 07 2014 Chris Leech <cleech@redhat.com> - 1.0.16-5
- sync with upstream, extends portspeed support up to 40 Gbit

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.16-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Jul 26 2013 Petr Å abata <contyk@redhat.com> - 1.0.16-2
- Fix a bogus date in changelog

* Tue Jun 04 2013 Petr Å abata <contyk@redhat.com> - 1.0.16-1
- 1.0.16 bump

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Oct 03 2012 Petr Å abata <contyk@redhat.com> - 1.0.14-4
- Require grep for the post/postun scriptlets (#859397)

* Thu Aug 16 2012 Petr Å abata <contyk@redhat.com> - 1.0.14-3
- Include the unversioned library in the devel subpackage.

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.14-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Mon Jun 25 2012 Petr Å abata <contyk@redhat.com> - 1.0.14-1
- 1.0.14 bump (really just a version bump, removing the need for
  the previous patch)

* Tue Jan 31 2012 Petr Å abata <contyk@redhat.com> - 1.0.13-3
- Set SerialNumber to "Unknown" if not found (47d8dca41)

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Thu Nov 24 2011 Petr Å abata <contyk@redhat.com> - 1.0.13-1
- 1.0.13 bump
- Creating the devel subpackage with a pkgconfig file

* Thu Jul 07 2011 Petr Sabata <contyk@redhat.com> - 1.0.12-1
- 1.0.12 bump
- Remove now obsolete Buildroot and defattr

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.10-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon May 24 2010 Jan Zeleny <jzeleny@redhat.com> - 1.0.10-1
- rebased to 1.0.10, bugfix release (see git changelog for more info)

* Fri Dec 04 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.9-20091204git
- rebased to the latest version in upstream git

* Thu Jul 30 2009 Jan Zeleny <jzeleny@redhat.com> - 1.0.8-1
- rebase of libhbalinux, spec file adjusted to match changes

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Apr 01 2009 Jan Zeleny <jzeleny@redhat.com> - 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 <jzeleny@redhat.com> - 1.0.7-2
- minor changes in spec file

* Mon Mar 2 2009 Chris Leech <christopher.leech@intel.com> - 1.0.7-1
- initial build