File ibacm.spec of Package ibacm

#
# spec file for package ibacm
#
# Copyright (c) 2012-2014 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:           ibacm
Version:        1.0.8
Release:        0
Summary:        InfiniBand Communication Manager Assistant
License:        GPL-2.0 or BSD-2-Clause
Group:          Productivity/Networking/System
Url:            http://www.openfabrics.org/
Source:         %{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM ibacm-no_type_punning.patch
Patch0:         ibacm-no_type_punning.patch
BuildRequires:  libibumad-devel
BuildRequires:  libibverbs-devel >= 1.1-1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ibacm assists with establishing communication over Infiniband.

%package        devel
Summary:        IB CM pre-connection services - SDK
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}
Requires:       libibverbs-devel >= 1.1-1

%description    devel
Header for the IB CM pre-connection services.

%prep
%setup -q
%patch0

%build
export AM_LDFLAGS=-pthread

%configure
make %{?_smp_mflags}

%install
%makeinstall

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_sysconfdir}/init.d/ibacm
%{_bindir}/ib_acme
%{_sbindir}/ibacm
%{_mandir}/man1/*
%{_mandir}/man7/*

%files devel
%defattr(-,root,root,-)
%{_includedir}/infiniband/acm.h

%changelog
openSUSE Build Service is sponsored by