Name: libhbalinux Version: 1.0.17 Release: 2 Summary: FC-HBAAPI implementation using scsi_transport_fc interfaces License: LGPLv2 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 * Fri Feb 21 2020 songnannan - 1.0.17-2 - Type:bugfix - ID:NA - SUG:NA - DESC:bugfix about build * Wed Feb 12 2020 openEuler Buildteam - 1.0.17-1 - Package init