84 lines
1.8 KiB
RPMSpec
84 lines
1.8 KiB
RPMSpec
Name: libhbalinux
|
|
Version: 1.0.17
|
|
Release: 3
|
|
Summary: FC-HBAAPI implementation using scsi_transport_fc interfaces
|
|
License: LGPL-2.1+
|
|
URL: http://www.open-fcoe.org
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: libhbaapi-devel libpciaccess-devel libtool automake systemd-devel
|
|
Requires: libhbaapi
|
|
Requires(post): grep
|
|
Requires(postun): grep
|
|
|
|
Patch0: libhbalinux-1.0.13-conf.patch
|
|
Patch1: libhbalinux-fix-non-pci-netdev.patch
|
|
|
|
%description
|
|
HBAAPI stands for Host Bus Adapter API (Applications Programming Interface).
|
|
|
|
%package devel
|
|
Summary: Header files for libhbalinux
|
|
Requires: %{name} = %{version}-%{release} pkgconfig
|
|
|
|
%description devel
|
|
Headerfilesforlibhbalinux
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{version} -p1
|
|
|
|
%build
|
|
./bootstrap.sh
|
|
%configure --disable-static
|
|
%make_build
|
|
|
|
%install
|
|
%make_install
|
|
%delete_la_and_a
|
|
|
|
%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 > %{_sysconfdir}/hba.conf.new
|
|
mv %{_sysconfdir}/hba.conf.new %{_sysconfdir}/hba.conf
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README
|
|
%license COPYING
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_libdir}/%{name}.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%changelog
|
|
* Thu Jan 21 2021 Ge Wang<wangge20@huawei.com> - 1.0.17-3
|
|
- Modify license information
|
|
|
|
* Fri Feb 21 2020 songnannan<songnannan2@huawei.com> - 1.0.17-2
|
|
- Type:bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:bugfix about build
|
|
|
|
* Wed Feb 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 1.0.17-1
|
|
- Package init
|