File ibsim.spec of Package ibsim

#
# spec file for package ibsim
#
# Copyright (c) 2011 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

#%%define my_release

Summary:        InfiniBand fabric simulator for management

Name:           ibsim
Version:        0.6
Release:        1
License:        BSD-2-Clause or GPL-2.0
Group:          Productivity/Networking/Diagnostic
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://www.openfabrics.org/downloads/ibsim/%{name}-%{version}.tar.gz
Url:            http://www.openfabrics.org
BuildRequires:  libibmad-devel libibumad-devel libibverbs-devel
BuildRequires:  automake autoconf libtool

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



%prep
%setup -q

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

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

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

%changelog
openSUSE Build Service is sponsored by