Sync from SUSE:ALP:Source:Standard:1.0 libzfcphbaapi0 revision 074bc4d02b9f5bfcbfa25a365f60c249

This commit is contained in:
Adrian Schröter 2023-12-21 13:38:54 +01:00
commit a60f548780
5 changed files with 278 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

21
fix-build-errors.patch Normal file
View File

@ -0,0 +1,21 @@
--- lib-zfcp-hbaapi-2.1.1.orig/fc_tools/zfcp_ping.c 2013-12-07 10:29:58.000000000 -0700
+++ lib-zfcp-hbaapi-2.1.1/fc_tools/zfcp_ping.c 2014-01-24 01:12:39.289462000 -0700
@@ -13,6 +13,7 @@
#include <signal.h>
#include <hbaapi.h>
#include <errno.h>
+#include <sys/time.h>
#include "include/zfcp_util.h"
#define FC_PNG_REV 0x00000001
--- lib-zfcp-hbaapi-2.1.1.orig/vlib_events.c 2013-12-07 10:29:58.000000000 -0700
+++ lib-zfcp-hbaapi-2.1.1/vlib_events.c 2014-01-24 01:17:48.569992000 -0700
@@ -200,7 +200,7 @@ static void dispatch_event(struct nlmsgh
process_event(fc_nle);
}
-static void *establish_listener()
+static void establish_listener()
{
struct msghdr msg;
struct sockaddr_nl src_addr, dest_addr;

BIN
lib-zfcp-hbaapi-2.2.0.tar.bz2 (Stored with Git LFS) Normal file

Binary file not shown.

113
libzfcphbaapi0.changes Normal file
View File

@ -0,0 +1,113 @@
-------------------------------------------------------------------
Wed Feb 6 13:19:00 CET 2019 - hare@suse.de
- Update to zfcp-hbaapi-2.2.0 (bsc#1094884)
- Fix build for PowerPC
- add port speed capabilities as defined in FC-GS-7
-------------------------------------------------------------------
Fri Nov 6 19:16:03 UTC 2015 - mpost@suse.com
- Modified the %postun scriptlet to only remove the entry from
/etc/hba.conf when an RPM remove/uninstall is being done, not
when an upgrade is being performed. (bsc#953775)
-------------------------------------------------------------------
Wed Sep 16 19:09:04 UTC 2015 - mpost@suse.com
- Changed BuildRequires sg3_utils-devel to libsgutils-devel,
since that is the new name for it.
- Removed a couple of files that were duplicates between
/usr/share/packages/doc and /usr/share/zfcp-hbaapi-2.1.1
- Changed several hardcoded paths in the spec file to use
%{_variables} instead.
- Made the following changes at the request of IBM (bsc#868684):
- Dropped the -devel subpackage and moved the contents back
into the main package.
- Add --disable-static to prevent the libzfcphbaapi.a library
from building.
- Removed the /usr/lib64/libzfcphbaapi.so symbolic link
- At uninstall time, remove the relevant entry from /etc/hba.conf
- Added an rpmlintrc file to suppress a couple of warnings that are
never going to be resolved.
-------------------------------------------------------------------
Wed Sep 3 01:41:37 CEST 2014 - ro@suse.de
- sanitize release line in specfile
-------------------------------------------------------------------
Tue Feb 25 13:51:24 UTC 2014 - jjolly@suse.com
- Added COPYING for licensing purposes (bnc#854513)
-------------------------------------------------------------------
Fri Feb 7 04:48:39 UTC 2014 - jjolly@suse.com
- Added /etc/hba.conf registration for the post install script
(FATE#316146)
-------------------------------------------------------------------
Fri Jan 24 08:42:18 UTC 2014 - jjolly@suse.com
- Enabled vendor library (FATE#316146)
-------------------------------------------------------------------
Fri Jan 24 08:27:30 UTC 2014 - jjolly@suse.com
- Updated to libzfcphbaapi 2.1.1
- Added linux-glibc-devel autoconf automake and libtool to
BuildRequires
- Removed outdated linux kernel headers
- Removed three outdated patches
- Fixed license strings to CPL-1.0
- Changed devel library to Development/Libraries group
- Making with -fno-strict-aliasing
-------------------------------------------------------------------
Wed Apr 17 17:44:00 UTC 2013 - mpost@suse.com
- libzfcphbaapi: correctly convert WWN and LUN strings to u64 (bnc#814845)
- zfcp-hbaapi: correctly convert WWN and LUN strings to u64 with
s390-sles11sp3-zfcp-hbaapi-parse-u64-as-ull.patch
-------------------------------------------------------------------
Fri Mar 22 20:21:44 UTC 2013 - mpost@suse.com
- libzfcphbaapi: find sg dev without deprecated sysfs (bnc#810453)
- zfcp-hbaapi: find sg dev without deprecated sysfs
-------------------------------------------------------------------
Tue Feb 26 16:49:12 UTC 2013 - uli@suse.com
- Fix crash on HBA_FreeLibrary call. (bnc#803556)
-------------------------------------------------------------------
Wed Jan 16 12:04:11 UTC 2013 - uli@suse.com
- update to 2.1 (FCP pass-through support, event support;
fate#314086)
-------------------------------------------------------------------
Fri Aug 5 16:51:54 CEST 2011 - hare@suse.de
- Reference libsgutils2 (bnc#709565)
-------------------------------------------------------------------
Fri Nov 21 16:32:48 CET 2008 - jjolly@suse.de
- Updated to 2.0-v2 of the package with the following changes:
- needed to accomodate upstream sysfs layout changes
- fixed one bug
- some cleanup in the license headers (updated URLs etc)
- cleanup in the Makefile concerning the doxygen documentation
- Added doxygen dependency
- Included extra manpages
- Added /usr/share/zfcp-hbaapi-2.0 to the devel package
- Added libzfcphbaapi.so to the devel package
-------------------------------------------------------------------
Tue Sep 2 16:21:56 CEST 2008 - jjolly@suse.de
- Initial package creation

118
libzfcphbaapi0.spec Normal file
View File

@ -0,0 +1,118 @@
#
# spec file for package libzfcphbaapi0
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libzfcphbaapi0
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: libHBAAPI2-devel
BuildRequires: libsgutils-devel
BuildRequires: libtool
BuildRequires: linux-glibc-devel
BuildRequires: sysfsutils
Url: http://hbaapi.sourceforge.net
Summary: zfcp HBA API library
License: CPL-1.0
Group: System/Libraries
Version: 2.2.0
Release: 0
Source: lib-zfcp-hbaapi-%{version}.tar.bz2
Patch0: fix-build-errors.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: s390 s390x
%define _zfcp_hbaapi lib-zfcp-hbaapi-%{version}
%description
The zfcp device driver is a FCP device driver for Linux for zSeries.
The whole implementation of FC-HBA for the zfcp device driver is called
zfcp HBA API. It is a shared library which provides the API defined in
FC-HBA.
Authors:
--------
Sven Schuetz <sven@de.ibm.com> (active maintainer)
Andreas Herrmann <aherrman@de.ibm.com>
Stefan Voelkel <Stefan.Voelkel@millenux.com>
%prep
if file /bin/bash | grep 32-bit.*390 && [ `arch` != s390 ]; then exit 1;fi
%setup -q -n %{_zfcp_hbaapi}
%patch0 -p1
chmod a-x README ChangeLog
autoreconf -iv
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} --libdir=%{_libdir} --mandir=%{_mandir} --enable-vendor-lib --disable-static
make CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%install
make DESTDIR=$RPM_BUILD_ROOT install
# Get rid of a couple unnecessary files
rm -f $RPM_BUILD_ROOT/%{_libdir}/libzfcphbaapi.la
rm -f $RPM_BUILD_ROOT/%{_libdir}/libzfcphbaapi.so
# Get rid of some "doc" files that are already in /usr/share/packages/doc
rm -f $RPM_BUILD_ROOT/usr/share/zfcp-hbaapi-2.1.1/README
rm -f $RPM_BUILD_ROOT/usr/share/zfcp-hbaapi-2.1.1/COPYING
%post
ldconfig
ORG=com.ibm.libzfcphbaapi
LIB=%{_libdir}/libzfcphbaapi.so.0
STR="$ORG $LIB"
CONF=/etc/hba.conf
if test -f $CONF; then
ORIG=$(sed -n "s/^[[:space:]]*$ORG[[:space:]]*\(.*\)/\1/p" $CONF)
if [ "$ORIG" != "$LIB" ] ; then
echo $STR >> $CONF
else
echo "** $CONF already configured"
echo "** system configuration not updated"
fi;
else
echo "** WARNING: $CONF does not exist"
echo "** system configuration not updated"
fi
%postun
ldconfig
CONF=/etc/hba.conf
ORG=com.ibm.libzfcphbaapi
if [ "${1}" = "0" ]; then # Keep the entry for an upgrade, remove it for an uninstall
if test -f $CONF; then
sed -i -e "/^$ORG /d" $CONF
fi
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_bindir}/zfcp_*
%{_libdir}/libzfcphbaapi.so.0*
%doc README ChangeLog COPYING
%doc %{_mandir}/man3/*.3.gz
%doc %{_mandir}/man8/*.8.gz
%dir /usr/share/zfcp-hbaapi-%{version}
/usr/share/zfcp-hbaapi-%{version}/*
%changelog