File ibsim.spec of Package ibsim

#
# spec file for package ibsim (Version 0.4)
#
# 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

Summary:        InfiniBand fabric simulator for management

Name:           ibsim
Version:        0.4
Release:        5
License:        BSD 3-Clause; GPL v2 or later
Group:          Productivity/Networking/Diagnostic
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://www.openfabrics.org/downloads/ibsim-0.4.tar.bz2
Url:            http://www.openfabrics.org
BuildRequires:  libibcommon-devel libibmad-devel libibumad-devel
ExcludeArch:    s390 s390x

%description
ibsim provides simulation of infiniband fabric for using with OFA
OpenSM, diagnostic and management tools.



%prep
%setup -q

%build
export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}"
export LDFLAGS="${LDFLAGS:-${RPM_OPT_FLAGS}}"
make prefix=%_prefix libpath=%_libdir binpath=%_bindir %{?_smp_mflags}

%install
export CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}"
export LDFLAGS="${LDFLAGS:-${RPM_OPT_FLAGS}}"
make DESTDIR=${RPM_BUILD_ROOT} prefix=%_prefix libpath=%_libdir binpath=%_bindir install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir %{_libdir}/umad2sim
%{_libdir}/umad2sim/libumad2sim*.so*
%{_bindir}/ibsim
%doc README COPYING TODO net-examples scripts

%changelog
* Thu Nov 13 2008 ro@suse.de
- excludearch s390
* Mon Oct 27 2008 jjolly@suse.de
- Updated to version from OFED 1.4 rc3
- bzipped source tarball
* Wed Sep 10 2008 jjolly@suse.de
- Recreated the package for SLES11
openSUSE Build Service is sponsored by