File libzfcphbaapi0.spec of Package libzfcphbaapi0

#
# spec file for package libzfcphbaapi0 (Version 2.0_v2)
#
# Copyright (c) 2010 SUSE LINUX Products 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:  doxygen gcc-c++ sg3_utils-devel
%if 0%{?suse_version} > 1130
BuildRequires:  sysfsutils-devel
%else
BuildRequires:  sysfsutils
%endif
Url:            http://hbaapi.sourceforge.net
Summary:        zfcp HBA API library
Version:        2.0_v2
Release:        4
License:        Other uncritical OpenSource License ; Common Public License 1.0
Group:          System/Libraries
Source:         lib-zfcp-hbaapi-2.0-v2.tar.bz2
AutoReqProv:    yes
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  s390 s390x
%define _zfcp_hbaapi lib-zfcp-hbaapi-2.0

%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>

%package devel
License:        Other uncritical OpenSource License ; Common Public License 1.0
Summary:        zfcp HBA API library
Group:          System/Libraries
Requires:       libzfcphbaapi0 = %{version} glibc-devel
AutoReqProv:    on

%description devel
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}
chmod a-x README ChangeLog
autoreconf -iv

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --libdir=/usr/%_lib --mandir=%{_mandir} --enable-vendor-lib=no
make CFLAGS="$RPM_OPT_FLAGS"

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm $RPM_BUILD_ROOT/usr/%{_lib}/libzfcphbaapi.la

%post
ldconfig

%postun
ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/usr/%{_lib}/libzfcphbaapi.so.0*

%files devel
%defattr(-,root,root)
%doc README ChangeLog
%doc %{_mandir}/man3/*.3.gz
/usr/include/hbaapi.h
/usr/%{_lib}/libzfcphbaapi.so
/usr/%{_lib}/libzfcphbaapi.a
%dir /usr/share/zfcp-hbaapi-2.0
/usr/share/zfcp-hbaapi-2.0/*

%changelog
openSUSE Build Service is sponsored by