File libipathverbs.spec of Package libipathverbs

#
# spec file for package libipathverbs (Version 1.2)
#
# Copyright (c) 2009 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:           libipathverbs
Summary:        PathScale InfiniPath HCA Userspace Driver
Version:        1.2.1
Release:        0
License:        GPL-2.0 or BSD-2-Clause
Group:          Productivity/Networking/System
Source0:        http://www.openfabrics.org/downloads/%{name}-%{version}.tar.gz
Source1:        GPLv2.txt
Patch0:         libipathverbs-configure.patch
Patch1:         libipthverbs-no_libversion.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibverbs-devel
BuildRequires:  automake autoconf libtool

%define lname	libipathverbs-rdmav2

%description
libipathverbs provides a device-specific userspace driver for PathScale
HCAs.

%package     -n %lname
Summary:	PathScale InfiniPath HCA Userspace Driver
Group:		System/Libraries
# Added after openSUSE 12.2:
Obsoletes:	libipathverbs < %version-%release
Provides:	libipathverbs = %version-%release

%description -n %lname
libipathverbs provides a device-specific userspace driver for PathScale
HCAs.

%prep
%setup -q
mv COPYING LICENSES
cp %{S:1} COPYING
mv configure.in configure.ac
%patch0
%patch1

%build
autoreconf -fi
%configure --disable-silent-rules
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/%name.so

%files -n %lname
%defattr(-, root, root)
%doc COPYING LICENSES AUTHORS README
%dir %_sysconfdir/libibverbs.d
%config %_sysconfdir/libibverbs.d/*
%_libdir/libipathverbs-rdmav2.so


%changelog
openSUSE Build Service is sponsored by