File infiniband-diags.spec of Package infiniband-diags

#
# spec file for package infiniband-diags (Version 1.4.1)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           infiniband-diags
Summary:        OpenIB InfiniBand Diagnostic Tools
Version:        1.4.1
Release:        5
License:        BSD 3-Clause; GPL v2 or later
Group:          Productivity/Networking/Diagnostic
Source0:        %{name}-%{version}.tar.bz2
Patch0:         infiniband-diags-configure.patch
Patch1:         infiniband-diags-automake_foreign.patch
Url:            http://www.openfabrics.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libibcommon-devel libibmad-devel libibumad-devel opensm-devel
Requires:       perl = %{perl_version}
ExcludeArch:    s390 s390x

%description
diags provides IB diagnostic programs and scripts needed to diagnose an
IB subnet.



%prep
%setup -q
%patch0
%patch1

%build
autoreconf -fi
export CFLAGS="%{optflags}"
%configure --with-perl-installdir=%{perl_vendorarch}
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
#install -d $RPM_BUILD_ROOT/%{perl_vendorarch}
#mv $RPM_BUILD_ROOT/usr/lib/perl/IBswcountlimits.pm $RPM_BUILD_ROOT/%{perl_vendorarch}/IBswcountlimits.pm

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-, root, root)
%_sbindir/*
%_mandir/man8/*
%{perl_vendorarch}/IBswcountlimits.pm

%changelog
* Thu Nov 13 2008 ro@suse.de
- excludearch s390 s390x
* Mon Oct 27 2008 jjolly@suse.de
- Updated to version from the OFED 1.4 rc3
* Thu Sep 11 2008 jjolly@suse.de
- Updated to 1.4.1 from the OFED 1.4 RC1
* Tue Mar 04 2008 jjolly@suse.de
- Update to 1.3.6 from the OFED 1.3 GA release
* Wed Feb 13 2008 pth@suse.de
- Run autoreconf
- Pass [foreign] to AM_INIT_AUTOMAKE
- Default for IBPATH is substituted by configure, no need to patch it.
- Update to 1.3.5.
  Changes since 1.2.7 are to numerous to list here, see NEWS and
  ChangeLog for the complete list.
* Mon Aug 20 2007 hvogel@suse.de
- Updated to version from OFED 1.2.5
* Thu Jul 19 2007 hvogel@suse.de
- fix path in the shellscripts
* Wed Jul 04 2007 hvogel@suse.de
- Add GPL COPYING file [#288855]
* Tue Jul 03 2007 hvogel@suse.de
- Downgrade to 1.2.7 because this turned out to be the version
  in OFED 1.2
* Wed Jun 20 2007 hvogel@suse.de
- Initial Package, Version 1.3.0
openSUSE Build Service is sponsored by